Jump to content

Code According to Page


xProteuSx

Recommended Posts

I have a file that is included on all pages of a website.  However, I don't want it included on certain pages.  What I was looking for was something like this:

 

if ($current_page == 'index.html')

  {}

else

  {require_once ...}

 

How can I do this?  Cheers.

Link to comment
https://forums.phpfreaks.com/topic/254700-code-according-to-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.