This is a discussion on Your own php file extensions within the Programming Articles forums, part of the Webmaster Articles/Tutorials category; Have you ever wanted to have your own extensions? You could just rename any file any extension, using an ftp ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| | #1 (permalink) |
| Cool Newbie | Have you ever wanted to have your own extensions? You could just rename any file any extension, using an ftp client. But what if you want to execute php inside of your own extension? This is as easy as a simple .htaccess trick, which means your server has to be Apache. Step 1: Open up your .htaccess file in your favorite text editor. Step 2: If there is text in your .htaccess, go to the last line and press enter. Step 3: Type the following line of text: Code: AddType application/x-httpd-php .ext1 .ext2 .ext3 Step 4: Save your .htaccess file, and upload it to your webserver Step 5: Rename your files to your liking, and now php will be executed in them (if you set their extensions correctly as above) Have fun! |
| | |
| Tags |
| extensions, file, php |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need File Sharing | softfalls | General Webmaster Discussion | 0 | 15-07-2008 18:41 |
| .htaccsess file HELP PLEASE | KF1 | General Webmaster Discussion | 0 | 28-06-2005 20:06 |
| Amazing File Hosting Site For Sale | Departed | Websites For Sale | 18 | 26-06-2005 12:00 |
| Automatic Cross-Server File Storage | Wistow | Php and MySQL | 29 | 07-06-2005 11:12 |
| help with .iso file | robertall | General Webmaster Discussion | 10 | 16-04-2005 14:53 |