Moved to web hosting forum.
Unfortunately, I don't know of any free host off the top of my head that supports this... You might check freecenter.com, though.
mairving posted this at 02:05 — 17th November 2001.
You can make it work with one of two ways. Most of the time is you take an .phtml file and save it as a .php file it will work properly. The other way is to add an .htaccess file to your document root directory. In the .htaccess file, you will have this: AddType application/x-httpd-php .phtml
I also use this file to make files .php files with .html extensions.
All this is assuming that you are using Apache as the webserver.
Mark Irving I have a mind like a steel trap; it is rusty and illegal in 47 states
Brian Farkas posted this at 04:48 — 17th November 2001.
It's also assuming that the host has PHP installed in the first place- I was thinking that most free hosts did not offer PHP on their servers, but I could be wrong.
Will that also work with other file name extensions?
For example, can you set .html to be processed as a .shtml file?
Sure could. Add this line to an .htaccess file or you could add it to your httpd.conf file, it it was your own server:
AddType text/x-server-parsed-html .html
You could also add this line to pick up any .htm files:
AddType text/x-server-parsed-html .htm
Mark Irving I have a mind like a steel trap; it is rusty and illegal in 47 states
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.
Brian Farkas posted this at 01:34 — 17th November 2001.
They have: 1,015 posts
Joined: Apr 1999
Moved to web hosting forum.
Unfortunately, I don't know of any free host off the top of my head that supports this... You might check freecenter.com, though.
mairving posted this at 02:05 — 17th November 2001.
They have: 2,256 posts
Joined: Feb 2001
You can make it work with one of two ways. Most of the time is you take an .phtml file and save it as a .php file it will work properly. The other way is to add an .htaccess file to your document root directory. In the .htaccess file, you will have this:
AddType application/x-httpd-php .phtml
I also use this file to make files .php files with .html extensions.
All this is assuming that you are using Apache as the webserver.
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
Brian Farkas posted this at 04:48 — 17th November 2001.
They have: 1,015 posts
Joined: Apr 1999
It's also assuming that the host has PHP installed in the first place- I was thinking that most free hosts did not offer PHP on their servers, but I could be wrong.
Jaiem posted this at 13:27 — 19th November 2001.
They have: 1,191 posts
Joined: Apr 1999
Mairving,
Will that also work with other file name extensions?
For example, can you set .html to be processed as a .shtml file?
mairving posted this at 14:11 — 19th November 2001.
They have: 2,256 posts
Joined: Feb 2001
Sure could. Add this line to an .htaccess file or you could add it to your httpd.conf file, it it was your own server:
AddType text/x-server-parsed-html .html
You could also add this line to pick up any .htm files:
AddType text/x-server-parsed-html .htm
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.