PHP_OS and Windows ME
| From: | Michael Gibson | Date: | Mon, 05 Mar 2001 14:03:00 +0000 |
| Subject: | PHP_OS and Windows ME | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-276@lists.php.net to get a copy of this message | ||
Peter,
I put <?php echo PHP_OS; ?> into a file called
test.php and ran it.
This is my output:
C:\php-gtk>php test.php
X-Powered-By: PHP/4.0.5-dev
Content-type: text/html
WIN32
So it looks like it can detect Windows. =)
I changed the code in the demo list.php to look like this:
if (substr(PHP_OS, 0, 3) == 'WIN')
dl('php_gtk.dll');
else
dl('php_gtk.so');
and it worked.
I honestly thoght I had tried that earlier. The only differnce
I can think of is that I installed J Wynia's php-gtk installer.
Or I just waisted my time on an over looked typo.
Thanks for the help though,
Michael Gibson