Posted on Nov - 16 - 2011

The following class is useful to take (download) a picture of a another site and copied to the local computer (server). You only need to specify the url of remote files and local directory that will be used as a [...]

Read More
Posted on Nov - 13 - 2011

Here is a simple script to remove your site from the trap of iframe from other websites. If you are really fed up with it, the script will be very helpful. It’s call “Escape from Iframe Trap“. Step 1 Put [...]

Read More
Posted on Nov - 11 - 2011

Yeah, some people take advantage of today’s into a very special date to make it as a wedding date and also the birth of their child. Although this is a bit forced, but this is a phenomenon that occurs as [...]

Read More
Posted on Nov - 9 - 2011

I’ve got simple email validation. Here’s the code: <?php function is_validemail($email) {      return preg_match('/^[\w.-]+@([\w.-]+\.)+[a-z]{2,6}$/is', $email); } $email = "simple.email.address@shouthuns.com"; if(is_validemail($email)) { echo ("email validated"); } else { echo ("invalid email given"); } ?> This function work fine for [...]

Read More
Posted on Nov - 9 - 2011

First you have to do is enable the CURL module in your php.ini. Or at the time of installation by adding the flag: -with-curl[= DIR] where DIR is the location of the directory containing the lib and include directories. For [...]

Read More
Posted on Nov - 6 - 2011

You know guys, to get IP Address (Hostname) and Browser Name from user who visited our page, you can use simple function on PHP. Here’s the code: echo 'Your IP/Host : '.gethostbyaddr($_SERVER['REMOTE_ADDR']); echo 'Your browser : '.$_SERVER['HTTP_USER_AGENT']; You can see [...]

Read More
Posted on Nov - 6 - 2011

To make some special characters and accented letters show up on your pages, use a special set of codes called character entities, which you insert into your HTML code and which your browser will display as the corresponding symbols or [...]

Read More
Posted on Nov - 5 - 2011

My friend asking me about PHP function for “Get Between Tags” that she gets from the internet. She asked me how to replace eregi function that has been deprecated since PHP 5.3.0. Where the previous function (which contains eregi function) [...]

Read More