11-06-2009, 09:54 PM
Credits and Source: http://www.dreamincode.net/
Name: Create an empty file on server
Description: This snippet will create an emty file on server using php function.
Snippet:
Instructions: See the comments for instructions on how to use the page. It'll create a file called SuperCoderExtraordinare.html in the directory you run the php from.
That's it ;)
Thankyou for reading. Be happy always
Name: Create an empty file on server
Description: This snippet will create an emty file on server using php function.
Snippet:
PHP Code:
<?php
/* You MUST make sure you have write permissions in the current directory
If error reporting is on, it will throw a permission denied error */
$filename = 'SuperCoderExtraordinaire.html';
touch( $filename );
?>
Instructions: See the comments for instructions on how to use the page. It'll create a file called SuperCoderExtraordinare.html in the directory you run the php from.
That's it ;)
Thankyou for reading. Be happy always