PHP equivalent

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fractalvibes
Forum Contributor
Posts: 335
Joined: Thu Sep 26, 2002 6:14 pm
Location: Waco, Texas

PHP equivalent

Post 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.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

fractalvibes
Forum Contributor
Posts: 335
Joined: Thu Sep 26, 2002 6:14 pm
Location: Waco, Texas

Post 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.
Post Reply