open_basedir restriction does not allow me to use rename() or write files in a dir.
- by lukasoppermann
Hey,
I have a php file (currently at / ) and I want this file to change the content of a file, "test.js".
This file is in the dir "/libs/js/test.js". While I can read the content, for example with fread or file_get_contents, I can not write in it with file_put_contents or any other function.
I always get the Warning
Warning: rename() [function.rename]: open_basedir restriction in effect. File(/libs/js/test.js) is not within the allowed path(s): (/var/www/web166/:/usr/bin/) in /var/www/web166/html/info.php on line 88
Does anyone have any idea what to do? Thanks in advance.