Re: Safe mode & imagecreatefromjpeg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux