RE: [PHP-DB] read a file from local harddisk
| From: | USA) | Date: | Tue, 10 Dec 2002 18:31:31 +0000 |
| Subject: | RE: [PHP-DB] read a file from local harddisk | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-24020@lists.php.net to get a copy of this message | ||
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:dufronte@kapsul.org]
Sent: Tuesday, December 10, 2002 11:28 AM
To: php-db@lists.php.net
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