Jaloney Posted February 14, 2013 Share Posted February 14, 2013 Hi all, I have been perplexed for two days now, so I hope someone can shed some light on what I am doing wrong. The text says to: Then place header.html,footer.html, and style.css into the includes directory. I made an includes (new folder) directory in the webdocs folder that my school provides for the course. I ftped header, footer, styles to this location along with the index.php file. I put the header and footer inside the includes folder, as well as outside of the folder. Seems where ever I put it, the only thing that shows up in my browser is my index.php file without the header, footer, and .css files attached. I have restarted the whole project and did it again and I am still stuck. I think I need a new wording for the sentence? "Create an includes directory in the same folder as index.php." Folder structure is my weakness. Thank you for your help in advance! Quote Link to comment https://forums.phpfreaks.com/topic/274490-new-student-having-trouble-with-includes-and-directory-structure/ Share on other sites More sharing options...
Jessica Posted February 14, 2013 Share Posted February 14, 2013 You did what the sentence told you to do. Does the rest of the assignment explain how you then include the files in your script? It's not like "includes" is a magic folder. Quote Link to comment https://forums.phpfreaks.com/topic/274490-new-student-having-trouble-with-includes-and-directory-structure/#findComment-1412469 Share on other sites More sharing options...
Barand Posted February 15, 2013 Share Posted February 15, 2013 Sounds like the folder structure should be webdocsindex.php includes folderheader.html footer.html style.css If that is the case, in index.php you would have include("includes/header.html"); Quote Link to comment https://forums.phpfreaks.com/topic/274490-new-student-having-trouble-with-includes-and-directory-structure/#findComment-1412541 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.