by Shashi Dhar Kumar | Aug 10, 2015 | Magento, Open-Source, PHP, Programming
Here is the example code by which you can get last order details into mangento of using email id. $_customer = Mage::getModel(‘customer/customer’); $_customer->loadByEmail(‘demo@demo.com’); $orders =...
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 | Apr 1, 2013 | JavaScript, Programming
Capitalize the sentence in Javascript!