[PHP] Using the echo tag...

2005-11-07 Thread Paul Williams
I'm relatively new at coding PHP but I was hoping someone can help me with
this.

 

I'm trying to write the following code into my program but each time it
runs, I get an error message. Can anyone help?

 

print  EOF

 



$_SERVER['PHP_SELF']

 

EOF;

 

Say that was a part of a HTML Form action tag, everytime I try to run it, I
get an error message am I doing something wrong or do I have to break out of
the here document to use this syntax?



Re: [PHP] Using the echo tag...

2005-11-08 Thread Paul Williams

Nope sorry. It says this error "
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting 
T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Abyss Web 
Server\htdocs\document1.php on line 6

"



Thank you.
Sincerely,


Paul Lee Williams III






From: "Richard Lynch" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "Paul Williams" <[EMAIL PROTECTED]>
CC: php-general@lists.php.net
Subject: Re: [PHP] Using the echo tag...
Date: Tue, 8 Nov 2005 17:19:58 -0600 (CST)
MIME-Version: 1.0
Received: from o2.hostbaby.com ([67.139.134.202]) by mc10-f11.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Tue, 8 Nov 2005 15:19:55 -0800

Received: (qmail 74135 invoked by uid 98); 8 Nov 2005 23:19:58 -
Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from <[EMAIL PROTECTED]>, 
uid 1013) with qmail-scanner-1.25  (clamdscan: 0.70-rc.   
Clear:RC:1(127.0.0.1):.  Processed in 0.054912 secs); 08 Nov 2005 23:19:58 
-
Received: from unknown (HELO l-i-e.com) (127.0.0.1)  by localhost with 
SMTP; 8 Nov 2005 23:19:58 -
Received: from 67.108.68.36(SquirrelMail authenticated user 
[EMAIL PROTECTED])by www.l-i-e.com with HTTP;Tue, 8 Nov 2005 
17:19:58 -0600 (CST)

X-Message-Info: JGTYoYF78jGe2OTt/258Mnhj9SOv7kuEj53AasWhSQM=
X-Qmail-Scanner-Mail-From: [EMAIL PROTECTED] via o2.hostbaby.com
X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.054912 secs)
References: <[EMAIL PROTECTED]>
User-Agent: Hostbaby Webmail
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 08 Nov 2005 23:19:55.0431 (UTC) 
FILETIME=[EDC86370:01C5E4BA]


On Mon, November 7, 2005 11:31 am, Paul Williams wrote:
> I'm relatively new at coding PHP but I was hoping someone can help me
> with
> this.
>
>
>
> I'm trying to write the following code into my program but each time
> it
> runs, I get an error message. Can anyone help?
>
>
>
> print <<<< EOF

You've got one too many <'s in there...

print << 
>
> $_SERVER['PHP_SELF']
>
>
>
> EOF;

This MUST be in the far left column to work reliably, with no
preceding spaces or tabs.

Can't tell for sure from email if you did that.

--
Like Music?
http://l-i-e.com/artists.htm




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Using the echo tag...

2005-11-09 Thread Paul Williams


$_SERVER['PHP_SELF']

EOF;

?>

Here's the coding and the error for it was this:


> Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
> expecting
> T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Abyss Web
> Server\htdocs\document1.php on line 6
> "



Thank you.
Sincerely,


Paul Lee Williams III






From: "Richard Lynch" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "Paul Williams" <[EMAIL PROTECTED]>
CC: php-general@lists.php.net
Subject: Re: [PHP] Using the echo tag...
Date: Tue, 8 Nov 2005 19:25:12 -0600 (CST)
MIME-Version: 1.0
Received: from o2.hostbaby.com ([67.139.134.202]) by mc5-f37.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Tue, 8 Nov 2005 17:25:08 -0800

Received: (qmail 79084 invoked by uid 98); 9 Nov 2005 01:25:13 -
Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from <[EMAIL PROTECTED]>, 
uid 1013) with qmail-scanner-1.25  (clamdscan: 0.70-rc.   
Clear:RC:1(127.0.0.1):.  Processed in 0.157818 secs); 09 Nov 2005 01:25:13 
-
Received: from unknown (HELO l-i-e.com) (127.0.0.1)  by localhost with 
SMTP; 9 Nov 2005 01:25:12 -
Received: from 67.108.68.36(SquirrelMail authenticated user 
[EMAIL PROTECTED])by www.l-i-e.com with HTTP;Tue, 8 Nov 2005 
19:25:12 -0600 (CST)

X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
X-Qmail-Scanner-Mail-From: [EMAIL PROTECTED] via o2.hostbaby.com
X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.157818 secs)
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

User-Agent: Hostbaby Webmail
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 09 Nov 2005 01:25:09.0224 (UTC) 
FILETIME=[6C5A3680:01C5E4CC]


On Tue, November 8, 2005 5:32 pm, Paul Williams wrote:
> Nope sorry. It says this error "
> Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
> expecting
> T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Abyss Web
> Server\htdocs\document1.php on line 6
> "

Show us EXACTLY what you have in lines 1 through 6.

Not just sorta.

Copy-n-paste it.

Or put it up on the web as TEXT output.

Odds are pretty good your real mistake is in line 5 or even before that.

--
Like Music?
http://l-i-e.com/artists.htm




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Using the echo tag...

2005-11-09 Thread Paul Williams
Alright cool that one worked. Do I have to include the curly braces in all 
calls to variables or just the superglobals?




Thank you.
Sincerely,


Paul Lee Williams III






From: Ben Ramsey <[EMAIL PROTECTED]>
To: php-general@lists.php.net,Paul Williams <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Using the echo tag...
Date: Wed, 09 Nov 2005 09:48:52 -0500
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by mc10-f41.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Wed, 9 Nov 2005 06:48:57 -0800
Received: from ([69.164.218.60:21029] helo=localhost.localdomain)by 
pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTPid 16/ED-28724-75C02734 
for <[EMAIL PROTECTED]>; Wed, 09 Nov 2005 09:48:55 -0500

X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
Return-Path: <[EMAIL PROTECTED]>
X-Host-Fingerprint: 69.164.218.60 
eycb01-00-cntnga-69-164-218-60.atlaga.adelphia.net  User-Agent: Mozilla 
Thunderbird 1.0.6 (Macintosh/20050716)

X-Accept-Language: en-us, en
References: <[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]>

X-Posted-By: 69.164.218.60
X-OriginalArrivalTime: 09 Nov 2005 14:48:57.0698 (UTC) 
FILETIME=[B6C35420:01C5E53C]


On 11/9/05 9:45 AM, Paul Williams wrote:


$_SERVER['PHP_SELF']

EOF;

?>


Try it with curly braces:


{$_SERVER['PHP_SELF']}

EOF;

?>

--
Ben Ramsey
http://benramsey.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php