|
Posted by Martie on 05/15/06 21:03
On 12 May 2006 02:06:22 -0700, Peter van Schie wrote...
>
>mukherjeesubrato@gmail.com wrote:
>
>> Unable to create
>> '/home/websites/www/site/content/image_4460c72ef29fc.GIF': No such file
>> or directory in
>> /home/websites/www/site/dep/code/contents/ALImageBlock.php on line 287
>>
>> I have checked the permissions and also set them 777 for the folder. Is
>> there any user I need to specify that would be accessing the folder.
>
>Hi Subrato,
>
>You say the error occurs when it's trying to move the created temp gif,
>so could it be that the creation of the gif itself fails and hence the
>error No such file or directory (the source file)?
>
>Regarding the permissions: if you set the rights to 777, you don't need
>to mind the owner of the directory because everyone can write in it
>including the webserver user (usually nobody).
>
>Regards,
>Peter.
>
Might also be worth breaking your program up into a couple of steps that may
help out with your debugging. As an example, first put a real graphic file in
the directory to see if you can move it with your PHP code. Once you have the
move functioning correctly, then build in the portion related to the temporary
gif creation process. Sometimes if you are trying to do many things at one time,
there errors aren't very clear in pointing out the problem.
--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth
[Back to original message]
|