Facebook Twitter Reset

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 setcookie(MyVisit,...

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 in retaining this website,...

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...

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...

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...

Passing variables from javascript to php

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...

Append data to a text file using php

A simple code that shows how to append data to a flat text file using php <?php $File = “myfile.txt”; $Handle = fopen($File, ‘a’); $Data = “php\n”; fwrite($Handle, $Data); $Data = “mysql\n”; fwrite($Handle,...

Post Data To Another Website Using cURL In PHP

Hello guys i am happy to say that this is my 100th POST and very happy to see my website is having more than 70 Unique visits everyday. Do visit my website for all kind of scripts and tricks.Thanks This code will tell you how to post data...

Store Data In Remote DataBase Using cUrl or Execute a HTTP POST Using PHP CURL

The information isn’t going to be saved on the localhost database — it needs to be stored in a remote database that I cannot connect directly to.I thought about all of the possible solutions for solving this challenge and settled on...

Login to yahoo using cUrl in php

Very easy to authenticate and login to yahoo using the cUrl library in php, very easy to do.Just check this link if you are not aware of what cUrl is all about In this line curl_setopt ($ch, CURLOPT_POSTFIELDS, “login=emailid&passwd=password&&submit=Sign...

Enabling curl on XAMPP for Windows

Hi Guys…i am back again with some interesting tutorial based on cUrl.. CURL is a library created by Daniel Stenberg, which allows you to connect and communicate with many different types of servers through various protocols. libcurl currently...

MD5 Function and Unique ID in php

uniqid () function, This function has two parameters we can set. The first is the prefix. This is what will be appended to the beginning of each ID. The second is more_entropy. If this is false or not specified it will return 13 characters,...

PHP is not executed and source visible

My PHP code is not executed and its source code is visible in the browser instead, what will be the reason, This is just because , you need to open your PHP code blocks with <?php and not just <?.If you use the short form, you should...
Affordable Seo PackagesSeo BlogEdu Backlinks