Excuse me anjanesh, is it possible set a path for ex: c:\dati\file.txt ? I need to know becouse I don't want let visitors could insert from a form all file they want; I want that only "file.txt" located in c:\dati can be uploaded.
Thanks a lot for help.
Piero Ruffino Ciao
Search found 3 matches
- Wed Sep 01, 2004 3:25 am
- Forum: PHP - Code
- Topic: how to read a txt file from client's drive
- Replies: 12
- Views: 3779
- Wed Sep 01, 2004 3:22 am
- Forum: PHP - Code
- Topic: how to read a txt file from client's drive
- Replies: 12
- Views: 3779
- Wed Sep 01, 2004 3:17 am
- Forum: PHP - Code
- Topic: how to read a txt file from client's drive
- Replies: 12
- Views: 3779
Fopen()
Ciao from Italy,
perhaps but i'm a newby in PHP you should use :
$fp = fopen("c:\\data\\file.txt","r");
But I'm not completly sure because on my localhost it works, but in remote it doesn't ....
Anyone else can help us ????
Ciao Piero Ruffino
perhaps but i'm a newby in PHP you should use :
$fp = fopen("c:\\data\\file.txt","r");
But I'm not completly sure because on my localhost it works, but in remote it doesn't ....
Anyone else can help us ????
Ciao Piero Ruffino