Jump to content

Problem with PHP 5.2.2 on windows


Recommended Posts

Hi,

 

I just installed PHP 5.2.2 on a windows server.  Something isn't working right.  Whenever I run php from the command line It just echos the script back at me. For Example:

 

C:\PHP>php info.php
<?
phpinfo();
?>

 

However, when I use the --no-php-ini option everything works:

 

C:\PHP>php --no-php-ini info.php|more
phpinfo()
PHP Version => 5.2.2

System => Windows NT HOTELS-WEB 5.2 build 3790
Build Date => May  2 2007 19:17:46
Configure Command => cscript /nologo configure.js  "--enable-snapshot-build" "--
with-gd=shared"
Server API => Command Line Interface
Virtual Directory Support => enabled
Configuration File (php.ini) Path => C:\WINDOWS
Loaded Configuration File => (none)
PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
Debug Build => no
Thread Safety => enabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports => tcp, udp
Registered Stream Filters => convert.iconv.*, string.rot13, string.toupper, stri
ng.tolower, string.strip_tags, convert.*, consumed, zlib.*

...etc...

 

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/52871-problem-with-php-522-on-windows/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.