Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.