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

2005-11-09 Thread Paul Williams
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

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

2005-11-09 Thread Ben Ramsey
On 11/9/05 9:45 AM, Paul Williams wrote: ?php print EOF HTML $_SERVER['PHP_SELF'] /HTML EOF; ? Try it with curly braces: ?php print EOF HTML {$_SERVER['PHP_SELF']} /HTML EOF; ? -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2005-11-09 Thread Paul Williams
] 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

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

2005-11-09 Thread Ben Ramsey
On 11/9/05 9:51 AM, Paul Williams wrote: Alright cool that one worked. Do I have to include the curly braces in all calls to variables or just the superglobals? It's not a superglobal issue; it's an array issue -- or, rather, it's an issue with using quotation marks. You could have also done

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

2005-11-09 Thread Ben Ramsey
On 11/9/05 10:03 AM, Paul Williams wrote: So would it be acceptable if I used curly braces on all variables (whether superglobals or not) in a here document? Yes. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2005-11-08 Thread Richard Lynch
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

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

2005-11-08 Thread Paul Williams
[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

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

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 06:32:00PM -0500, 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 Acutally he

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

2005-11-08 Thread Richard Lynch
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

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

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 5:52 pm, Curt Zirzow wrote: On Tue, Nov 08, 2005 at 06:32:00PM -0500, 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

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

2005-11-07 Thread Pablo Gosse
[snip] 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 !-INSERT HTML HEADER HERE -- $_SERVER['PHP_SELF'] EOF; Say that was a part of

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

2005-11-07 Thread Curt Zirzow
* Paul Williams [EMAIL PROTECTED] [2005-11-07 12:31:17 -0500]: 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 !-INSERT HTML HEADER HERE -- $_SERVER['PHP_SELF'] EOF; You might want to

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

2005-11-07 Thread Unknown Unknown
you only need 3 On 11/7/05, Curt Zirzow [EMAIL PROTECTED] wrote: * Paul Williams [EMAIL PROTECTED] [2005-11-07 12:31:17 -0500]: 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 !-INSERT HTML

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

2005-11-07 Thread Curt Zirzow
On Mon, Nov 07, 2005 at 09:40:23PM -0500, Unknown Unknown wrote: you only need 3 Indeed, as well as Pablo's guess of escaping an array within a heredoc, and i would guess as well that that space between his ' EOF' is invalid as well. Btw, you do realize your name is 'Unknown Unknown'? Curt