Anyone know if there's some way to read filenames from an online directory, similar to opendir/readdir? I'm trying to generate links for jpgs, but only if they exist. Works fine on my hard drive, but of course it blows up on my cheesy virtual host set-up because
(local) /Library/WebServer/Documents/
turns into
(http) /usr/local/psa/home/vhosts/foo.com/httpdocs/
which of course isn't really there.
Am I making any sense?
TIA
-BK