PHP as a File Proxy between the internet and a LAN computer - a possibility?
| From: | Irfan Adilovic | Date: | Tue, 09 Mar 2004 21:38:36 +0000 |
| Subject: | PHP as a File Proxy between the internet and a LAN computer - a possibility? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179936@lists.php.net to get a copy of this message | ||
As a first-timer on this newsgroup I beg for understanding for any stupidity
I may write. :)
Hi,
State of affairs:
A LAN with a computer that is not directly accessible from the internet. The
LAN is connected through a gateway to the Internet - and the LAN has only
one IP, so only the gateway is really accessible directly, from the outside.
The owner of the LAN computer (Windows XP) can map a drive to a designated
directory on the gateway computer, and use it as if it were a local drive
(when it comes to file manipulation).
The server is PHP capable and the phpinfo() can be seen here:
http://www.stuwo.at/~adilovici/index2.php .
What I want:
The "designated" directory is indeed the one ~adilovici, and the webspace is
80MB. The problem is that - when I am away for a long time, I might need
access to certain files on my LAN computer, and I am not able to that in a
simple way (or am I?!?) Any method for doing that would suffice - and I was
thinking of doing a PHP interface on my website that would somehow tunnel me
the files on my own computer (in this scenario I am coming from the
internet, to the LAN gateway which is to forward me/be a tunnel to my LAN
computer somehow). The server is a linux machine - what phpinfo() says is
all I have - I don't have shell access to the server. Perhaps perl and cgi
are a possibility, but I don't know cgi or perl (which is not a problem if
anyone suggests I should be able to solve the problem with them, assuming
the server will allow me to use them, but PHP is at stake in this post)...
It is not a problem to set up a Linux computer instead of Windows XP, but if
the same thing is possible with XP, then XP preferred.
I hope I was clear enough about what the problem is. Perhaps a completely
PHP-irrelevant solutions exist, such ideas are also welcome.
-- Irfy