Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2006
    Posts
    5

    Unanswered: Remote file access?

    Hey all,

    I'm in a fix and am not able to solve this problem!

    I have a file located on a server machine and I wanna read that file!

    the server name is server.safl.umn.edu

    and, if I specify this $file = '\\server.safl.umn.edu\common\cellis\safl weather\saf_wthr.dat'; $fp = fopen($file,"r")

    it gives me the following error

    Warning: fopen(\server.safl.umn.edu\common\cellis\safl weather\saf_wthr.dat) [function.fopen]: failed to open stream: No such file or directory in C:\websites\techtest.safl.umn.edu\Vivek\demo3.php on line 54

    The access permission for the file is there, but it jus doesnt work!

  2. #2
    Join Date
    Oct 2002
    Location
    Plymouth UK
    Posts
    116
    Try changing your file reference to:

    $file = '//server.safl.umn.edu/common/cellis/safl weather/saf_wthr.dat';

    What operating system is the server running? I would guess some MS variant.

  3. #3
    Join Date
    Jan 2006
    Posts
    5
    I made the file http-readable! and now, its working!
    thnx for ur suggestion

  4. #4
    Join Date
    Feb 2004
    Posts
    533
    Quote Originally Posted by vivsriaus
    I made the file http-readable! and now, its working!
    thnx for ur suggestion
    Doesn't this create a security concern? Because anyone could read DAT files on the server from http?
    ~

    Bill

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •