RE: [PHP] include ("foo.php") not working

From: Date: Wed, 25 Jul 2001 14:37:40 +0000
Subject: RE: [PHP] include ("foo.php") not working
Groups: php.general 
Request: Send a blank email to php-general+get-59559@lists.php.net to get a copy of this message
I've found that when I forget to start and end the include file's code with <? and ?> it sometimes does exactly what you're getting. Regards Rudolf -----Original Message----- From: Jon Hubbard [mailto:jh@dhp-bath.co.uk] Sent: 25 July 2001 01:42 To: php-general@lists.php.net Subject: [PHP] include ("foo.php") not working I have a strange problem which I cannot seem to resolve. I am running PHP 4.0.6 on my Mac OSX using apache and MySQL. Everything works fine except for one problem. Like many developers I make extensive use of the include funtion but it does not seem to work correctly on this installation. when I include the statement <? include ("foo.php"); ?> then rather than parsing the file and displaying the results the whole file is just dumped to screen as a text file. Interesting the same problem occurs whatever the file extension so the same thing happens for foo.htm, foo.html and foo.txt! I do not get this problem with my SUSE Linux 7.1 box which is also running PHP, Apache and MySQL. I did compile and make the PHP from the source. Your help and advice would be much appreciated. TIA Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#59559) next »