disable PHP in a specific directory

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

4 replies · 994 views · started 16 years ago · 1 min read

5 participants
GumSlone Administrator Principal · 1,690 posts #1

to disable php in a specific directory add this line:

php_flag engine off

to .htaccess file and upload it to the directory.

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

kei_ki7 Senior · 431 posts #2

very helpful mate! thanks!

Did I help you? You can help me too Your donations will help me finance my studies.

Mysterio Lead · 630 posts #3

Thank you Gumslone. By the way, Gumslone is a kind of chewingum?

mysterio.al - programming is a functional art

Anshul Senior · 296 posts #4

you can also this by

Options -ExecCGI  
AddHandler cgi-script .pl .py .jsp .asp .htm .shtml .sh .cgi

or

RemoveType .php3 .php .phtml .php4 .php5 .cgi .pl .phps

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close