php include question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Can someone tell me if I have rename all the pages with a php ext. if I
want to update them with and include?

Re: php include question

Deciding to do something for the good of humanity, granpaw

Quoted text here. Click to load it


[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

Now implementing

Re: php include question

With neither quill nor qualm, granpaw quothed:

Quoted text here. Click to load it

You can use server-side includes (if your host supports them.)

Contrary to popular belief, it is believable.

Re: php include question

granpaw wrote:

Quoted text here. Click to load it


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 A Inkster BSc (Hons) ARCS
Contact Me  ~

Site Timeline