Jump to content

Warning: file_put_contents Permission denied


seco

Recommended Posts

Hi

i test my page that is put the file content on local server and it works file and when i uplaod it to the server it gives me this error:-

 

Warning: file_put_contents("myfile.xml") [function.file-put-contents]: failed to open stream: Permission denied in .... line ..

 

any help?

 

thanks in advance.

You might get more information about why it's happening by using fopen, if you read the manual for file_put_contents then you will see the tip that say's to use an url you need the support enabled in php.ini (which could possibly be a xss liability, so webmasters can disable).

 

Maybe seeing the actual code your using might help.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.