Hi all. In my code, I use the following to find the path for a variable called fileName2:
$fileName2 = ereg_replace('\%20', ' ', $fileName);
$fileName2 = stripslashes($fileName2);
$fileName2 = dirname($fileName2);
This works perfectly on a Mac but on the PC, it always returns a value of "." .
Any idea what I am doing wrong?
--charles