Re: PHP returns source file instead of processing it
| From: | Stut | Date: | Sun, 28 Jan 2007 17:33:45 +0000 |
| Subject: | Re: PHP returns source file instead of processing it | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-27409@lists.php.net to get a copy of this message | ||
Reinhard Mayr aka Czerwinski wrote:
I installed the windows binaries (5.2.0 installer from http://www.php.net/downloads.php) on my XP box. To test the installation of PHP, I use a minimal test script "phpinfo.php": <? phpinfo() ?> When I call "php phpinfo.php", all I get is a dump of the source file but not the info I should recieve. It seems as if PHP does not process the file but just prints it.You are using short tags which are disabled by default in that version of PHP. That is why it's not interpreting the code. Change <? to <?php and it'll work fine. -Stut