fake .php extension

This is a discussion on fake .php extension within the PHP General forums, part of the PHP Programming Forums category; How can confugure Apache to execute a real php files but with fake extention like .foo or .pl or even ....


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-15-2003
Nabil
 
Posts: n/a
Default fake .php extension

How can confugure Apache to execute a real php files but with fake extention
like .foo or .pl or even .html?

Regards
Nabil


Reply With Quote
  #2 (permalink)  
Old 07-15-2003
Robert Hawke
 
Posts: n/a
Default Re: fake .php extension

- simply go into the apache config file
- search for php
- somewhere it should say at the end of the line .php .phtml .

- no just add your extension


"Nabil" <nabil.attar@aws-syria.com> schrieb im Newsbeitrag
news:20030715120442.70253.qmail@pb1.pair.com...
> How can confugure Apache to execute a real php files but with fake

extention
> like .foo or .pl or even .html?
>
> Regards
> Nabil
>
>



Reply With Quote
  #3 (permalink)  
Old 07-15-2003
Maria Garcia Suarez
 
Posts: n/a
Default Re: [PHP] fake .php extension

Hi there!

--- Nabil <nabil.attar@aws-syria.com> wrote:
> How can confugure Apache to execute a real php files
> but with fake extention
> like .foo or .pl or even .html?


I don't have any Apache around right now but you have
to search inside httpd.conf for the "php" string, one
of the entries is the one defining which files should
be processed by php before giving the results to
Apache. Just add .html, .whatever to the .php that is
already listed there.

Kisses,
Maria

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Reply With Quote
  #4 (permalink)  
Old 07-15-2003
Jason Wong
 
Posts: n/a
Default Re: [PHP] fake .php extension

On Tuesday 15 July 2003 20:04, Nabil wrote:
> How can confugure Apache to execute a real php files but with fake
> extention like .foo or .pl or even .html?


AddType application/x-httpd-php .php4 .php3 .phtml .php .foo .bar .pl .asp

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
America's best buy for a quarter is a telephone call to the right person.
*/

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0