Jump to content

Rahr! php!


illogic-al
 Share

Recommended Posts

I'm trying something out w/ php but I'm kinda stuck now and the manuals kinda long.

k here goes. I have this one one of my pages

  if  (strstr($_SERVER["REQUEST_URI"], "tutorials.html"))

 {

 }

which is basically supposed to show up tutorials in the menu if the current page is tutorials.html. I just realized that this is pretty useless since all the links on the tutorails page point to the same thing. I want to do something like match a regular expression (i think that what it's called) so i would have something like

  if  (strstr($_SERVER["REQUEST_URI"], "tutorials*.html"))

 {

 }

where * would be the actual tutorial pages. So if you're on one of those pages, and want to get to another tutorial, just click on that link.

help

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...