Page 1 of 1

PHP equivalent

Posted: Tue Mar 18, 2003 11:01 pm
by fractalvibes
Is there a PHP equivalent to the ASP
Server.MapPath("/somefolder/somesubfolder/myfile.jpg")

Where you can give the function some relative virtual path and get the
physical file system path as in :
D:\inetpub\somefolder\somesubfolder\myfile.jpg
from the above example?

Trying to do some image resizing via PHP on an IIS server and running into some issues that were non-issues using a very similar script on Apache....arrgg! Even the initial GetImageSize function cannot seem to find the image...argg..gnach teeth! ;-)

Phil J.

Posted: Wed Mar 19, 2003 2:01 am
by twigletmac

Posted: Wed Mar 19, 2003 5:38 pm
by fractalvibes
Thanks, Mac. Precisely what I was looking for.

Now if I can just quit typing "echo" in my ASP scripts at work.....! ;-)

Phil J.