RE: [PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van
4817 ZH BREDA Telefax: (076) 5 877 757 ___ -Oorspronkelijk bericht- Van: Jon Farmer [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 6 december 2001 16:49 Aan: Oosten, Sjoerd van; 'Andrew Forgue' CC: [EMAIL PROTECTED] Onderwerp: Re: [PHP] parse error

[PHP] Parse Error

2001-10-29 Thread Alberto
Parse error: parse error, expecting `T_VARIABLE' in /sdr/httpd/Prisa/DATA/private/libs/captura/valores.php on line 18 ? / // // Trabaja con valores/indices // / include(/sdr/httpd/Prisa/DATA/private/libs/db/db_sql.lib); class val_valores { / //

Re: [PHP] Parse Error

2001-10-29 Thread Alexander Weber
Just use var $VAL_ID; Names of variables always start with a $ sign. Alberto wrote: Parse error: parse error, expecting `T_VARIABLE' in /sdr/httpd/Prisa/DATA/private/libs/captura/valores.php on line 18 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] Parse Error

2001-10-29 Thread james . fairbairn
might be a syntax error in the .lib file you are including (missing ;, possibly)... let me know. -Original Message- From: Alberto [mailto:alberto arround [EMAIL PROTECTED]] Sent: 29 October 2001 10:14 To: [EMAIL PROTECTED] Subject: [PHP] Parse Error Parse error: parse error, expecting

RE: [PHP] Parse Error

2001-10-29 Thread james . fairbairn
oops, missed that one! -Original Message- From: Alexander Weber [mailto:[EMAIL PROTECTED]] Sent: 29 October 2001 10:08 To: Alberto Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error Just use var $VAL_ID; Names of variables always start with a $ sign. Alberto wrote: Parse

[PHP] parse error AFTER end of included file??

2001-08-28 Thread Jaxon
Hi, Can anyone tell me why I have a parse error here? I'm including this file, which is 16 lines, but the error being thrown by the including page reports a parse error in this file on line 17 ???: ?php if (!isset($page_type)) { $page_type = foo; } if (!isset($page_id))

RE: [PHP] parse error AFTER end of included file??

2001-08-28 Thread Johnson, Kirk
You need to close off this bit of code with a brace '}': if (!isset($page_id)) { Kirk -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 9:34 AM To: [EMAIL PROTECTED] Subject: [PHP] parse error AFTER end of included file?? Hi

RE: [PHP] parse error AFTER end of included file??

2001-08-28 Thread Jaxon
doh! thanks for spotting that Kirk! cheers, j -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 11:49 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] parse error AFTER end of included file?? You need to close off this bit of code

[PHP] Parse Error

2001-08-15 Thread Michael L
Hi ! I have recently install php4 on Red Hat Linux with Apache, i try to connect to MySql Database but i have a parse error (on line 2) , why ? ( i have tried mysql_connect but it still doesn't work too ) ?php $link = mysql_pconnect (kron, jutta, geheim) { or die (Connexion

RE: [PHP] Parse Error

2001-08-15 Thread Jason Murray
?php $link = mysql_pconnect (kron, jutta, geheim) { or die (Connexion impossible); } ^ ^ Those two {}'s aren't needed for an or dosomething operation. Jason -- PHP General Mailing List (http://www.php.net/) To

[PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Jason Lustig
This is really weird. Very, very, very weird. I have the following code in a script: if (!empty(trim($rowData[3]))) { $tdStr.= trim($rowData[3]); } Now, when I run it, I get the following error: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in

Re: [PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Justin Farnsworth
You are trying to add the output of a function call, called twice, BTW, to a string, apparantly. You don't saw what $tdStr is, really, in the scope. Jason Lustig wrote: This is really weird. Very, very, very weird. I have the following code in a script: if (!empty(trim($rowData[3]))) {

Re: [PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Delbono
, 2001 11:55 PM Subject: [PHP] Parse error: Needs T_VARIABLE or $ This is really weird. Very, very, very weird. I have the following code in a script: if (!empty(trim($rowData[3]))) { $tdStr.= trim($rowData[3]); } Now, when I run it, I get the following error: Parse error: parse error

[PHP] parse error in PHP Manual in php web site...

2001-06-29 Thread Romulo Roberto Pereira
Parse error: parse error in /local/Web/sites/phpweb/include/shared-manual.inc on line 265 Fatal error: Call to undefined function: sendmanualheaders() in /local/Web/sites/phpweb/manual/en/getting-started.php on line 3 HELPPP!! :) Rom -- PHP General Mailing List (http://www.php.net/)

[PHP] Parse error..help!

2001-05-18 Thread Taline Makssabo
Here is another error i keep on getting, this is suppose to send me an email each time someone enters in my website but i keep on gettong this error message: Parse error: parse error in /home/virtual/ppcu/home/httpd/html/php2/login.php on line 8 I don't see anything wrong, please help. ?

Re: [PHP] Parse error..help!

2001-05-18 Thread Rasmus Lerdorf
Here is another error i keep on getting, this is suppose to send me an email each time someone enters in my website but i keep on gettong this error message: Parse error: parse error in /home/virtual/ppcu/home/httpd/html/php2/login.php on line 8 I don't see anything wrong, please help. ?

Re: [PHP] Parse error..help!

2001-05-18 Thread Keith Ng
-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Subject: [PHP] Parse error..help! X-UIDL: #l6!fL$#!:Bj!n1f!! Here is another

Re: [PHP] Parse error..help!

2001-05-18 Thread Keith Ng
-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Subject: [PHP] Parse error..help! X-UIDL: #l6!fL$#!:Bj!n1f!! Here is another

Re: [PHP] Parse error..help!

2001-05-18 Thread infoz
It should be something like: function AccessHit() { ... } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Parse error..help!

2001-05-18 Thread elias
Were you a LISP programmer or something? Taline Makssabo [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Here is another error i keep on getting, this is suppose to send me an email each time someone enters in my website but i keep on gettong this error

Re: [PHP] Parse error..help!

2001-05-18 Thread Greg K
Also take off the semicolon of the closing of the function } Taline Makssabo [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Here is another error i keep on getting, this is suppose to send me an email each time someone enters in my website but i keep on gettong

[PHP] Parse error help!

2001-05-18 Thread Taline Makssabo
Thanks for all the help guys but one more minor issue, i am not receiving the email that someone accessed my page...why?? ? Function AccessHit() { $NL = \n; $H = getLastHost(); $R = getLastRef(); $To = [EMAIL PROTECTED]; $Sub = Page Accessed;

RE: [PHP] Parse error help!

2001-05-18 Thread Sam Masiello
] Subject:[PHP] Parse error help! Thanks for all the help guys but one more minor issue, i am not receiving the email that someone accessed my page...why?? ? Function AccessHit() { $NL = \n; $H = getLastHost(); $R = getLastRef(); $To = [EMAIL PROTECTED

[PHP] Parse error with simple script

2001-05-17 Thread Mohamed LRHAZI
Hello All, I am sure this is simple, but I really cant figure it out by myself.. at least not tonight :) This simple script gives : Parse error: parse error in /var/www/html/test.php on line 2 # cat /var/www/html/test.php ?php $user = root ; echo hello $user; ? If I comment (//) line 2, it

Re: [PHP] Parse error with simple script

2001-05-17 Thread Mohamed LRHAZI
Hi again, Ok, I wasnt that tired after all :) and had the belliant idea of loading my script in vi and lo and behold here is what I saw: $user| =| 'root' ; Nice, huh? This was generated by this cute editor called BlueFish.. no more bluefish for me. Mohamed~ Mohamed LRHAZI wrote:

Re: [PHP] Parse error with simple script

2001-05-17 Thread elias
hehe;) Mohamed LRHAZI [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi again, Ok, I wasnt that tired after all :) and had the belliant idea of loading my script in vi and lo and behold here is what I saw: $user| =| 'root' ; Nice, huh? This was generated

[PHP] parse error is always on line 1 == error ?

2001-04-27 Thread Jimmy Lantz
Hi, I have a problem, that when I get a parse error it always says that it's on line 1 in this or that file. Where is the configuration option to set this right? I have on another server seen that it's possible to get it to state the actual error line. (it's PHP Version 3.0.15 on solaris)

Re: [PHP] parse error is always on line 1 == error ?

2001-04-27 Thread Frank Joerdens
On Fri, Apr 27, 2001 at 08:49:46AM +0200, Jimmy Lantz wrote: Hi, I have a problem, that when I get a parse error it always says that it's on line 1 in this or that file. Where is the configuration option to set this right? When I had this problem it turned out that the files in question had

Re: [PHP] parse error is always on line 1 == error ?

2001-04-27 Thread John Platte
I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get parse errors on line 1 unless I remember to set line breaks to Unix \n (rather than Mac and Windows line endings, which use different characters). You may be running into a similar problem. Jimmy Lantz wrote: Hi, I have a

Re: [PHP] parse error is always on line 1 == error ?

2001-04-27 Thread Jimmy Lantz
Yes, thank you you're right this is exactly what it was, I used Dreamweaver on a mac to edit the files, but now if I encounter parse error I convert them with BBEdit. Thank you. Jimmy Lantz I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get parse errors on line 1 unless I

[PHP] Parse error: parser stack overflow in...

2001-04-26 Thread Christoph Hunscher
... perm.inc on line 56 Hi all, this message some ppl get when they try to connect to a mysql database. i use php3 with phplib. the problem is, when i try it over lan and with dialin over isdn, there are no probs with win95, win98, winme and nt4.0 clients. neither with ms-ie nor with

[PHP] Parse Error for a weirdo!

2001-04-24 Thread ouarz.net
Hiya, I am not a weirdo (at least I think so) ;) Considere this (Notice the line number): === Parse error: parse error in test_the_bug.php on line 1 ===

Re: [PHP] Parse Error for a weirdo!

2001-04-24 Thread Yasuo Ohgaki
Are you using short tag? or asp tag? What happen if you use ?php ?? Regards, -- Yasuo Ohgaki ouarz.net [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hiya, I am not a weirdo (at least I think so) ;) Considere this (Notice the line number):

[PHP] Parse error - script help.

2001-04-16 Thread Dddogbruce \(@home.com\)
Ok, I know it's messy - no, I don't care. :P Parse error: parse error in C:/XITAMI/owen/website/tss/guestbookSG.php on line 43 html head titlethe southern side : owen : mmmHm/title style !-- A:hover { color:rgb(215,152,1); cursor:hand-il; } A:link { font-style:normal; font-weight:normal;

Re: [PHP] Parse error - script help.

2001-04-16 Thread Brian Clark
Hi Dddogbruce, @ 10:58:47 PM on 4/16/2001, Dddogbruce (@home.com) wrote: Ok, I know it's messy - no, I don't care. :P Parse error: parse error in C:/XITAMI/owen/website/tss/guestbookSG.php on line 43 ... ? $space = " "; if( $submitfrm ) { echo "your entry will be added shortly.";

Re: [PHP] Parse error - script help.

2001-04-16 Thread Brian Clark
Hi Brian, @ 11:14:55 PM on 4/16/2001, Brian Clark wrote: fwrite( $fp, "fwrite( $fp, "table border=\"0\" cellpadding=\"0\" ^^^ Remove the quotation mark. Duh, Brian. You have an extra fwrite($fp) in there. -Brian -- PGP is spoken here: 0xE4D0C7C8 Please, DO

[PHP] Parse error

2001-04-10 Thread Mike
Im getting a "missing )" error on line 77 but cant seem to find it.Am I missing something else thats causing it? for ($i =1;$i=15;$i++) { if(!(isset(${'R'.$i.'P'};)))// line 77 { ${'R'.$i.'P'};="NULL"; } } Thanks Mike [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Parse error

2001-04-10 Thread elias
I think it is because you put a ';' in the isset() after the '}' i believe if you remove it it will work. -elias http://www.kameelah.org/eassoft ""Mike"" [EMAIL PROTECTED] wrote in message 9av0j6$h2k$[EMAIL PROTECTED]">news:9av0j6$h2k$[EMAIL PROTECTED]... Im getting a "missing )" error on line

[PHP] Parse error after end of file

2001-04-09 Thread DRN
Hi, I am trying to include a header to my document, I my problem is I keep getting a parse error on the line after the header ends. I cannot see what is causing this, can someone see what I have done wrong, the code is below. Cheers for your help, Donald html head titleAccessible Computers

Re: [PHP] Parse error after end of file

2001-04-09 Thread Alexander Wagner
titleAccessible Computers ?="$page_title"?/title DEFANGED_meta name=keywords content="stuff" DEFANGED_meta name=description content='? if ($description) { echo "$description"; } else { echo "Accessible Computers"; ?' Looks like you're missing a } here. regards Wagner

Re: [PHP] Parse error after end of file

2001-04-09 Thread Kurth Bemis
At 03:59 PM 4/9/2001, DRN wrote: you need to make sure that ALL your curly brackets are closed and that all lines that require semi-colons have them ~kurth Hi, I am trying to include a header to my document, I my problem is I keep getting a parse error on the line after the header ends. I

Re: [PHP] Parse error after end of file

2001-04-09 Thread DRN
Kurth Bemis [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | At 03:59 PM 4/9/2001, DRN wrote: | you need to make sure that ALL your curly brackets are closed and that all | lines that require semi-colons have them | | ~kurth D'oh, I don't know how I didn't

[PHP] parse error

2001-04-08 Thread kenny.hibs
I am getting a parse error in the following line of code ** foreach ($messagearray as $value) { //print("strlen: " . strlen($value)); if (strlen($value) = 22) { ? script alert('Your post is too long...use the forum for longer stories.') /script ?

Re: [PHP] parse error

2001-04-08 Thread Joe Stump
Worked for me, but I had to make sure that $messagearray was in fact an array. So wrap that block of code in this: if(is_array($messagearray) sizeof($messagearray)) { } --Joe On Mon, Apr 09, 2001 at 01:13:00AM +0100, kenny.hibs wrote: I am getting a parse error in the following line

Re: [PHP] parse error

2001-04-08 Thread Philip Olson
Three questions : 1. What is the parse error. 2. What line corresponds with the parse error. 3. What are the two lines above the line in #2 Regarding your code, it works (no parse error) for me. Two possible issues/guesses/warnings are : a. Foreach is php4+ (see manual for

[PHP] parse error inside comment????

2001-03-20 Thread Jaxon
Hi Gurus - any suggestions here would be welcome, I'm baffled. I have a file that does this: ? require("function_definitions.php"); //some more stuff here, calling functions, etc. ? but when I call this file, it gives me a parse error in function_definitions.php. No biggie, so I start

Re: [PHP] parse error inside comment????

2001-03-20 Thread andrew
rly brace) just *above* the line in the error message. Kirk -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 1:18 PM To: [EMAIL PROTECTED] Subject: [PHP] parse error inside comment To summarize, a parse error is showing up on a file b

[PHP] parse error on line after last one???

2001-02-27 Thread Jaxon
Hi all, Can anyone tell me why Im getting an unhelpful error when trying to pull up a file? The index.php Im calling is including a functions file functions.inc.php Im getting a parse error on line 144 but functions.inc.php only has 143 lines...! does this actually mean anything, or is it

Re: [PHP] parse error on line after last one???

2001-02-27 Thread Chris Aitken
At 06:31 PM 27/02/2001, Jaxon wrote: Hi all, Can anyone tell me why Im getting an unhelpful error when trying to pull up a file? The index.php Im calling is including a functions file functions.inc.php Im getting a parse error on line 144 but functions.inc.php only has 143 lines...! does

Re: [PHP] parse error on line after last one???

2001-02-27 Thread Simon Garner
From: "Jaxon" [EMAIL PROTECTED] Hi all, Can anyone tell me why Im getting an unhelpful error when trying to pull up a file? The index.php Im calling is including a functions file functions.inc.php Im getting a parse error on line 144 but functions.inc.php only has 143 lines...! does

[PHP] parse error driving me nuts ...

2001-02-15 Thread Andrew
hi, can anyone help me spot the parse error? It's throwing up on the first "if" line, and for the life of me I cannot find it! :) tia, andrew ?php include("db_connect_params.inc"); $sql="select path from PHOTO where pid =1"; $link_id = mysql_connect($host, $usr, $pass); $result =

RE: [PHP] parse error driving me nuts ...

2001-02-15 Thread Jon Haworth
Instead of if ((mysql_num_rows($result)) = 1) try if ((mysql_num_rows($result)) == 1) HTH Jon -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: 15 February 2001 15:34 To: [EMAIL PROTECTED] Subject: [PHP] parse error driving me nuts ... hi, can anyone help me spot

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread Ifrim Sorin
Try to use == instead of = Sorin Ifrim - Original Message - From: Andrew [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 5:33 PM Subject: [PHP] parse error driving me nuts ... hi, can anyone help me spot the parse error? It's throwing up on the first

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread John Vanderbeck
hi, can anyone help me spot the parse error? It's throwing up on the first "if" line, and for the life of me I cannot find it! :) tia, andrew ?php include("db_connect_params.inc"); $sql="select path from PHOTO where pid =1"; $link_id = mysql_connect($host, $usr, $pass); $result =

RE: [PHP] parse error driving me nuts ...

2001-02-15 Thread Andrew
PROTECTED]'; '[EMAIL PROTECTED]' Subject: RE: [PHP] parse error driving me nuts ... Instead of if ((mysql_num_rows($result)) = 1) try if ((mysql_num_rows($result)) == 1) HTH Jon -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: 15 February 2001 15

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread John Vanderbeck
Jon, John, Ifrim, the == worked ... thank you!! gotta read up on it now :) Cameron, dropping the extra () did not work :( thanks for the suggestions folks! andrew Remember that '=' means assign what is on the right to what is on the left, whereby '==' means is what is on the left equal

Re: [PHP] Parse error on blank line...

2001-02-06 Thread Toby Butzon
CTED]] Sent: Monday, February 05, 2001 05:38 PM To: April; Jackson, Michael; [EMAIL PROTECTED] Subject: RE: [PHP] Parse error on blank line... I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it,

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:23 PM Subject: [PHP] Parse error on blank line... Hello all, I hope this doesn't turn out to be a stupid question, but we will see... I am getting parse errors on blank lines. Not commented, but totally blank. And

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
argh, nm, I'm an idiot. - Original Message - From: "April" [EMAIL PROTECTED] To: "Jackson, Michael" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:31 PM Subject: Re: [PHP] Parse error on blank line... You missed a } in there. Inside of

RE: [PHP] Parse error on blank line...

2001-02-05 Thread johnny p.
: Monday, February 05, 2001 4:31 PM To: Jackson, Michael; [EMAIL PROTECTED] Subject: Re: [PHP] Parse error on blank line... You missed a } in there. Inside of that else, you have an if, but you never close the else. 190 showmainscreen(); 191} 192 should be 190

RE: [PHP] Parse error on blank line...

2001-02-05 Thread Jackson, Michael
PROTECTED] Subject: RE: [PHP] Parse error on blank line... I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea. johnny p. -Original

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
PROTECTED]; "Jackson, Michael" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:48 PM Subject: RE: [PHP] Parse error on blank line... Even if I was missing a brace, doesn't it seem odd that it would always give me a syntax error on the same line? It's a

[PHP] Parse error

2001-01-23 Thread Liam Gibbs

Re: [PHP] Parse error

2001-01-23 Thread Liam Gibbs
Should probably put the whole thing. Why does this produce a parse error (I know that include statements do weird things to if structures): if($username != "") { code code code } else { include("file.php3"); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] Parse error

2001-01-23 Thread Matt Williams
Which line is producing the error?? M@ -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED]] Sent: 23 January 2001 17:32 To: [EMAIL PROTECTED] Subject: Re: [PHP] Parse error Should probably put the whole thing. Why does this produce a parse error (I know

[PHP] Parse Error

2001-01-14 Thread Wade Halsey
Hi Im getting a parse error with this: $sqlCheckLogin = sqlExecute( "Select * from Sky where SkyUName = '".$HTTP_POST_VARS['UserName']."' AND SkyPasswd = '".($HTTP_POST_VARS['Password'])."'" ) ; Help

<    1   2   3   4