Subscribe For Free Updates!

We'll not spam mate! We promise.

Feb 24, 2013

Increase Execution Time-PHP

Increase Execution Time -Php Language To prevent the script from timing out, You need to increase the execution time of the specific processing script. Here's a trick how to do it. PHP CODE ini_set('max_execution_time', 300); Place this at the top of your PHP script. The script will execute for 5 minutes(maximum). You can set your own time...

Feb 23, 2013

Only variable references should be returned by reference

Only variable references should be returned by reference : Consider the following example : <?php class myClass {     public $var = 1;     public function &getVar() {         return($this->var);         } } $obj = new myClass; $value = &$obj->getVar(); ?> The...

XAMPP Increase the Import File Size of database backup in XAMPP - linux

1. In terminal, type the following command vi /opt/lampp/etc/php.ini 2. To edit in php.ini, file_uploads = On upload_max_filesize = 20M and save this file. Step : 3 To Restart Xampp, /opt/lampp/lampp restart Step : 4 Now open Phpmyadmin in Browser and import file upto 20M...

JavaScript to find Mouse cursor X and Y axis value

In javascript we can find the mouse cursor points - the coordinate of the mouse pointer by using the following javascript function.    $().mousemove(function(e){ $('div').html("X Axis : " + e.pageX + " | Y Axis " + e.pageY); }); </script> <div> </div> The above function display the x and y axis values inside the...

403 Forbidden Error in WampServer

Error - You don’t have permission to access / on this server error occured in wampServer Solution. 1. Open the file named as “phpmyadmin.conf”. phpmyadmin.conf  is phpmyadmin configuraiton file. You need to replace some of line like below. Original code. Options Indexes FollowSymLinks MultiViewsAllowOverride allOrder Deny,AllowDeny...

Feb 10, 2013

Add Favicon Image to HTML

Add Favicon Image to HTML site Favicon is an image (icons/png) associated with a Web page/Web site. This favicon image is shown in the address bar or in tabs.. This is for website identity. The following code should be in style tag. <link rel="icon" type="image/png" href="http://techniqzone.blogspot.in/favicon.png"> if the favicon...