Cyclist
7th of November 2008 (Fri), 04:10
I would like to print different text in the header depending on the called page.
If I for instance call the list.php I want to write other text than on index.php or photo.php
Does anyone knows how I can do this? If I am not wrong the structure might look like
if (condition)
print 'text_a';
elseif (condition)
print 'text_b';
else
print 'text_c';
but I don't know how do write the condition to check the current page. It must be something like if page=list.php print text_a else.... but how do I have to write this with php?
If I for instance call the list.php I want to write other text than on index.php or photo.php
Does anyone knows how I can do this? If I am not wrong the structure might look like
if (condition)
print 'text_a';
elseif (condition)
print 'text_b';
else
print 'text_c';
but I don't know how do write the condition to check the current page. It must be something like if page=list.php print text_a else.... but how do I have to write this with php?