Private Label and Cobranded VoIP Solutions
BrainCast internet & phone based message/memo recording & reminder organization system
Internet Phone Service and Broadband Phone Service by ViaTalk

Go Back   VoIP Forums, Internet Phone Service Forums, & Web Hosting Forums > CoderForums - Programming Discussion > General Programming Issues > Programming Languages & Technologies > PHP

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-19-2002, 01:03 PM
Lights Out Lights Out is offline
Registered User
 
Join Date: Feb 2002
Posts: 2
PHP & .htaccess

I need help setting up 2 things.

1.) I need to parse PHP on a .shtml page. Which of the following handlers will properly parse my PHP data on a .shtml page?

- RemoveHandler .shtml
AddType application/x-httpd-php .shtml

- AddType application/x-httpd-php .shtml

OR can I use this on my SHTML page?:

<!--#include virtual="whatever.php" -->

2.) I need to protect the visibility of my directories. For instance, you can see everything here:
http://www.lightsoutentertainment.com/media/news/

How do I modify my .htaccess file so that blind directories come up with the FORBIDDEN error?

Please respond asap! Thanks!
Reply With Quote
  #2  
Old 02-19-2002, 02:58 PM
Damian
Guest
 
Posts: n/a
For the directory issue, add this line in .htaccess

Code:
DirectoryOptions -indexes
D
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump