Re: [PHP] parse error, unexpected T_CLASS

2005-04-20 Thread Kim Briggs
On 4/20/05, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Dasmeet Singh wrote: >> BTW.. pls suggest some good editor.. I use notepad currently.. > http://www.php-editors.com/ > http://www.google.com/search?hl=en&lr=&q=good+editor+for+php&btnG=Search > > choose one. > This can take a long time, I k

Re: [PHP] parse error, unexpected T_CLASS

2005-04-20 Thread Jochem Maas
Dasmeet Singh wrote: ... Get some decent editor with syntax highlighting ditto. :-) Thanks.. That was really silly.. BTW.. pls suggest some good editor.. I use notepad currently.. OFFS. http://www.php-editors.com/ http://www.google.com/search?hl=en&lr=&q=good+editor+for+php&btnG=Search choose one.

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Jason Barnett
Dasmeet Singh wrote: > Jay Blanchard wrote: >> [snip] >> echo (" $row[1] Location- $row[4] >> Property Type- $ptypeMin Price- $row[9] "); >> >> it gives an error.. >> >> Parse error: parse error, unexpected T_CLASS in >> /home/real/public_html/functions.php on line 162 >> >> Any idea..why? Prob

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Marek Kilimajer wrote: Dasmeet Singh wrote: Jay Blanchard wrote: > [snip] > echo (" $row[1] Location- $row[4] > Property Type- $ptypeMin Price- $row[9] "); > > it gives an error.. > > Parse error: parse error, unexpected T_CLASS in > /home/real/public_html/functions.php on line 162 >

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Marek Kilimajer
Dasmeet Singh wrote: Jay Blanchard wrote: > [snip] > echo (" $row[1] Location- $row[4] > Property Type- $ptypeMin Price- $row[9] "); > > it gives an error.. > > Parse error: parse error, unexpected T_CLASS in > /home/real/public_html/functions.php on line 162 > > Any idea..why? Probab

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Jay Blanchard wrote: > [snip] > echo (" $row[1] Location- $row[4] > Property Type- $ptypeMin Price- $row[9] "); > > it gives an error.. > > Parse error: parse error, unexpected T_CLASS in > /home/real/public_html/functions.php on line 162 > > Any idea..why? Probably any stupid mistake .. :( > [

RE: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Jay Blanchard
[snip] echo (" $row[1] Location- $row[4] Property Type- $ptypeMin Price- $row[9] "); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any idea..why? Probably any stupid mistake .. :( [/snip] Takes the parentheses out. ec

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Marek Kilimajer
Dasmeet Singh wrote: Hi! When i try to run the following line: echo (" $row[1] Location- $row[4] Property Type- $ptypeMin Price- $row[9] "); The above line is fine. Check the lines above. it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php

[PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Hi! When i try to run the following line: echo (" $row[1] Location- $row[4] Property Type- $ptypeMin Price- $row[9] "); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any idea..why? Probably any stupid mistake .. :( - Fre

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
Hello, Sorry about that. I took the source down after I solved the problem. The problem was a nasty type of syntax error caused by PHP implementation of HEREDOC string delimiting. I was using HEREDOC to stuff multiple lines of HTML into a string, in several places in my file, which is all fin

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jason Barnett
Jeff Schmidt wrote: > Hello, > I've made the source available at: > http://www.weldingconsultants.com/wcapp/admin.phps 404 error when I just tried. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM |

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
Hello, I've made the source available at: http://www.weldingconsultants.com/wcapp/admin.phps Chris W. Parker wrote: print '\n"; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP parser finally gets screwed up. Yeah, that is what I was thinking too.

[PHP] (SOLVED) Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
Ok, well the mystery is solved. Earlier in the script, I had used HEREDOC string delimiting to output some html blocks (I feel, asthetically, that HEREDOC is more readable than escaping out to HTML then back into PHP). Somehow, and I'm not sure how, because I don't remember typing the spaces, b

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Dan Tappin
Why not make it simple?: // end PHP code ?> ]' value='true'> Dan T On Mar 14, 2005, at 3:58 PM, Jeff Schmidt wrote: Hello, I'm beating my head, and can't figure out *WHY* PHP is giving me this error. The full error text is: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, exp

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Jason Barnett on Monday, March 14, 2005 3:57 PM said: > Chris W. Parker wrote: >> Chris W. Parker <> >> on Monday, March 14, 2005 3:15 PM said: >> >> Line 82 is: print '>>> $row["profileID"] . ']' . "' value='true'/>\n"; >>> >>> Very likely the probl

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Andre Dubuc
On Monday 14 March 2005 06:22 pm, Chris W. Parker wrote: > Chris W. Parker <> > > on Monday, March 14, 2005 3:15 PM said: > >> Line 82 is: > >> print ' >> $row["profileID"] . ']' . "' value='true'/>\n"; > > > > Very likely the problem is not on line 82, but rather before it. Line > > 82 is just

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Jason Barnett
Chris W. Parker wrote: > Chris W. Parker <> > on Monday, March 14, 2005 3:15 PM said: > > >>>Line 82 is: >>>print '>>$row["profileID"] . ']' . "' value='true'/>\n"; >> >>Very likely the problem is not on line 82, but rather before it. Line >>82 is just where the PHP parser finally gets screwed

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread M. Sokolewicz
Chris W. Parker wrote: Chris W. Parker <> on Monday, March 14, 2005 3:15 PM said: Line 82 is: print '\n"; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP parser finally gets screwed up. Ohh .. and if i read it more fully the first time I would ha

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Chris W. Parker <> on Monday, March 14, 2005 3:15 PM said: >> Line 82 is: >> print '> $row["profileID"] . ']' . "' value='true'/>\n"; > > Very likely the problem is not on line 82, but rather before it. Line > 82 is just where the PHP parser finally gets screwed up. Ohh .. and if i read it m

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Jeff Schmidt on Monday, March 14, 2005 2:58 PM said: > Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, > expecting T_STRING or T_VARIABLE or T_NUM_STRING in > /hsphere/local/home/welding/weldingconsultants.com/wcapp/admin.php on > line 82 > > Line 82

[PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Jeff Schmidt
Hello, I'm beating my head, and can't figure out *WHY* PHP is giving me this error. The full error text is: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hsphere/local/home/welding/weldingconsultants.com/wcapp/admin.php on

RE: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 06 December 2004 17:23, Greg Donald wrote: > On Mon, 06 Dec 2004 11:54:50 -0500, Robert Sossomon > <[EMAIL PROTECTED]> wrote: > > Parse error: parse error, expecting `T_VARIABLE'

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Greg Donald
On Mon, 06 Dec 2004 11:54:50 -0500, Robert Sossomon <[EMAIL PROTECTED]> wrote: > Parse error: parse error, expecting `T_VARIABLE' or `'$'' in > c:\fourh\leadership\registration_post.php on line 29 > > for ($i=0; $i < count($choices); $i++) This is bad. Every time the for() loop iterates, the cou

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Richard Lynch
Variable names cannot start with a digit. $distoffice0405 is kosher. $0405distoffice is not. Robert Sossomon wrote: > Parse error: parse error, expecting `T_VARIABLE' or `'$'' in > c:\fourh\leadership\registration_post.php on line 29 > > The HTML page: > http://rsossam-lap.ces.ncsu.edu/leadership

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread John Holmes
Robert Sossomon wrote: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 [snip] $0405distoffice= $_POST['04_05_dist_office']; //line29 $0506distoffice= $_POST['05_06_dist_office']; Variable names cannot start with a number. -- ---Joh

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread John Nichel
Robert Sossomon wrote: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 $0405distoffice= $_POST['04_05_dist_office']; //line29 $0506distoffice= $_POST['05_06_dist_office']; Look in the manual, that's your first stop... http://us4.

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Thomas Munz
you forgot the " ' " in the $fname= $_POST[fname]; $lname= $_POST[lname]; $addie= $_POST[addie]; $city= $_POST[city]; fields!!! > error, expecting `T_VARIABLE' or `'$'' in > c:\fourh\leadership\registration_post.php on line 29 > > The HTML page: > http://rsossam-lap.ces.ncsu.edu/leadership/re

[PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Robert Sossomon
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 The HTML page: http://rsossam-lap.ces.ncsu.edu/leadership/registration2.php The processing Script $fname= $_POST[fname]; $lname= $_POST[lname]; $addie= $_POST[addie]; $city= $_POST[

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Thanks Jason. I've started doing that - damn well have to with nested IF statements. -- - Michael Mason Arras People www.arraspeople.co.uk - "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > > But the er

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jarratt Ingram
Hello, Try adding the closing brace } to the last else forEach($errors as $error) { echo $error . ''; } } else { echo "Hi...!"; <-- hth Jarratt On Mon, 2004-07-19 at 12:02, Harlequin wrote: > Jim > > I deleted a whole load of lines and still get the error. I've narrowed it

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jim Root
> else > { >echo "Hi...!"; > ?> You are missing a } at the end of the else. It should be: else { echo "Hi...!"; } ?> On Mon, 19 Jul 2004 12:02:47 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > Jim > > I deleted a whole load of lines and still get the error. I've narrowed it > dow

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jason Barnett
But the error (line 40) is actually the last line...! :| You had a missing brace. When the error line is the last line (and especially if error is Undefined $end) then you likely have a missing ending brace or ending quote. Not trying to start a flame war here, but if you try a different codi

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jason Wong
On Monday 19 July 2004 19:02, Harlequin wrote: > I deleted a whole load of lines and still get the error. I've narrowed it > down to this code: Please read the syntax guide in the manual. Asking people to solve "parse errors" for you is, IMHO, ludicrous. -- Jason Wong -> Gremlins Associates ->

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Jim I deleted a whole load of lines and still get the error. I've narrowed it down to this code: "; $requiredFields = array('Title','ChristianName','Surname','HomePhone','Address01','City','Post code','Country','Gender','WorkPermitRequired','MyStatus'); $errors = array(); forEach($require

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jim Root
I see one problem, but not the one you are talking about. > // Convert Values to Variables: > $Title = $_POST[Title]; This (and the rest of the post fields) should have quotes: $Title = $_POST["Title"]; (php looks for a constant named Title, instead of the string "Title") What line gives yo

[PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
I've checked my syntax but obviously missing something. Would anyone mind a quick scan: // Convert Values to Variables: $Title = $_POST[Title]; $ChristianName = $_POST[ChristianName]; $MiddleName = $_POST[MiddleName]; $Surname = $_POST[Surname]; $HomePhone = $_POST[HomePhone]; $Addres

RE: [PHP] Parse error, unexpected T_STRING!!

2004-03-04 Thread Enrique Martinez
Hey Mike, your wild guess worked great!! :) Thanks a lot, and Craig as well. --- "Ford, Mike [LSS]" <[EMAIL PROTECTED]> wrote: > On 04 March 2004 20:04, Enrique Martinez wrote: > > > Hello, I'm getting an error that says: > > > > Parse error, unexpected T_STRING on line 73 > > > >

Re: [PHP] Parse error, unexpected T_STRING!!

2004-03-04 Thread Enrique Martinez
This is what I have before line 73: --- Craig Gardner <[EMAIL PROTECTED]> wrote: > What do you have before line 73? > > > On Thu, 2004-03-04 at 12:03, Enrique Martinez wrote: > > Hello, I'm getting an error that says: > > > > Parse error, unexpected T_STRING on line 73 > > > > line 73 is:

Re: [PHP] Parse error, unexpected T_STRING!!

2004-03-04 Thread Craig Gardner
What do you have before line 73? On Thu, 2004-03-04 at 12:03, Enrique Martinez wrote: > Hello, I'm getting an error that says: > > Parse error, unexpected T_STRING on line 73 > > line 73 is: ?> > > this is what I have below line 73: > > Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/

[PHP] Parse error, unexpected T_STRING!!

2004-03-04 Thread Enrique Martinez
Hello, I'm getting an error that says: Parse error, unexpected T_STRING on line 73 line 73 is: this is what I have below line 73: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> I have PHP-4.2.2, Apache 2.0 on RedHat Linux 9.0 Any idea how can I fi

Re: [PHP] parse error, unexpected $

2004-02-11 Thread Hugh Danaher
Bruno, This often occurs when there is no closing bracket " } " for a conditional statement or a loop. hth Hugh - Original Message - From: "Bruno Mattarollo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 11, 2004 2:51 AM Subject: R

Re: [PHP] parse error, unexpected $

2004-02-11 Thread Bruno Mattarollo
Hello Raditha and all, Thanks for the replies ... I reviewed all my code with Zend Studio and the syntax was correct everywhere ... so I tried running the application from the command line: $ php donate.php and it worked fine, so looking through the code we saw that there was a "short-tag" in

Re: [PHP] parse error, unexpected $

2004-02-10 Thread Raditha Dissanayake
Hi Bruno, The line number is misleading the error is generally above the line that's reffered to. try commenting out sections of the code. If you have an IDE it will be able to point out the error. If you don't have an IDE some text editor that is capable of syntax highlighting will also help.

[PHP] parse error, unexpected $

2004-02-10 Thread Bruno Mattarollo
Hello, I am having a strange problem with PHP and I can't really find a proper answer, maybe someone have seen this before and can give me a hint. I have a series of files (originally developed by another colleague) installed on a server with PHP 4.2.2 and I get this error: Parse error: parse

[PHP] parse error, unexpected $end ...

2003-01-24 Thread Octavio Herrera
Hello, my name is octavio, Im new to this news group, I have a problem, Im getting the following error message: Parse error: parse error, unexpected $end in c:\appserv\www\octavio\user_data.php on line 63 What is this? I have looked all the source code and at the end of file there is nothing wron