prev next

How to Enable/Active cURL in Xampp

Your xampp installation most likely already has curl support built-in. You just have to turn it on. It’s not difficult at all.  That’s not necessary for Windows versions of PHP. Find your php.ini file (probably in xampp\apache\bin\php.ini and open it in notepad or another plain text editor search for the line that says: ;extension=php_curl.dll remove the semicolon from the ...
Posted on January 6 2010 Keep Reading...

How to know and handle disabled javascript in browser

How to know JavaScript is disabled in browser? As you guyz know, <script></script> tag is used for javaScript. Same way there is <noscript></noscript> tag which gets in action when the Javascript is diabled in browser. <script>code here gets executed when javascript is enabled</script> <noscript>code here gets executed when javascript is diabled</noscript> How to handle diabled javascript in browser? When ...
Posted on December 30 2009 Keep Reading...

Hide Actual URL From Status Bar For All Browsers

Old technique to display hide actual URL  in the status bar If you search in google with the keyword change status bar text , you’ll find that many codes in different websites which are using window.status to change the text of the status bar while mouse is over the link. For example, <a href="http://www.mehedi.com.bd/?id=225" onMouseOver="window.status='http://www.mehedi.com.bd'; return true" onMouseOut="window.status=''">Click ...
Posted on December 30 2009 Keep Reading...

Remove Footer Encryption Code in Wordpress

Most of the free Wordpress themes out there are having Creative Commons Attribute 2.0+ License. This means that you can modify the theme in anyway you want but you have to attribute the work in the manner specified by the author. If you download the free WP themes from other sites using this type of ...
Posted on December 29 2009 Keep Reading...

Generate Random String & Numbers in PHP

Here is the function that you need to generate random string & number in php function generateRandomString() { $length = 10; $characters = "0123456789abcdefghijklmnopqrstuvwxyz"; $string = ""; for ($p = 0; $p < $length; $p++) { $string .= $characters[mt_rand(0, strlen($characters))]; } return $string; }
Posted on December 28 2009 Keep Reading...

How To Create A Pagination In PHP

This is a script to make pagination in PHP with (Previous Next) buttons.This is what you'll get after finished this code Syntax: 1 Pages($tbl_name,$limit,$path); Parameters tbl_name your mysql table e.g(mehedi_users) and use normal mysql querys e.g(mehedi_users where groupid='5') limit how many items to show per page. path is the name of file ex. I saved this file as pagination.php, my $path should be "pagination.php?". I saved ...
Posted on December 23 2009 Keep Reading...

Virtual Graphics Card – Play Game without Graphics Card

Virtual Graphics Card Working Perfectly .... Take heart ! Here’s a wicked software with which you can beat 128-256 MB of graphics card requirements with a very modest 1GB DDR2 RAM. What it does is,it uses a part of your RAM as Graphics card memory. For example,if you got 1GB DDR2 RAM,then it’ll use 128MB of it ...
Posted on October 27 2009 Keep Reading...

Check whether a yahoo user is online or not in PHP

Do you want to check whether a yahoo user is avoiding you by setting his status to invisible mode. Please try this code.. < ? php $id="mehedi_raj"; $url = 'http://opi.yahoo.com/online?u='; $data = file_get_contents($url . $id); if (trim(strtolower(strip_tags($data))) != 'user not specified.') { echo (strlen($data) == 140) ? 'online' : 'offline'; } else { echo trim(strip_tags($data)); } ?>
Posted on October 27 2009 Keep Reading...

How to Secure AJAX Requests

How to Secure AJAX Requests Article is provided courtesy of Sams +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Introduction When integrated with a database, AJAX can accomplish some extremely powerful interactions that are unique to the set of languages it encompasses. "With great power comes great responsibility," however, and database-integrated AJAX is no exception to this rule. To protect ...
Posted on October 25 2009 Keep Reading...

Search any text in string in PHP

Here is an example... <?php $a = "i am a string and someone wants to search 'to be searched' "; $targetstring = "to be searched"; if(stristr($a, $targetstring) == FALSE) { echo "string not found" ; } ?>
Posted on October 24 2009 Keep Reading...








Page 1 of 712345»...Last »