Jump to content
Larry Ullman's Book Forums

Using Constants ( Page 200 )


Recommended Posts

Hi Larry, thanks for your great books. I am new to PHP but I am really enjoying learning. Your books are excellent.

I am creating a web site using templates as described in Chapter 8. I have inserted the Constant to generate the unique title for each new page ( as on page 201 )but I also want to insert unique key words and a unique description for each page too. How do I do this? Is there a script somewhere I can copy and paste into my pages? I'd really appreciate some help / advice on this. Many thanks, Ron

Link to comment
Share on other sites

Thanks for the nice words, Ron. Much appreciated. As for your question, just replicate the page title code, using a different constant name. So maybe create a PAGE_DESCRIPTION constant and, in the header, have PHP print out the PAGE_DESCRIPTION constant within the appropriate meta tag, assuming the constant is defined.

Link to comment
Share on other sites

 Share

×
×
  • Create New...