Problem with temp gif creation
am 09.05.2006 18:45:09 von mukherjeesubrato
Hi,
In one of the content management system, at one point a temp gif is
created and then it needs to be transferred to one of the specific
directory. After creation using the code in php, when it tries to move
the file there is problem as it says
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.
Any help is appreciated
thanks
Subrato
Re: Problem with temp gif creation
am 12.05.2006 11:06:22 von Peter van Schie
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.
--
http://www.phpforums.nl