PHP Magic Book – Free PHP Scripts, Tutorials and Downloads, PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips

Archive for the ‘ Useful Scripts ’ Category

Enable Gravatar/Avatar at Your Website – Gravatar Image PHP Script

gravatarYou might have already created an account at gravatar (Globally Recognized Avatars) and enjoying your display picture or avatar at forums and blogs when you just post your comment with your email and there you are — it displays your avatar along with your comment. If you are a developer and you create websites – PHP websites – and wondering how you can enable gravatars / avatars in your next project then here is very easy to use working solution – PHP script to enable gravatar at your PHP website / blog / forum / project.

(more…)

Tags: , , , ,
Posted in: Scripts, Useful Scripts
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

.htaccess Essential Tricks For Blog/Website Performance – Guide

htaccess-tricks

.htaccess file is a magic file. You can change the way your website works by using it. I have been reading a lot about .htaccess files. Perticularly .htaccess is very useful in shared web hosting environment where the users have no direct access to their servers or they want to implement some restrictions/security to their files. I will include here some very essential and useful .htaccess tricks. I have used some of these tricks and more to secure my websites according to my web server’s environment and to optimize speed/performance of my websites. Websites with heavy traffic, Digg traffic, Stumble upon or slashdot traffic will need to be optimized via many ways and .htaccess can help a lot.

(more…)

Tags: , , , ,
Posted in: Tricks, Useful Scripts, htaccess
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Date Object For Future or Past – Easy Monthwise or Datewise Records Selection Using PHP

If you have to create a date object of future or past, you can do it by using the second parameter of PHP date function. This is extremely useful when doing BETWEEN comparison in MySQL. You can build the date and bind it to query.

(more…)

Tags: , , ,
Posted in: Date & Time, Select, Tricks, Useful Scripts, php mySQL
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Display Records In Multiple Coulmns

We can display data fetched from database in a variety of ways. Depends upon our requirement. By multiple columns I mean dividing all fetches data into columns and displaying it. Here is how We can divide the resultset into multiple columns.

(more…)

Tags: , ,
Posted in: Scripts, Useful Scripts
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Auto Populate Years Range In PHP

In forms its better approach to populate years drop down list rather then writing down every year manually. This script will ask you starting year and rest of years up till latest year it will populate for you.

(more…)

Tags: , ,
Posted in: Form, Useful Scripts
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment



  Subscribe Via RSS
  Subscribe Via Email