Category Archives: General

import mysql databases in mysql console – cmd

Being a Web Developer in PHP is good. But, if you want to Re-install your WAMP it will be a bit tough and time consuming process. Hardest part is, restoring all the databases as in previous WAMP / XAMPP. If you Export the all the databases you need to increase the “MAX EXECUTION TIME” to… Read More »

Excel Import in PHP CSV

Excel Import in PHP CSV 1 <br /> <!–?php <br ?–> function uploadFile()<br /> {<br /> $img1=strtolower($_FILES["csvFile"]["name"]);<br /> $ext=getExtension($img1);<br /> $actual_image_name = time().".".$ext;<br /> $tmp = $_FILES[‘csvFile’][‘tmp_name’];<br /> if(move_uploaded_file($tmp, "excel_files/".$actual_image_name))<br /> {<br /> $file_name=$actual_image_name;<br /> return $file_name;<br /> }<br /> else<br /> {<br /> return false;<br /> }<br /> }<br /> function getExtension($file)<br /> {<br… Read More »

How to print Javascript array like PHP print_r()

In PHP arrays can be displayed using 1 2 3 4 5 6 <br /> $array=(‘Apple’,’Orange’);<br /> print_r($array);</p> <p>//or</p> <p>var_dump($array);</p> <p> But in Javascript and Jquery doesn’t provide expressions to make the Array as human readable. So we Need to Create a function to read an array and make it human readable. You can use… Read More »

Sign up and Sign in asp.net

HTML Markup The HTML Markup consists of some TextBox, their corresponding Validators and a Button. Other than RequiredField Validators there’s a CompareValidator to compare passwords and a RegularExpressionValidator to validate email address. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23… Read More »

Fatal error: Maximum execution time of 300 seconds exceeded in phpmyadmin Import and Export Wamp

Fatal error: Maximum execution time of 300 seconds exceeded in C:\wamp\apps\phpmyadmin3.5.1\libraries Fatal error: Maximum execution time of 300 seconds exceeded in phpmyadmin Import and Export Wamp Some of the developers will experience this Error while Importing or Exporting a Huge Database or Many Databases at a same time. Before resolving this error we need to… Read More »

Ajax Image Upload and Resize with Jquery and PHP – Multiple Input Fields

Ajax Image Upload is a essential  plugin for the developers. You can find many plugins with ajax file upload. But none of the plugins supports Multiple fields Ajax Image Upload and Resize with Jquery and PHP .   This is a simple plugin for Ajax Image Upload and Resize with Jquery and PHP – Multiple Input… Read More »

Call to undefined function curl_init() – PHP

Fatal error: Call to undefined function curl_init() This Error rises because “php_curl” extension is not enabled. Just enable the “php_curl” to debug these error. How to enable curl Extension in Wamp: Step 1: Click on the Wamp server in Notification Area, Then select PHP. Click on the PHP Extensions.    Step 2 : List of extensions… Read More »

How to Generate Captcha Image using PHP

Captcha Image is required for most of the signup function or download links. With the captcha only we can detect is this a User or a Automated script. In PHP Captcha Image can be generated dynamically.Generate Captcha image Using PHP is too simple. No Extra Plugins Needed. Arial font is needed, Otherwise captcha image generator… Read More »

How to Create Input Box Dynamically using JQuery

Create Input Box Dynamically using JQuery Generate Input boxes Dynamically with JQuery is a most Important for some Dynamic Pages. Here’s the Code for  Generating Text boxes Or <Div> or any take viagra on empty stomach Other HTML tags by selecting with Select Boxes. 1 2 3 4 5 6 7 8 9 10 11… Read More »