Error renaming index.html with PHP

0

I'm trying to rename the "index.html" from a PHP file (settings.php) with the following line:

rename ("/index.html", "/hidden.html");

And I find myself with the following warning

  

"Warning, read only file system in /srv/disk10/4521568/www/mydomain/admin/settings.php settings.php on line 28".

The problem is that the file does not change its name.

Could someone help me with this?

    
asked by Leandro 04.01.2019 в 22:38
source

1 answer

3

Resolved! what was wrong seems to be the path to the file! I do not erase the question to warn others unprepared! that when you do not find the file instead of pulling "No file found ..." you can return some error that could be interpreted associated with the permissions!

Greetings and many thanks to all!

    
answered by 04.01.2019 в 23:23