Executing a PHP script without a *.PHP extension?
| From: | Shashank Tripathi | Date: | Tue, 17 Oct 2000 16:49:49 +0000 |
| Subject: | Executing a PHP script without a *.PHP extension? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-20668@lists.php.net to get a copy of this message | ||
Apache 1.3.12, PHP 4.03
Read somewhere that this can be done, somewhat like Servlets..lets say I
have a folder within my htdocs, called "Content", which has only PHP
scripts, but the files are not named *.php..how do I make sure that the
files are executed and I dont get a 405 error, for instance ("The requested
method POST is not allowed for the URL /content/1").
Here is the config info in my Apache but it doesnt seem to work..:
--------------------
DefaultType application/x-httpd-php
# Make the CONTENT directory execute PHP
<Location /content/>
ForceType application/x-httpd-php
</Location>
--------------------
Would appreciate if someone could help me in a state of
caffeine-deficiency..thanks!
Shashank Tripathi
www.shanx.com
---
You can ignore this part of the email. If you see this message,
it just means that my anti-virus software has found no viruses
with this email. Thanks, Shashank.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.198 / Virus Database: 95 - Release Date: 04-Oct-00