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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...