I use hosting provider for my site. When I test the site on my local computer, the files are opened correctly. But after I upload the site the following error occurs "Warning: fopen(test.txt): failed to open stream: Permission denied in /home/ilyalyu/public_html/test.php on line 4". If I change chmod of the test.txt to 777 using ftp, everything works well. But I cant leeve this chmod because in this case anybody can change the file.
If anybody can explain how to work with files when you are using hosting provider, I would be grateful.




Bookmarks