help finding working directory

C

Colin

Hi there. I have just got a new website. I have some VB.Net code that
reads a text file. This works on my home computer. When I upload it to
my website I need to know the path.

<?php
echo $_SERVER['PATH_TRANSLATED'];
?>

If I put the php file above (test.php) in the htdocs directory and
navigate to http://www.mydomain.co.uk/test.php it tells me the path and
I can then put this in front of the filename to open the file.

System.IO.Directory.GetCurrentDirectory does not give me the same
result and therefore my program cannot find the file.

What is the equivalent .Net function to the php above?

Thank you
Colin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top