note 45086 rejected from function.imagejpeg by betz
| From: | betz@php.net | Date: | Thu, 26 Aug 2004 09:54:44 +0000 |
| Subject: | note 45086 rejected from function.imagejpeg by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75318@lists.php.net to get a copy of this message | ||
Note Submitter: diegob at altaironline dot com
----
About the filename argument
If you try a script like this:
imagejpeg($Rdst,"../somedir/".$photo_name);
you will get a "write to file" error message.
So the workaround is:
imagejpeg($Rdst,"./../somedir/".$photo_name);
Of course the permission on "somedir" must be set to 777.
I haven't tryed imagepng yet ;)
Hope this helps...