by Shashi Dhar Kumar | Aug 24, 2013 | PHP, Programming, Ubuntu
What is CURL? CURL is a library that allows you to connect and communicate via a variety of different protocols such as HTTP, HTTPS, FTP, Telnet etc CURL Error Message If curl isn’t running and your trying to run it In php you’ll more than likely be Seeing an error...
by Shashi Dhar Kumar | Aug 22, 2013 | HTACCESS, Open-Source, PHP, Unix OS
Execute Cron Job in Cpanel using PHP script. In cpanel the following will also work: Execute code every minute(Server Time) using following code: * * * * * php -q /home/serverpath/file.php Execute code every five minute(Server Time) using following code: */5 * * * *...
by Shashi Dhar Kumar | Apr 22, 2013 | MySQL, PHP, Programming
There are a couple of ways to export data from MySQL to a XML file. This post looks at how to export the data from MySQL into a XML file with PHP. The example code below uses the raw mysql_* functions but it should be easy enough to substitute a database...
by Shashi Dhar Kumar | Apr 8, 2013 | PHP, Programming
There are a couple of ways to export data from MySQL to a CSV file but some of them never supports adding a header row to the CSV which contains the column names. This post looks at how to export the data from MySQL into a CSV file with PHP including a header row. The...
by Shashi Dhar Kumar | Mar 25, 2013 | PHP, Programming
Create a folder if it doesn’t already exist in php Defination and Usage: The mkdir() function creates a directory. This function returns TRUE on success, or FALSE on failure. mkdir(‘path/to/directory’, 0755, true); mkdir(path,mode,recursive,context)...
by Shashi Dhar Kumar | Apr 15, 2012 | HTML, PHP, Programming, W3C
While the apply ‘_blank’ value to a native link’s attribute ‘target’ that will give you not validated for W3C, the solution is to handle the click on the link and open it in a new window. Please note this alternative methods are absolutely SEO friendly and...