In php, to check the similarity between to strings (text) use the similar_text for example: Here’s a PHP function that’ll help you check if two strings (texts) are similar. If the strings are 50% similar then the function will output “Duplicate Entries”.
Use the following JSON URL to access tweets from multiple twitter users. Of course, you can parse this JSON response using JQuery, PHP or any other language to display these tweets however you want. http://search.twitter.com/search.json?q=from%3acnnbrk+OR+from%3anpratc+OR+from%3bbc+OR+from%3abc
Here is a little PHP code you can use to get the size and file count of an entire directory including sub-directories
Changing upload_max_filesize on GoDaddy Are you running your website on a GoDaddy shared hosting plan? Are trying to upload a file using a PHP script and you can’t get it to upload files larger than 8 MB? Do you want to change the maximum allowed file size for uploads? If this is the case, I […]
To clear the browser cached page or to force the browser to re-download the content of a page, you can place the following HTML code in the header tags (<head>) of the page. This code will ask the broswer to ignore any saved copies of the page, and to re-download page content. HTML Code: […]
Place this code in the .htaccess file to disable processing of PHP files in a folder. This will remove the PHP handlers in Apache forcing the browser to load the PHP file as a text file. You can use this to secure folders where upload is allowed to prevent executing uploaded PHP files. RemoveHandler .php .phtml .php3 […]
Here’s a PHP script that demonstrates an easy way to get a country name or code from IP address using pure PHP. Included in the file: GeoIP.dat: a binary databases of countries and IPs maintained by MaxMind.com. The database is updated monthly and has a 99.5% accuracy rate. You can always get the latest version here. geoip.inc […]