escapeshellcmd
Posted: Fri May 05, 2006 10:14 pm
is it nessecary to call this function on data passed to functions like glob()
I found a recursive directory lister in PHP comments and it uses this function to escape data
Problem is on Windows the \ is used as a directory delimiter and the above function removes that character?
When I comment out the function everything works fine
Do I have to regex the \ to / first then call that function? Is that even a good way of doing this?
Is that function really needed on glob, etc???
p.s-No it's generally a good idea type replies please...strictly yes or no...
Cheers
I found a recursive directory lister in PHP comments and it uses this function to escape data
Problem is on Windows the \ is used as a directory delimiter and the above function removes that character?
When I comment out the function everything works fine
Do I have to regex the \ to / first then call that function? Is that even a good way of doing this?
Is that function really needed on glob, etc???
p.s-No it's generally a good idea type replies please...strictly yes or no...
Cheers