Google Answers Logo
View Question
 
Q: How to find actual path of file ( No Answer,   1 Comment )
Question  
Subject: How to find actual path of file
Category: Computers > Internet
Asked by: gojoeb-ga
List Price: $2.00
Posted: 03 Aug 2005 20:14 PDT
Expires: 02 Sep 2005 20:14 PDT
Question ID: 551499
I would like to know how to find the actual path of a file when
pointed by PHP or another language.

For example how do you find the real path for
http://www.ironclad.net/download/public/applications/file_info/download1.php?file=06311_331.jpg

Hint: The answer is http://www.ironclad.net/download/public/applications/06311_331.jpg

Is there some way to see in the header or anywhere where you browser
is being pointed to?

Clarification of Question by gojoeb-ga on 05 Aug 2005 07:51 PDT
I already know the answer for this server.  How do you I find this for
a server I do not control?  The URLs are just an example.
Answer  
There is no answer at this time.

Comments  
Subject: Re: How to find actual path of file
From: rambee-ga on 05 Aug 2005 07:39 PDT
 
Hello,

Just add this particular code in your PHP script, you can get the
exact absolute path of the drive and directory.

<?php
$p = getcwd();
echo $p;
?>

Thanks,
RamBee.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy