The unlink() function deletes a file. This function returns TRUE on success, or FALSE on failure. Syntax unlink(filename,context) Parameter Description filename Required. Specifies the file to delete Example <?php $file = “newfile.txt”; if (!unlink($file)) { echo (“Error deleting $file”); }... (Continue reading)
The absolute path for a file or directory is not the same as the URI. The absolute path on the web server is/home/DIR/Xs/something/mydir/. Here is how to find the absolute path on your web host for a given directory if... (Continue reading)
This is a simple script to pass values from our server side language PHP to the client side script JAVASCRIPT. Its pretty simple we have two php files. CONTACT.php and SEND.php in that you can see like values which we... (Continue reading)
Here is a simple code that explains how a cookie is set and retrieved using php. A cookie is set with the following code: setcookie(name, value, expiration) $Month = 2592000 + time(); //this adds 30 days to the current time... (Continue reading)
Hi Visitors, Two days before i experienced a 500 intenal server error while posting topics and editing my existing topics.I was really disappointed to see that coz if i am unable to post a new topic there is no use... (Continue reading)