Connecting Tech Pros Worldwide Help | Site Map

prevent php execute

  #1  
Old September 7th, 2008, 04:25 PM
peter
Guest
 
Posts: n/a
Hi all
In apache, How can i prevent php to be execute in a specific
directory?
thanks
from Peter (cmk128@hotmail.com)
  #2  
Old September 7th, 2008, 05:45 PM
FutureShock
Guest
 
Posts: n/a

re: prevent php execute


peter wrote:
Quote:
Hi all
In apache, How can i prevent php to be execute in a specific
directory?
thanks
from Peter (cmk128@hotmail.com)
Don't put any PHP coded pages in it.
  #3  
Old September 7th, 2008, 05:55 PM
Michael Fesser
Guest
 
Posts: n/a

re: prevent php execute


..oO(peter)
Quote:
In apache, How can i prevent php to be execute in a specific
>directory?
If PHP runs as a module, you can use .htaccess files to turn it off on a
per-directory basis with the 'engine' directive.

http://www.php.net/manual/en/apache....php#ini.engine

Micha
  #4  
Old September 8th, 2008, 01:15 PM
Gordon
Guest
 
Posts: n/a

re: prevent php execute


On Sep 7, 4:20*pm, peter <cmk...@hotmail.comwrote:
Quote:
Hi all
* * In apache, How can i prevent php to be execute in a specific
directory?
thanks
from Peter (cmk...@hotmail.com)
You can use the engine directive in your httpd.conf to disable PHP for
certain directories with <directoryblocks. See the Apache
documentation and the Apache related newsgroups for more information.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
No CSS or PHP Includes showing on apache localhost site MaiyaHolliday answers 6 June 5th, 2007 09:36 PM
Debian PHP jabber client deamon Sabine Dinis Blochberger answers 1 April 20th, 2007 10:25 AM
PHP and DB2 Todd McNeill answers 3 November 12th, 2005 07:17 AM
Reading and writing files in PHP Marc answers 2 July 17th, 2005 12:40 AM