Re: More PHP Includes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 9:59 AM -0400 3/10/09, Gary wrote:
Thanks again for all the help.

I created a simple page of all includes (header, menu, 3 columns).  I mixed
the file types up. The menu (projectseven PMM) I saved as a library item,
works fine.  Had an HTML file in there, but I am guessing that having 2 page
declarations along with an extra set of <head> and <body> tags was playing
havoc with the code, so I removed them. Same thing when I created a php page
and saved it as filename.inc.php, so I removed all the declarations and
tags, again seems to work fine. Also included a simple .txt file.

I did get some strange results in that all of the <tags> were highlighted
after the menu, and I had to remove and insert again to correct.

So is this the best way, to create a php page, remove all of the html tags
and page declarations and name it filename.inc.php? (I'm using DW CS3)

Also, something I do not understand, I included a small txt file in a page
of a customer and it shows fine, however this file is not on the server...is
this normal?


Gary:

If you want to see how this all plays out in a demo, try this:

http://sperling.com/examples/include-demo/

Go through the complete demo and you'll see how the header/footer/menu include things work.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux