Buy me a coffee
Spammers!
If you are going to put nonsense comments on my articles at least have the decency to click one of these adverts while you are here.
Even if you are a regular visitor you click a couple of ads while you are here - you might find something you want.
You May Also Like…
Cloud
accessibility block browser cache chrome chunk cms concrete5 CSS curl database date error file firefox form get href ie image input iphone javascript JQuery link magento MODx myqsl MySQL php post profile Revolution select Server session snippet spellcheck spelling table textarea tinymce w3c wordpress xmlInfo
Yes, the images are ambiguous;
Yes, they came from Google images;
No, I didn't get permission to use them*;
I know Magento called isn't Magneto;
And...
Why do spammers who hit this site do it with such a bizarre use of the English language?;
PHP Archive
-
Get the Time Difference Between Two Dates Using PHP
Posted on 10/08/2011 | No CommentsTo compare 2 dates in php use this function: function get_time_difference($start,$end) { $uts['start'] = strtotime( $start );... -
PHP Alternative to file_get_contents()
Posted on 09/08/2011 | 1 CommentIf your hosting doesn't allow get_file_contents() use this instead: Replace this: $haystack = file_get_contents($url.$postcode); With this: function url_get_contents ($Url) { if... -
Strip links from HTML using PHP
Posted on 22/07/2011 | No CommentsIf you have a block of html containing some links you want extract and list in a table you need... -
Disabling Magic Quotes in php on GoDaddy
Posted on 09/06/2011 | 1 CommentIn php.ini add these lines: ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = Off ; Magic quotes for runtime-generated... -
Replacing information inside a MySQL database
Posted on 27/04/2011 | 1 CommentTo do a search and replace in any MySQL database in phpMyAdmin. You do not need to download the database... -
New Method to Get News using cURL
Posted on 31/03/2011 | No CommentsThe previous method to get news has caused some problems. This new method appears to be more stable: function shortenString($text)... -
AIM syntax to use in webpages html and php
Posted on 18/03/2011 | 1 CommentPhp code to see if a user is online: function getaim($screenname) { $ch = curl_init(); $url = "http://big.oscar.aol.com/$screenname?on_url=true&off_url=false"; curl_setopt($ch, CURLOPT_URL,$url);... -
Feed Magento product data into an external php script
Posted on 18/03/2011 | No CommentsInitial look into getting product information from Magento out into external php script so it can be drawn into other... -
Using php preg_replace to remove links from a string
Posted on 15/03/2011 | No CommentsThis is something I always forget… $newstring = preg_replace('/<a href="([^<]*)">([^<]*)<\/a>/', ", $string); Like this? Maybe you could buy me a...
![Get the Time Difference Between Two Dates Using PHP To compare 2 dates in php use this function: function get_time_difference($start,$end) { $uts['start'] = strtotime( $start );...](http://www.unchi.co.uk/wp-content/uploads/2011/08/international-date-line-115x115.jpg)








![Using php preg_replace to remove links from a string This is something I always forget… $newstring = preg_replace('/<a href="([^<]*)">([^<]*)<\/a>/', ", $string); Like this? Maybe you could buy me a...](http://www.unchi.co.uk/wp-content/uploads/2011/03/CFA05001B_endlink-115x115.jpg)