PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
The following code works fine in my windows platform. Somehow when i run it in linux, it says that "cant open file write". I have chmod the directory that the files resides on to 777. Although the directory is chmod to 777 but somehow the file cannot be created. any idea why ???
Is the file you're trying to create in that exact folder or a subfolder? I hope this doesn't sound too patronising (sorry if it does - it's not intended) but did chmod give any output at all? (text on screen).
If it's in a subfolder either chmod the actual folder OR do a chmod recursive (chmod -R 0777 folder_name).
BTW.... (i think) you need to make sure you do 0777 and not 777