HI,
See the sample
$basedir = C:\Documents and Settings
$fileuploadpath=C:\Documents and Settings\folder1\folder2\abcd.jpg
(or)
$fileuploadpath=C:\Documents and Settings\folder1\folder2\abcd.jpg
I want to retrieve the name of folder1 or/and folder2 between the $basedir and $fileuploadpath....
How can i find ? (May number of folders come between $basedir,$fileuploadpath)