Using AddHandler in .htaccess for extensionless files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Using AddHandler in .htaccess for extensionless files

Post by mjseaden »

Dear All

I've been told by my nice web hosting company support team that I need to use the following apache directive in order to use the CGI version of PHP on my webserver so that files uploading to my server through a PHP script will be uploaded under the ownership of my web server user name:

AddHandler cgi-script .php

However, my server is setup so that extensionless files (i.e. dot nothing) are run as PHP files. This is done for a number of reasons.

How do I use the equivalent of the above directive, but for extensionless files?

Many thanks

Mark
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Post by mjseaden »

/bump
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Post by mjseaden »

/bump
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you can stop bumping your thread now.
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Post by mjseaden »

In that case, can anyone tell me if this is possible?

Many thanks

Mark
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Post by mjseaden »

/bump
Post Reply