Archive July 2010

Run cron from external server when you dont have cron support!

Cron jobs are used to execute scheduled tasks on UNIX web servers. It is similar to windows scheduled task. Using it you can performs lots of required tasks for your website or application like monthly bill payments check, updated check, clearing cache or temporary files and lots more.

In linux it is set using crontab command. If you have cpanel then it will also provide you an user interface to manage your cron jobs. Most paid hosting support these. But in most cases it is not available on free hosts. But still if you need this, to maintain a regular check or execution of something and you dont have this feature provided by your host, you can still manage to do so…

No Comments

Read more

Turn of php register_globals locally

PHP global variables are used to set set variables globally. This feature were used vastly in past. But with time it has been proved as a sercurity threat for websites and server. So now a days most of the good php applications dont use this feature. PHP also highly discourages using this feature. Most of the new applications and good cms like drupal, wordpress, joomla requires this to be turned off.

No Comments

Read more

Learn meaning of http response codes

What is http response code?

http response codes are some numbers sent to browser from server each a http request is made. Each of them has different meanings. They tells you how server response to the request url. Here is a details of all the available http codes.

1 Comment

Read more

Compress css files using php

Have you ever noticed the css files from giants like google, yahoo or facebook. If you look at them you will see they are very tightly coded no space, tabs or line breaks yet a very large css file. How they manage it to debug when it is not human friendly to view the code.

5 Comments

Read more