Hi,
I have a subdirectory folder called /lefnav
It contains this files:
background.jpg
demo.html
heading_bg.jpg
jquery.js
navigation.jpg
sliding_effect.js
styles.css
tab_bg.jpg
Thumbs.db
Thumbs.db/encryptable
It actually contains al the elements of this tutorial:
I want to include with php the whole folder so that the final result is (like this demo):
http://d2o0t5hpnwv4c1.cloudfront.net/004_Moo/tutorial/demo/demo.html
The best I´ve go so far is, but it is not working at all even if I add .css and .js:
<?php
foreach (glob("leftnav/*html") as $filename) {
include($filename);
}
?>
I would have thought:
include("leftnav/demo.html");
Alone should work because it seams logical that when I include the and .html file it should call fot the .css etc but this is not the case for what I see.
EDIT:
I think I´ve sorted where the problem is:
When I include the .html it does call for the css but it calls for it in the wrong folder, it does not add "/leftnav/" how could I solve this?
Thanks in advance!!
Trufa