Category: PHP

Make your server folder password protected.

If you want to make your site a password protected. This can be mainly used for under development sites. You want only limited users (admin) should assess the site till it’s on development phase. You…

Detect iPhone & iPad by .htaccess file.

Now a day’s almost all sites are responsive for all screen size devices. But in some cases we need to create sub domains or new domains for iPad and iPhone. If want to redirect you…

Make your .CSS file to .PHP file.

You can compress your .css file to .php file by following procedure. 1)      Create a file “stylesheet.php” and add the code to this file.   2)      Now call this file inside to your site head….

Make your whole Divs clickable.

Want to make your whole div clickable? There is no need to add div within anchor tag (i.e. <a href=”#”>..</a>). By below code you can make your whole div clickable. By using JavaScript: <div onclick=”location.href=’Enter-URL-Here’;”…