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

Reset

scripts


Page 9 of 11« FirstNext234567891011

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:         

Fix 500 Internal Server Error In WordPress

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)

Tagged with:             

Change background color using php for a webpage

This is a very simple script that will dynamically change the background color of a webpage using simple php script.Just copy an paste the script below. <html> <head> <title>Background Colors change based on the day of the week</title> </head> <?... (Continue reading)

Tagged with:         

Simple Code To Set And Retrieve Cookie Using PHP

Setting a cookie using PHP <?php $expire=time()+60*60*24*30; setcookie(“user”,”Balu”, $expire); ?> <html></html> Retrieve a cookie using php <html> <body> <?php if (isset($_COOKIE["user"])) echo “Welcome ” . $_COOKIE["user"] . “!<br />”; else echo “Welcome guest!<br />”; ?> </body> </html> Very simple is... (Continue reading)

Tagged with:     

Simple XML Reading Using PHP

Sample XML File Used The following XML data will be contained in the referenced “test_file.xml”: XML Mustang Accord XML <?xml version=“1.0″ encoding=“ISO-8859-1″?> <cars> <make name=“Ford”> <model>Mustang</model> </make> <make name=“Honda”> <model>Accord</model> </make> </cars> Loading XML Data Using simplexml_load_file This function is... (Continue reading)

Tagged with:             

Page 9 of 11« FirstNext234567891011