Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- server path to web path
December 17, 2008, 3:45 am
rate this thread
I need to spider a servers subdirectories and pull files to write web
I seem to recall some php function that would convert a server path
to it's path from the web document root. How do I do this (easily). Ie,
subtract the $_SERVER['DOCUMENT_ROOT'] part. I can't seem to find a
string difference function either, but perhaps I've overlooked it as
there are a lot string functions!
I used to have a file with my php notes in it, but unfortunately this
wasn't a file that survive my boot drive crash. I'll try not to ask to
many questions I should know already...