Posted by Berimor on 11/18/05 00:40
On Thu, 17 Nov 2005 23:57:58 +0800, chris <someone@here.com> wrote:
> im trying to rename a file using the rename(old file, new file) function
>
> i have also tried the copy funtion also
>
> the folder that the files are in are chmod 755
> and the files themself are chmod 644
>
> if i run the script on my own domain it works as expected
>
> however i am trying to run it on another domain on another server, the
> files
> and directory have the same permissions as mentioned above but i get a
> PHP
> Permission denied warning.
>
> my domain is running php 5.
> the problem domain is running PHP 4.3.11
>
> any idea why this is not working
>
The problem is in Apache + general system configuration. The PHP
interpretator by itself (or module - if installed as part of Apache )
doesnt have enough rights to make such manipulations with file system. I
have some domains with the same problem and tech guys usually says - we
made this because of security reason. But i think that they are not
expirienced enough and are not sure - that's why cosiders this as the best
way to defend themselves from probable hacks.
--
Exact Meta Search | Major Search Engine
http://exactsearcher.com
[Back to original message]
|