This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

PHP


Page 7 of 17« FirstNext3456789101112NextLast »

How to split a word or sentence delimited with slashes, commas or hyphens

How to split a word or sentence delimited with slashes,commas, dots, or hyphens < ?php // Delimiters may be slash, comma, or hyphen $data = “Welcome to, the world of php”; list($first, $second) = split(‘[/,-]‘, $data); echo “First Letter: $first;... (Continue reading)

Tagged with:     

File System Reference In PHP

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)

Tagged with:     

Find Absolute Path Of A File Or Directory Using PHP

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)

Tagged with:         

Pass PHP Value To Javascript

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)

Tagged with:             

How To Set And Get Cookies Using PHP

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)

Tagged with:         

Page 7 of 17« FirstNext3456789101112NextLast »