473,231 Members | 1,861 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,231 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 1607
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: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.