Forum Moderators: coopster

Message Too Old, No Replies

PHP Parse With FrontPage

Using PHP with FrontPage

         

erika1959

3:48 am on Feb 16, 2003 (gmt 0)

10+ Year Member



Anyone have any ideas about the easiest way to configure so that my .php files are parsed into .html extensions. In case I've got the terminology incorrect, what I want is to have my .php appear when they are called up with the .html extension.

The added complication in all this is that I use FrontPage, so I can't alter the .htaccess file in my root directory without messing up my Frontpage extensions.

I know that pasrsing these files, but for the time being I can't think of an alternative, since I want to add a php- based timestamp to ALL my HTML pages, which won't be found if I suddenly change them to .php

NeedScripts

3:59 am on Feb 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



so I can't alter the .htaccess file in my root directory without messing up my Frontpage extensions.

Yes you can :)

Just add the lines in your .htaccess file and see it work :)

erika1959

4:34 am on Feb 16, 2003 (gmt 0)

10+ Year Member



Interesting...other sources have said not!

OK, so what lines would I add? :)

marcs

5:43 am on Feb 16, 2003 (gmt 0)

10+ Year Member



Try this :

AddType application/x-httpd-php .html

NeedScripts

7:02 am on Feb 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Interesting...other sources have said not!

me :) cuz, I use it.

OK, so what lines would I add? :)

marcs has the right for it :)

erika1959

10:20 am on Feb 16, 2003 (gmt 0)

10+ Year Member



Brill, I'll give it a go!

And if I were going to parse .asp files, would the .htacess file need;

AddType application/x-httpd-asp .html ?

wruk999

12:11 pm on Feb 16, 2003 (gmt 0)

10+ Year Member



erika1959,

If i'm not mistaken - you are using Apache?
On a linux platform? Or windows?

Apache/Linux cannot parse .ASP files - unless you have Chillisoft or similar.
Only windows IIS/PWS can parse .ASP files (properly)

Have a read through these posts for asp & linux:
ASP on Linux [webmasterworld.com]
Chilisoft ASP [webmasterworld.com]
PHP, asp file extensions [webmasterworld.com]

Hope this helps you.

Kindest Regards,
William

Allen

9:18 am on Feb 17, 2003 (gmt 0)

10+ Year Member



That is, of course, assuming that your server will allow you to do that.

Note that it is generally not a good idea to be passing every .html file as this can take up a lot of unnecessary resources if the majority of your files do not include php code.

Allen

wruk999

7:01 pm on Feb 20, 2003 (gmt 0)

10+ Year Member



erika,

If you wish to Parse .asp files as php, you would need to add the following in your httpd.conf file:

AddType application/x-httpd-php .asp

hope this helps.

erika1959

8:40 pm on Feb 20, 2003 (gmt 0)

10+ Year Member



Thank you to all who've offered help.

I've beeb diverted off-course by more pressing concerns, but I'll be sorting this out in a day or so.

Thanks once again!