Hi all. I'm hoping that one of you could assist me in what may be very obvious to you experienced folks, but what does the 5th line of code saying "head("Home");" do? The include statement already brings up home.php, and I'm not used to a templated website structure. Thanks in advance.

<?
include("include/common.class.php");
include("include/search_form.class.php");
include("include/image.class.php");

head("Home");

include("templates/".template."/home.php");

foot();
?>

a user defined function,
found in common.class.php

<useless>
head(pagename);
I use 'pagename' to indicate which menu link does nothing,
you cant go to pagename from pagename, the link is just text
</useless>
I'm assuming your author did as well

It calls a function called head() and passes in the string 'Home' as a parameter. It does whatever that function does.

Thank you for your help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.