Jump to content

Accessing network files and directories with PHP


lifeasalounge

Recommended Posts

Hi all,

 

I have a local Intranet setup and i want to be able to access directories and files using php. At the moment i can't figure out how to do it. I have read a lot of articles and have only gathered that i have to change the log on account of the apache windows service.

 

Does anyone know how i would go about doing this? Any tutorials that might be useful?

 

Thanks.

Could try this..

 

$dir = "/tmp";

 

if($dh = opendir($dir)) {

        while(($file = readdir($dh)) !== false) {

          if($file != "." && $file != "..") {

              echo $file;

          }

        }

        closedir($dh);

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.