You could also do this in .htaccess when you use Apache and your configuration allows you to override : <Files test> ForceType application/x-httpd-php </Files> That way, you can use the URL test?pop=true without having to fake it by using test/index.php.