#include file
I believe in windows, ASP and such, you can drop in a commented code like #include file="blah blah" and it will pull in another page into your page.
Is this possible in Linux? I run a Red Hat 8 box, apache, php, mysql... and I'd like to include an external .htm file from a different location into one of my web pages. Thanks. |
php use the requre() function.
|
The file is just an .htm file... I could change it to php, but I'd rather not. :)
Thanks. |
did you try it first? does it give you an error?
If it needs to be php there's no harm in changing it. If there's no php tags it will just return the document as-is. You could also just use server side includes. |
Yes, this is done the same way, google for apache server side includes
|
Okay did the search, got a tutorial I applied. It works good... unless I try to include a file which is on a seperate server, different machine, different URL. I include the full URL path.. or does that work differently?
Thanks |
you can't include a file on another machine unless you do it with nfs or some other type of mountable remote file system.
|
All times are GMT -5. The time now is 01:25 PM. |