Category Archives: Tutorial

Php web development tutorials

Get http request headers in php

By | November 22, 2011

When a browser makes a request to a php script, the browser sends some http headers which can look like this : The php script under request , may want to access these http headers. PHP has a method getallheaders() which provides these headers. So the code should be like this : and the output… Read More »

Parse MVC style urls in PHP

By | November 9, 2011

If you have used codeigniter or some mvc php framework then you might be aware of urls like or if you use mod rewrite to add the index.php The htaccess code could be like this : The above kind of urls need to be parsed inside PHP to extract the class name ,… Read More »