How to make this PHP appear?

  • Thread starter Thread starter l.marie
  • Start date Start date
L

l.marie

Guest
I asked this earlier but I don't think I made it clear.

How do I write this if/then statement in PHP:

If a url follows this pattern (w/o the spaces):
http:// www. fandango.com/ fourchristmases_111154/ movieoverview
I want a certain thing to happen. If the url does not follow that exact pattern
(eg: http:// www. fandango.com/ ?wssac=131&wssaffid=11828_MoviesDotCom)
then I don't want anything to happen.

I'm very new to PHP, so can you explain answers in layman terms if possible?
The url needs to be that fandango one:
http://www.fandango.com/yesman_113214/movieoverview

for example, it should be http://www.fandango.com/ANYMOVIE_NUMBERS/movieoverview

if any other fandango url shows up, i don't want anything to happen
 
Back
Top