ok
For that u have to change some options in httpd.conf file .. i.e suppose u have set doc root to /srv/www/htdocs(which is default), and u want to run myfile.php from browser ..then just add these lines in ur httpd.conf or
i.e
<Directory /srv/www/htdocs/myfile.php>
Options None (Change this line to Options All)
AllowOverride None
Order allow,deny
Deny from all (Change this line to Allow from all)
</Directory>
That is , after making changes it looks like something this
<Directory /srv/www/htdocs/myfile.php>
Options All
AllowOverride None
Order allow,deny
Allow from all
</Directory>
just restart ur apache service as
#rcapache2 restart
After that it will definitly work
Cheers:
Gaurav