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)
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)
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)
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)
One of the frequent problems is defining visitor’s screen resolution using JavaScript tools and passing this data to PHP-script. The script below will find the resolution of the user screen using php and pass the value to the javascript location.href... (Continue reading)