Thread
:
ANy programmers here know how to do an if/else??
View Single Post
07-19-2006, 10:53 PM
madawgz
8.8.8.8
Industry Role:
Join Date: Mar 2006
Location: Noordermarkt
Posts: 30,509
Quote:
Originally Posted by
SmokeyTheBear
<?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
something else to learn
__________________
TAEMDLRMSKRJIXMRLSMRJ.
madawgz
View Public Profile
Visit madawgz's homepage!
Find More Posts by madawgz