Jump to content

how to create a file on the server


neugi

Recommended Posts

It may sound confusing, but fopen() is used to create files.
if you write:
fopen("something.txt","w");
And something.txt doesnt exsist, it'll try to create it.

Note that the file will be created only using the modes w, w+, a and a+.

For more information, check [url=http://www.php.net/manual/en/function.fopen.php]fopen()[/url]

Orio.

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.