I'm writing a small function that resolves the complete filename location based on the first characters in $filename.
if ( strpos ($filename, "/") == 0 ) {
What I'm finding is that the line above is answering TRUE on
$filename = "thisfile.txt"
AND
$filename = "/thisfile.txt"
Why? How do I fix this so I can properly handle filename strings that have a leading forward slash ONLY?
TIA
Sean Shrum