Lefu Posted November 28, 2007 Share Posted November 28, 2007 hello, I hope I am in the right forum. I am trying to create a file using php file(). can some one help me? fopen() is no allowed on the server. Quote Link to comment Share on other sites More sharing options...
schme16 Posted November 28, 2007 Share Posted November 28, 2007 You can try the function file_put_contents and file_get_contents... but seeing as their aliases they too may be disabled.... Quote Link to comment Share on other sites More sharing options...
v08i Posted November 28, 2007 Share Posted November 28, 2007 for creating a file you must have write permissions to the directory in which you are creating the file. check with your server admin, if he allows you to do so. then you can use any of the functions mentioned in the previous post -- Vijay Quote Link to comment Share on other sites More sharing options...
Orio Posted November 28, 2007 Share Posted November 28, 2007 You can also use exec() to create a file (the command you need to pass depends on your OS). But if fopen() is blocked, I doubt exec() isn't. Orio. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.