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 there,
I'm using PHP and Personal Web Server in a Windows 98 PC.
What should I do to make PHP parse all .htm files and not only those with
the .php extension?
Many thanks in advance,
Jorge Alvarez
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
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
,
Maxim Maletsky
-Original Message-
From: Soma Interesting [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 5:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] parse speed vs require speed
I'm wondering if I should organize the functions for my project into a
single
I'm wondering if I should organize the functions for my project into a
single large file and have only one include/require, or break the code out
into separate function library files and use a number of includes/requires.
With a single large function library I'm guessing PHP would parse this
Accoring to Microsofts book 'Rapid Development' (dont knock it, excellent
book) says the average human can not keep track of more then 500 lines of
code at once, I beleive it. I break my code up into sections smaller then
500 lines, keeps the code better. load time because files are distributed
of your code
having your software more dynamic.
Cheers,
Maxim Maletsky
-Original Message-
From: Soma Interesting [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 5:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] parse speed vs require speed
I'm wondering if I should organize
Hi Guys,
Im looking for a way to parse a value from between two tags
somethingThis is what i want to return/something
Basically its simply a block of HTML from within a large HTML file.
Speed is definately a consideration in any solution.
Any ideas?
Cheers,
Mark
--
If I was a signature
rom: Mark Green [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 6:06 PM
To: PHP General Mailing List
Subject: [PHP] Parse HTML Block
Hi Guys,
Im looking for a way to parse a value from between two tags
somethingThis is what i want to return/something
Basically its simply a block of HTML
On 8 Feb 2001 06:24:20 -0800, Kato Strandjord [EMAIL PROTECTED] wrote:
How is it possible to parse a WML strin variable with a value="SO480", and
parse over to a PHP strin variabl , so you can use it to in a PFP function.
I get a error messages in M3gate WAP emulator, an UP SDK emulator telling
a } or a ; is missing. Seriously.
- Original Message -
From: "Jackson, Michael" [EMAIL PROTECTED]
To: "'johnny p.'" [EMAIL PROTECTED]; "April" [EMAIL PROTECTED];
"Jackson, Michael" [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, February 05
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
variables passed from form =
part=68030quan=500I=xpart=68040quan=350I=xsid=6754g543a76
I am sending several part numbers from the form, but when parsed it only gives me the
last one
How do I get it to return all of the parts? I'm a PHP newbie, only been programming
for 2 weeks...
script
On Wed, 31 Jan 2001 01:55, Robert wrote:
variables passed from form =
part=68030quan=500I=xpart=68040quan=350I=xsid=6754g543a76 I am
sending several part numbers from the form, but when parsed it only gives
me the last one How do I get it to return all of the parts? I'm a PHP
newbie, only
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
I have a BLOB field in a MySQL database that I want
to parse into my page using PHP.
For instance, in this field might be the following:
? echo "test"; ?
So when I access this field in PHP I want it to display "test".
Is this possible?
Yeah. That's called "eval" (short for 'evaluate')
and variables used
in the class language I wrote when I am done.
What do you think?
Thankz again!
Rob
List: php-general
Subject: Re: [PHP] PHP Parse MySQL Field???
From: "Richard Lynch" [EMAIL PROTECTED]
Date: 2001-01-20 9:27:12
[Download message RAW]
I have a BLOB field
Please email me directly with your response. I am not subscribed to the list. Thankz
in advance.
- Original Message -
From: [ rswfire ]
To:
Sent: Friday, January 19, 2001 9:56 PM
Subject: PHP Parse MySQL Field???
I have a BLOB field in a MySQL database that I want to parse
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
501 - 551 of 551 matches
Mail list logo