Paulo JF Silva wrote:
Hi,

I have PHP 4.3.5 and safe mode on. When I create a new image with imagecreatefromjpeg(), the image owner is 'httpd' and not my ftp user. [this is in a shared host].

I would like to know if there is any way to create the image with my user... I can workaround mkdir & stuff with ftp access but i can't figure out a workaround this 'problem' caused by safe mode.

It's a little tricky. You need to catch imagecreatefromjpeg() output using output buffering, then open a temporary file, write the output there, rewind(), and ftp_fput(). Haven't tried it, but should work.


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



Reply via email to