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
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