Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Highlighting a dynamic php page in the menu - have code

  1. #11
    Join Date
    Jul 2008
    Posts
    138
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default

    Good point on google picking this thread up already. Who needs any other search engine when you have google

  2. #12
    Join Date
    Oct 2006
    Posts
    183
    Thanks
    0
    Thanked 11 Times in 11 Posts

    Default

    Well I think that was a coincidence on timing of the post and google indexing lol

  3. #13
    Join Date
    Jul 2008
    Posts
    138
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default

    Yeah, a little too ironic I don't work on many sites that use seperate pages like about.php contact.php and so on, but I have one other quick question.

    I would like to see if that code could be changed to work in the same way so one include file can be inserted and for instance...keywords, descriptions, so on could be supplied based on domain.com/about.php

    I tried to mess around with the previous code to get the request of a static page like about.php but didn't have any luck.

    A general idea...
    $request = $_SERVER['REQUEST_URI'];

    somehow check that if $request equals domain.com/about.php
    echo "keyword, keyword 1, keyword 2"; (can be anything really...specific to that page..graphics etc.)

    Of course you can have http, https, w/ or w/o www. so domain.com/page.php would cover most. Thank you for any help, just a little curious.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •