Hi all. As a PHP newby I have a question.
I've created a index.php page which has the follow..
header div
nav div
slide div
latest news div
newest members div
advert div
footer div
The index page code now stands at 500 lines, and I'll probably hit 800 lines since I've still got the footer to do. So my questions is, can I create a header.php, nav.php, slide.php and so on and then include them onto the index page?
It would make my code far easier to read (for me anyway) and when I get a php developer to go through it all, I'm thinking it would be easier for them as well.
That would mean having 7 includes. Would this be ok?
Thanks
I've created a index.php page which has the follow..
header div
nav div
slide div
latest news div
newest members div
advert div
footer div
The index page code now stands at 500 lines, and I'll probably hit 800 lines since I've still got the footer to do. So my questions is, can I create a header.php, nav.php, slide.php and so on and then include them onto the index page?
It would make my code far easier to read (for me anyway) and when I get a php developer to go through it all, I'm thinking it would be easier for them as well.
That would mean having 7 includes. Would this be ok?
Thanks
Last edited:
