Thread
:
ANy programmers here know how to do an if/else??
View Single Post
07-19-2006, 10:19 PM
SmokeyTheBear
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
<?php
$this = $PHP_SELF;
if (preg_match("/\/2\//", $this)) {
echo "folder found";
}
else {
echo "folder not found";
}
?>
if the folder name your looking for is 2 like
www.yoursite.com/nastylady/2/something.html
__________________
hatisblack at yahoo.com
SmokeyTheBear
View Public Profile
Find More Posts by SmokeyTheBear