Re: [PHP] Here Document on Mac OS X
Hello, Craig Buxton [EMAIL PROTECTED] wrote: I have been trying to include an echo statement incorporating a here document on pages being served by my Mac OS X (v10.1.5) and Apache (v1.3) When I try to browse test.php, which contains... ?php echoENDOFECHO html hello...hello... /html ENDOFECHO; ? I get a parse error. When I upload it to my ISP it works as expected, but again it won't work on my server. What can I change or where can I go for an answer. I did a copy and paste and your code works fine. Perhaps, you can (1) post the exact error message (2) check whether you uploaded *the same* file :) (3) make sure that there's no spaces, etc. after the semi-colon ENDOFECHO; - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Here Document on Mac OS X
On Tuesday 12 November 2002 20:05, Craig Buxton wrote: I have been trying to include an echo statement incorporating a here document on pages being served by my Mac OS X (v10.1.5) and Apache (v1.3) When I try to browse test.php, which contains... ?php echoENDOFECHO html hello...hello... /html ENDOFECHO; ? I get a parse error. When I upload it to my ISP it works as expected, but again it won't work on my server. What can I change or where can I go for an answer. I think it's something to do with the end of line character -- you have to use a single linefeed character (0Ah). Try searching the archives, I think this issue cropped up a few weeks ago. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Man 1: Ask me the what the most important thing about telling a good joke is. Man 2: OK, what is the most impo -- Man 1: __TIMING! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Here Document on Mac OS X
Le mardi, 12 nov 2002, à 14:15 Europe/Paris, Jason Wong a écrit : On Tuesday 12 November 2002 20:05, Craig Buxton wrote: I have been trying to include an echo statement incorporating a here document on pages being served by my Mac OS X (v10.1.5) and Apache (v1.3) When I try to browse test.php, which contains... ?php echoENDOFECHO html hello...hello... /html ENDOFECHO; ? I get a parse error. When I upload it to my ISP it works as expected, but again it won't work on my server. What can I change or where can I go for an answer. I think it's something to do with the end of line character -- you have to use a single linefeed character (0Ah). Try searching the archives, I think this issue cropped up a few weeks ago. If I copy your test.php file in BBEdit and save it as Macintosh file it does'nt work , but works saved as a Unix file [...] Pierre Vaudrey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php