Question about file handling by the server

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
h@mm3r
Forum Newbie
Posts: 10
Joined: Mon Nov 24, 2003 9:35 am

Question about file handling by the server

Post by h@mm3r »

Is it possible to tell PHP to handle files without extension (like perl/CGI)?
Maybe using .htaccess or something?
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

i don't kow if you can do that, but to make PHP process any filetype, save this in a .htaccess-file

Code: Select all

AddType application/x-httpd-php .ext
change .ext to the extension you want PHP to process, ie .jpeg
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Post Reply