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
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
{
/
//
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
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
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
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))
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
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
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
?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
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
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])))
{
, 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
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/)
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.
?
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.
?
-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
-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
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]
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
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
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;
]
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
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
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:
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
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)
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
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
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
... 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
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
===
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):
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;
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.";
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
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
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
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
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
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
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
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
?
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
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
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
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
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
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
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
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 =
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
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
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 =
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
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
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,
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
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
: 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
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
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
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:
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
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
301 - 366 of 366 matches
Mail list logo