php-windows Digest 23 Mar 2003 11:22:40 -0000 Issue 1648

Topics (messages 19087 through 19089):

ImageCreateFromJpeg problem loop in apache under win
        19087 by: fbn

Re: determine host platform - win32 / *nix
        19088 by: Eric Gach

crop images
        19089 by: Bobo Wieland

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
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 error and apache process start run at 100% of the cpu end the script don't stop even after max execution time.
what's the problem?
any ideas?


thanks
*FbN**

--- End Message ---
--- Begin Message ---
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. Calvert [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 22, 2003 8:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] determine host platform - win32 / *nix

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 exist?

John M. Calvert, M.Sc., MCSD

1310521 Ontario Inc.
49 Belmont Ave.
Ottawa ON K1S 0V2
(613) 730-9851
http://members.rogers.com/john-m-calvert/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.461 / Virus Database: 260 - Release Date: 3/10/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.461 / Virus Database: 260 - Release Date: 3/10/2003
 


--- End Message ---
--- Begin Message ---
Hi

If I have an image that is 300x150px and I need to crop it so that it gets
150x150px by croping 75px fom each side of the image, how do I do this?

.bobo


--- End Message ---

Reply via email to