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

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 »

How to add Position in Joomla 2.5 Template

Joomla 2.5x works with position. Modules can be assigned to a position of the page. But some Themes of joomla 2.5 will not have enough position that user needs. So custom positions can be added to the themes. I have figured a way for How to Add position in Joomla 2.5. This is a Simple… 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 Enable htaccess in Wamp (localhost)

Url Rewriting is the Htaccess. Htaccess is Hyper Text Access, which is supported by Apache server and IIS. Htaccess is used to display the url in a simple way. Most of the Web servers will support htaccess.  But not all the wamp server of  the client will not support Htaccess unless it is enable. While… Read More »

5 Star Rating plugin in PHP Script with Ajax

5 Star rating Plugin in php is too essential for a commercial site. Here is Our Rating plugin that works good with the Database. Rating  plugin works in PHP with Ajax. And it is too flexible for the customization. Here the rating php script   Demo Url for the Rating in PHP script… Read More »