I won't even ask why... but if you started a webserver on your local machine the
file() function does allow you to use http .. so file("http://mymachine/myfile.txt");
that's one way.
The other way is to upload the file using HTTP.
Neither of these ways are very secure.
<>< Ryan
-----Original Message-----
From: dufronte [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 11:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] read a file from local harddisk
HI... sorry to interrupt again...
I have another ridiculous question...
I have a text file in my machine... and a php-file in my host (such as
host.sk etc..)
I want to use my php-file to access my text file in my machine
directly...
I used fopen, and fread stuff... but didn't work....
Btw, can somebody help my with this.... I want to know how to access my
local file in Windows and Linux remotely... or it can risk some security
problem ???
Please... help me...
---DuFronte---
�
http://binusti2002.net.tc
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php