RE: [PHP-WIN] determine host platform - win32 / *nix

2003-03-22 Thread Eric Gach
There's a few examples of this in the manual somewhere... but here's some basic code for it: if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) dl('module.dll'); else dl('module.so'); Hope that helps. ~ Eric Gach EvilWalrus.com Co-Administrator -Original Message- From: John M. Calver

[PHP-WIN] ImageCreateFromJpeg problem loop in apache under win

2003-03-22 Thread fbn
Hi. I'm using php 4.3.0 with apache on winxp pro (gd2 bubled version). I'm writed a script that receive an uploaded file and if it's a jpeg move it in a directory for later use. All goes right but if the uploaded jpeg file is corrupted in some case the function ImagecreatefromJpeg don't return any

php-windows Digest 22 Mar 2003 17:36:05 -0000 Issue 1647

2003-03-22 Thread php-windows-digest-help
php-windows Digest 22 Mar 2003 17:36:05 - Issue 1647 Topics (messages 19084 through 19086): Re: Subject: Cookies 19084 by: Neil Smith determine host platform - win32 / *nix 19085 by: John M. Calvert Imagecreatefromjpeg problem. 19086 by: FBN Administrivia: To subs

[PHP-WIN] Imagecreatefromjpeg problem.

2003-03-22 Thread FBN
Hi. I'm using php 4.3.0 with apache on winxp pro (gd2 bubled version). I'm writed a script that receive an uploaded file and if it's a jpeg move it in a directory for later use. All goes right but if the uploaded jpeg file is corrupted in some case the function ImagecreatefromJpeg don't return any

[PHP-WIN] determine host platform - win32 / *nix

2003-03-22 Thread John M. Calvert
Hello, how do I determine from code the host platform running PHP? For example, php.dl() requires a different module name under Win32 and *nix so for more portable code I would like to write something like: if (php_platform() == WIN32) dl('module.dll'); else dl('module.so'); Does this exis

[PHP-WIN] Re: Subject: Cookies

2003-03-22 Thread Neil Smith
Try looking in your C:\\Documents And Settings\username\cookies folder, then sorting the list by domain (you may be running on localhost so it would show up there) NB : Your setcookie line is broken - please check the syntax, as time()1209600 is not valid PHP! Cheers, Neil Smith. At 04:28 22/0