trouble using {php}include(filename);{/php}
gkh01
Joined: 2007-02-22
Posts: 3 |
![]() |
Elsewhere in the forum I saw where someone was told how to include a php file using this syntax: {php}include(filname);{/php} On my site I have a navigation bar that is included on each *.shtml page using a SSI statement: Of course the point is to update only navbar2.htmlf when a change is needed. In order to make G2 appear like every other page on my site, I tried to add it to public_html/gallery/themes/classic/templates/local/theme.tpl using this statement: But I get this error message: Site is http://66.249.137.29 (domain name hrsms.org being transferred) Thanks in advance !!! |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
the path is probably wrong. -------------- |
|
gkh01
Joined: 2007-02-22
Posts: 3 |
![]() |
Yes, the navbar2.htmlf is in the public_html folder. I thought starting with a slash would make the path relative to public_html. I've never seen/used a path starting with /home/... I'll try that. Thanks. |
|
gkh01
Joined: 2007-02-22
Posts: 3 |
![]() |
Changing from This works Obviously the php include command does not work the same way. Thanks for the tip. |
|