Facebook Twitter Reset

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

Url rewriting examples using .htaccess

Hi here i will explain some URL rewriting magic using .htaccess file. 1)Rewriting user.php?id=12 to user-12.html It is a simple redirection in which .php extension is hidden from the browser’s address bar and dynamic url (containing “?”...

How to display popular posts in wordpress

I came across different wordpress themes where they wont provide the popular post catogory, so this a simple tip to help you guys regarding the addition of how to display popular posts in wordpress themes.Usually the SIDEBAR.PHP is the is the...

Simple file upload script using php

Here i will explain a simple php script which will upload files to a particular directory specified < ?php session_start(); if(!isset($_POST['upload'])) { echo ' <form name="upload" enctype="multipart/form-data" method="POST"...

Appending string using php to a text file

  A very easy way to append string to a file using simple php script  <?php $fn = “file.txt”; $file = fopen($fn, “a+”); $space.= “\n”; if($_POST['addition']) fwrite($file, $_POST['addition']); fwrite...
Affordable Seo PackagesSeo BlogEdu Backlinks