php include question

Discussion in 'HTML' started by granpaw, Mar 9, 2006.

  1. granpaw

    granpaw Guest

    Can someone tell me if I have rename all the pages with a php ext. if I
    want to update them with and include?
    granpaw, Mar 9, 2006
    1. Advertisements

  2. granpaw

    Mark Parnell Guest

    Deciding to do something for the good of humanity, granpaw

    [1] Strictly speaking, it can be possible to get the server to parse
    other files as PHP (if your server configuration allows you to), but I
    wouldn't recommend it.
    Mark Parnell, Mar 9, 2006
    1. Advertisements

  3. granpaw

    Neredbojias Guest

    With neither quill nor qualm, granpaw quothed:
    You can use server-side includes (if your host supports them.)
    Neredbojias, Mar 10, 2006
  4. granpaw

    Toby Inkster Guest


    If you have access to your Apache configuration (httpd.conf or .htaccess
    files) you should be able to set Apache to process files as PHP regardless
    of their name.

    For example, to tell Apache that all files with name matching "*.html" are
    really PHP files:

    AddType application/x-httpd-php .html

    Or to tell it to treat one particular file as PHP:

    <Files myfile.html>
    ForceType application/x-httpd-php
    Toby Inkster, Mar 10, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.