Latest Post

Error: No input file specified.

While trying to run a codeigniter app the other day I came across this error just after I had finished uploading the files and making the ne...

Wednesday, July 7, 2010

Turn on php error reporting using code

//To turn on PHP error reporting using code use the lines below

ini_set("display_errors","2");

error_reporting(E_ALL);

How to force your form to open in the top frame

The typical way to do that is to add the script:

[javascript tag]

if (window != top) {
top.location.href = location.href;
}

[/javascript tag]

Put it as early in the head section as reasonable.

Chitika Ads