473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Parse error on file using PHP 4.3.10

My hosting service uses PHP 4.3.10 and when I run a php script which works
perfectly on my local lan linux server on my hosting service I get this
error:-

Parse error: parse error, unexpected T_STRING, expecting ')' in
/home/fhlinux199/s/user/htdocs/graph_all.php on line 1114

When I look at the file I can find nothing wrong, as I say on my linux box
with a later level of PHP it parses fine and executes. If I edit the file
and simply add a blank char on the offending line the parse error moves to
a different line in the file, this keeps happening every time I do an edit
and it moves again. Usually to a line earlier in the file which it parsed
OK on the previous run, and not always a ) causing the problem.

I've asked the hosting service about this but they are not interested!

Anyone know if this is a known problem? I have double checked that I
uploaded it correctly as ASCII. Other PHP scripts work OK.

Stuart
Jul 17 '05 #1
2 1615
Stuart Rogers <me@privacy.net> wrote:
Parse error: parse error, unexpected T_STRING, expecting ')' in
/home/fhlinux199/s/user/htdocs/graph_all.php on line 1114

When I look at the file I can find nothing wrong, as I say on my linux box
with a later level of PHP it parses fine and executes.


You are not providing a lots of info here, like:
-what version gives the parse error
-what is the code

Jul 17 '05 #2
Daniel Tryba <pa**********@invalid.tryba.nl> wrote in
news:42*********************@news6.xs4all.nl:
Stuart Rogers <me@privacy.net> wrote:
Parse error: parse error, unexpected T_STRING, expecting ')' in
/home/fhlinux199/s/user/htdocs/graph_all.php on line 1114

When I look at the file I can find nothing wrong, as I say on my
linux box with a later level of PHP it parses fine and executes.


You are not providing a lots of info here, like:
-what version gives the parse error
-what is the code


The version giving the error is as I said 4.3.10. All you have to do is
change any character on the failing line for the same character, so change
an a to an a save it and that error goes away and you get another error in
the same script on a different line but a lower line number (ie one that
has parsed OK in the previous run). This is why I have not shown the code,
there is nothing wrong with the code, it runs on my install of PHP on my
local server just fine. It only fails on my hosting service implementation
of PHP.
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Francesco Moi | last post by:
Hi. I'm trying to parse a HTTP file http://www.foo.com/foo.xml by using Xerces-Perl: ------------------------------------------ use XML::Xerces; my $file =...
2
by: Vittal | last post by:
Hello All, I am trying to compile my application on Red Hat Linux 8 against gcc 3.2.2. Very first file in application is failing to compile. I tried compiling my application on Linux 7.2...
21
by: William Stacey [MVP] | last post by:
Anyone know of some library that will parse files like following: options { directory "/etc"; allow-query { any; }; // This is the default recursion no; listen-on { 192.168.0.225;...
0
by: David T | last post by:
Try building the project first. VB.NET uses "codebehind", which means you have to compile the codebehind file (WebForm1.aspx.vb in this case) first. Regards, David >-----Original...
6
by: trevor | last post by:
Incorrect values when using float.Parse(string) I have discovered a problem with float.Parse(string) not getting values exactly correct in some circumstances(CSV file source) but in very similar...
5
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C++ programming. FYI Although I have called...
1
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C programming. FYI Although I have called this...
2
by: Lawrence Krubner | last post by:
Imagine a template system that works by getting a file, as a string, and then putting it through eval(), something like this: $formAsString = $controller->command("readFileAndReturnString",...
5
by: goldtech | last post by:
SAX XML Parse Python error message Hi, My first attempt at SAX, but have an error message I need help with. I cite the error message, code, and xml below. Be grateful if anyone can tell me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.