Archive for January, 2008

Getting the domain name out of a URL

Monday, January 28th, 2008 Posted in PHP & MySQL | No Comments »

  <?php // get host name from URL preg_match('@^(?:http://)?([^/]+)@i', "http://www.php.net/index.html", $matches); $host = $matches[1]; // get last two segments of host name preg_match('/[^.]+\.[^.]+$/', $host, $matches); echo "domain name is: {$matches[0]}\n"; ?>     domain name is: php.net Read more..

Image Change Using Functions

Monday, January 28th, 2008 Posted in JavaScript & AJAX Tutorials | No Comments »

The main use of function is to prevent us from writing the same code again and again because we can call the same function with a different set of parameters. In ... Read more..

Windows Security Alert

Monday, January 21st, 2008 Posted in Kill Virut | 1 Comment »

Message 1: Windows Security Alert" Windows has detected an Internet attack attempt...Somebody's trying to infect your PC with spyware or harmful viruses. Run full system scan ow to protect your PC ... Read more..

Fatal error: Call to a member function Execute() on a non-object in

Wednesday, January 16th, 2008 Posted in PHP & MySQL | No Comments »

Fatal error: Call to a member function Execute() on a non-object in pnSession.php php 5.2.0 update problem With zen-cart Read more..

Fatal error: Allowed memory size

Monday, January 14th, 2008 Posted in PHP & MySQL | No Comments »

Install wordpress, jooomal, phpnuke ... localhost Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 393216 bytes) {adsense} Kill: You can edit file php.ini Allowed memory size than size ... Read more..