Configure Your Server To Parse HTML Files As PHP

When using a web application like FileChucker, you may want to embed it within another page on your site.  You can embed it within a .shtml page or a .php page, but what if you want to embed it within a plain old .html file?  Or you may be using UserBase to password-protect the pages on your website, and you'd rather not have to rename every page (and update every link) from a .html extension to a .php extension.

The solution is to configure the server to treat .html files like .php files; the server must parse the .html files just like it parses .php files.  If your server is Apache, then you can add a line to your website's top-level .htaccess file to enable this parsing.  The exact line that you must add to the .htaccess file will be different for different servers, depending on exactly how Apache and PHP are installed and configured.  But one of these lines (or sets of lines) should do it:

AddHandler x-httpd-php .html .htm
# (tested successfully on a GoDaddy/Apache server in December 2009)

AddHandler php-script .php .html .htm

AddHandler php5-script .php .html .htm

AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html

To verify that it worked, create a file called phptest.html and put some PHP code into it; for example:

<?PHP
echo "PHP is working.";
?>

Now upload phptest.html to your server and visit it in your browser.  If it displays simply "PHP is working." then you're all set.  But if it displays all the PHP code ("echo", etc), or if it displays nothing at all, then you know it's not working, and you'll need to try different lines in your .htaccess file.

One final note: if your server has PHP's short-open-tag feature enabled, this may cause problems within any XML files on your site, since XML files start with "<?" which is what PHP uses as its short open tag.  The solution there is to disable the short open tags, either by adding this to your .htaccess file:

php_flag short_open_tag off

...or, on some servers, creating/editing a php.ini file within your website's top level, and putting this line into it:

short_open_tag = Off

Shopping Cart

Your cart is empty.

Client Quotes

The work, the thought and the organization you put into this app is incredible.
– Bruce C.
I looked all over trying to find a simple cgi script.  I found that FileChucker was by far the best.  If you have issues with your hosting service's php.ini max upload size then this is the way to go.  Looking forward to future enhancements.
– Bob C.
Nice script, it's saving the day on our project.
– Aaron W.
I just wanted to say that yours is the first product that I've tested so far that hasn't failed on handling uploads.  This is going to work for a print company, so they are handling nothing but large files and all the other solutions I've tried so far have not been reliable.  So far yours has been 100% successful in my tests.
– Kevin H.
I just installed the demo of your product and got it up and running in no time.  I searched high and low for a decent login script and thank God I found yours.
– Adrian F.
FileChucker is working great...  Clients love it.  Vendors love it.  We love it.
– Gerry W.
The amount of customization in the program is incredible.  I was able to integrate it into my existing page layout relatively simply.  I was also able to easily customize the look/feel to match the current site.
– Jason M.
Do you know how rare it is to have a "canned" shopping cart with the ability to fairly easily do complex pricing options on a single item?  Maybe you do, but if you don't... basically, they don't exist!  I have looked.  Everywhere!  And the few that might even come close to the functionality that you have in CornerStore cost a fortune!
– Tashina P.
Just one word: Fantastic.  10-minute job to plug FileChucker into my app, and it now works a treat.  It's through the hard work by people like yourselves that make my job so much easier.  Congratulations on an outstanding product... Many many thanks.
– Sean F.
Our members think your software is fantastic...  I would recommend your software and your company to anyone.  Thanks for all your help.  It has been a pleasure dealing with you.
– Tommy A.
FileChucker is helping drive the backend of several high profile entertainment sites for people like Shania Twain and Dolly Parton.  We're also using it to drive backend file uploads for a multi-billion dollar banking institution.  It's a great product.  We've tried other "chucking" upload solutions with progress bars using flash and php, but nothing works as reliably as FileChucker.
– Michael W.
Thanks again for a great product and great support - beyond expectations.
– Greg S.
FileChucker is a great drop-in solution for file uploads, and worth every penny of its very reasonable cost.  Encodable's support is excellent to boot.
– Loren A.
I just want to say you guys really stand alone in that you have a quality product and you provide genuine customer service.  It's sad but those qualities are seldom found separately, much less together.  Thanks again for your time and help.
– Alex S.
Thank you VERY much for all of your help.  You've really impressed me.  We have support agreements for other software that costs thousands of dollars / year (just for the support), and most of them aren't as helpful as you have been.
– Keith Y.