[RESOLVED] PHP Setup question
I am setting up PHP on a 602Lan Suite Server. 602 says it works with PHP and here is their KB article on how to set it up [HowTo] Setup PHP and 602Lan Suite, which I have followed precisely.
Although I haven't got it working yet, I think I am close, and I came across a strange behavior. I would like to determine if this is a 602 problem or maybe I haven't configured PHP correctlly.
In my test PHP script, all I have is:
PHP Code:
<?
phpinfo();
?>
When I browse to the test script, this is what I see:
Quote:
System => Windows NT SERVER 5.1 build 2600 Build Date => May 4 2006 10:30:29 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:\php\php.ini PHP API => 20041225 PHP Extension => 20050922 Zend Extension => 220051025 Debug Build => no Thread Safety => enabled Zend Memory Manager => enabled IPv6 Support => enabled Registered PHP Streams => php, file, http, ftp, compress.zlib Registered Stream Socket Transports => tcp, udp Registered Stream Filters => convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.* This program makes use of the Zend Scripting Language Engine: Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend...
This goes on and on for several pages, but this should give you enough of an idea that PHP is processing the phpinfo(); command but for some reason it's not formatting it for the page.
What do you think? Any ideas would be very helpful.
Re: [RESOLVED] PHP Setup question
Ah yes.
php.exe was correct for PHP 4, I think. They were separated in version 5 :)
Glad to hear you fixed it.
Re: [RESOLVED] PHP Setup question
In PHP 5, php.exe is the command line interpreter and php-cgi.exe is the PHP CGI application designed to run with a CGI compatible web server.
The difference is, the PHP CLI doesn't output a content-type header and errors are not output in HTML by default. It allows you to write scripts which can be run from the command line similar to batch files.
Re: [RESOLVED] PHP Setup question
That's good to know VisualAd. I can see an application for the CLI already.