Jump to content

anthelo

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Everything posted by anthelo

  1. not working This is what my code now is look like. <?php $requested_parts = explode('/', $requested); $requested = empty($_SERVER['REQUEST_URI']) ? false : $_SERVER['REQUEST_URI']; switch ( $requested_parts ) { case '/videos/': $content_title = 'Videos Home Directory'; break; default: $content_title = 'Welcome to my Website!'; } ?>
  2. Hi, Im having this peace of code <?php $requested = empty($_SERVER['REQUEST_URI']) ? false : $_SERVER['REQUEST_URI']; switch ( $requested ) { case '/videos/': $content_title = 'Videos Home Directory'; break; default: $content_title = 'Welcome to my Website!'; } ?> What im trying to do is when im on the domain www.mydomain.com will show $content_title . My problem is when im trying for example www.mydomain.com/videos/ everything is ok but when im on www.mydomain.com/videos/something_else/ I want the the same title again Any help please?
×
×
  • 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.