PDA

View Full Version : Include a page with php



openfire3
October 17th, 2004, 10:58 PM
Is it possible to include a html page in a php code from another folder?
<?php @ include ("$page.php"); ?> and the link
<p><a href="index.php?design=gallerie/designs/signature">Signature</a></p> where the gallerie/designs/ should be the parent directory of the .html

Yeldarb
October 17th, 2004, 11:07 PM
I'm having trouble understanding your question.

(well, the first one I got, but the second part doesn't really make sense)



<?PHP
include("../file.php");
?>

openfire3
October 17th, 2004, 11:27 PM
(well, the first one I got, but the second part doesn't really make sense)
I'm having trouble explaining... lol
I'm not very good in english...

openfire3
October 18th, 2004, 01:05 AM
Ok, I'll try to explain it as much as I can. I have a php page with a include tag: @ include ("$page.php). In this tag, another php page load. In this second php page I have my menu at the left side and the photo in the left. The photo with his description load in another include tag. But my html file where the photo is, it is in another folder like /gallery/designs/design01.html (to keep my root folder from having 30 .html files). How can I link this page with the menu into the include tag??