Ok, I want to use php on a page on my website, the page is www.mikestermedia.com/index.htm. I also want to use stuff like

<!--webbot bot="Include" U-Include="includetop.htm" TAG="BODY" startspan --> 

and

<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%A, %d. %B %Y %I:%M %p %Z" startspan -->Monday, 27. October 2003 12:14 PM -0600<!--webbot bot="Timestamp" i-checksum="9658" endspan -->

Here's the question:

How can I use the web bot stuff and the php on the same page?

    Why don't you test it?
    If it works, it works!

      See, the web bot stuff works in conjuction with the FrontPage Server Extentions on my server. I just can't get php code to work on frontpage friendly pages (.html, .htm) and vice versa.

      Can you help me?


      EDIT: More spesifically; Is there a way to run php on .html and .htm pages?

        i havent used front page extensions before, so I'm not sure about this, but try saving the page with .php and see if it still works... else, you'll have to change your config to recognize it and process it through both.

          If you are running apache, and got access to the httpd.conf file,
          just edit the AddType application to:

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

            That's cool! So if I edit that file I can get Php to parse (or whatever it's called) .html and .htm files?

            Ok, but I don't know if I have access to that. How do I find out? (I'm hosted, my host is www.lowesthosting.com)

              Also Could you explain to me the difference to me between .php3, .php, and .phtml.

                If you don't have access to the httpd.conf file or don't have SSH access to restart apache, you can just use an .htaccess file.

                FrontPage extensions use .htaccess so make sure you append the existing .htaccess file rather than upload a new one.

                  When PHP 3 was released, there was a lot of changes - that's why people started naming the files .php3
                  There can also be a lot of bugs in a script created in PHP3 when your server is running PHP4.

                  Other than there there is little or no diffrence between .php3, .php, and .phtml

                    How can I view/edit the .htaccess files? What should I put in/replace in them to solve my problem spicifically? Will this tell Frontpage to check php pages or php to check .html and .htm pages? If I put the .htaccess file in the main (httpdocs) directory of my website will that effect the entire website?

                      7 days later

                      Ha! I emailed my tech support and they were able to use the .htacces files to allow php to check .html pages.

                        Write a Reply...