Here is the example of cURL POST method === Create index.php === <form action=”process.php”> Name: <input type=”text” name=”name”><br/> Mobile: <input type=”text” name=”mobile”><br/> <input type=”submit” value=”Submit” /> </form> === Create process.php === <?php //set POST variables $url = ‘’; $postData = … Readmore +

Category: PHP, Quick look

New sub-domain dynamically on cPanel server using PHP

The following PHP code will create a subdomain on cPanel using the cPanel username and password.I was checked this code to create a subdomain and it worked well.   function create_subdomain($cPanelUserName, $cPanelPassword, $rootDomain, $subDomainName) { $addSubdomainPage = “/frontend/x3/subdomain/doadddomain.html?rootdomain=” . $rootDomain … Readmore +

Category: PHP

Install GD Library module on a cPanel/WHM Server

GD Library Error: imagecreatetruecolor does not exist The above is the common problem, Install GD library module on your web server. Its a very easy task to do. GD Library is a PHP module which is used widely in image … Readmore +

Category: PHP

file Upload permission on ubuntu /var/www

Step 1: Open terminal Step 2: Login as root $ su root Enter your root password and login. Step 3: type or copy/paste this command $ chown -R www-data:www-data /var/www/project-folder-name You are done!  

Category: PHP, ubuntu 13.10

no XSLT processor available – PHP

Install the XSLT using the following command on the ubuntu terminal. sudo apt-get install php5-xsl Press “y” When asked by system. You are done.

Category: PHP, ubuntu 13.10