HI,
See the sample
$basedir = C:\Documents and Settings
$fileuploadpath =C:\Documents and Settings\folder 1\folder2\abcd. jpg
(or)
$fileuploadpath =C:\Documents and Settings\folder 1\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,$fileu ploadpath)
See the sample
$basedir = C:\Documents and Settings
$fileuploadpath =C:\Documents and Settings\folder 1\folder2\abcd. jpg
(or)
$fileuploadpath =C:\Documents and Settings\folder 1\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,$fileu ploadpath)
Comment