Blog: Extra-ordinary

Error Reporting Directives in php.ini

Error Reporting Directives in php.ini To diagnose bugs in your code, you should enable the directive that allows error messages to be written to the browser. This is on by default. display_errors = On You can also set the level of error reporting. For working through this book, you should set this to the following: error_reporting = E_ALL & ~ …

Continue Reading

New Functions in php5

New Functions in php5 PHP 5 there are some new functions. Which are given below: Arrays: array_combine() – Creates an array by using one array for keys and another for its values array_diff_uassoc() – Computes the difference of arrays with additional index check which is performed by a user supplied callback function array_udiff() – Computes the difference of arrays by …

Continue Reading

Website Development by PHP Basics,HTML,CSS,Javascript & Joomla 2.5

In this PHP course, you will learn Basic level PHP programming and how to execute scripts on your server. You will also learn about MySQL, HTML, CSS, and JavaScript. Advanced level CSS, Database & Relation of Database will also be discussed in the sessions. After completing the training, participants are expected to develop projects using PHP with MySQL. Joomla! is …

Continue Reading

CakePHP – Export data to a .html file

CakePHP – Export data to a .html file header(‘Content-Type: text/html; charset=utf-8’); header(‘Content-Type: application/force-download’); header(‘Content-Type: application/octet-stream’); header(‘Content-Type: application/download’); header(  ‘Content-disposition: attachment; filename=”<your file name here>.html”‘);   Hope it will work, Have a nice day!.

Continue Reading

CakePHP – Export data to a .docx file

CakePHP – Export data to a .docx file Very simple. Just copy below code and paste. header(“Expires: Mon, 26 Jul 2020 05:00:00 GMT”); header(“Last-Modified: ” . gmdate(“D, d M Y H:i:s”) . ” GMT”); header(“Cache-Control: no-store, no-cache, must-revalidate”); header(“Cache-Control: post-check=0, pre-check=0”, false); header(“Pragma: no-cache”); header(“Content-Type: application/msword; charset=ISO-8859-1”); header(“Content-Disposition: attachment; filename=\””.<your file name>.”.doc”); echo “<html><head><title> Cakephp  docx file</title><body>”; echo “<your html …

Continue Reading

How to add custom message in success page in magento.

How to add custom message in success page in magento. IT is very simple.You can costum message  add in your success page. Please goto app\design\frontend\<your theme>\template\checkout\success.phtml If not get success.phtml in your theme please go base theme and copy success.phtml and paste in your theme checkout folder. add following code or your custom message. Like as <p><?php echo $this->__(‘<a href=”mailto:borntowinanwar@gmail.com”> …

Continue Reading

How to enable template path hints in Magento?

How to enable Template Path Hints in Magento? Template Path Hints is the one of the most important Feature in Magento for Developer and Designer .If you want to Modify of a Magento template then Template Path Hints will help you to find the actual location where the .phtml file located. Please follow below step. In admin panel Go to …

Continue Reading

Moving Magento to a new server

Moving magento to a new server it is very simple but very careful about some changes.Please follow my step hope it will work properly. Export your database all tables are included from current phpmyadmin. suppose your development site is located at http://example.com and your live site is located at http://yourdomain.com. Now open your exported .sql database, at first step and do …

Continue Reading