0

Hi All, I am trying to connect to a Network drive remotely using authentication data(\drive_name)(T:). I will need to upload and download documents. If possible can you give me some pointers.

If you require any additional information please let me know

Thanks in advance

David

4
Contributors
9
Replies
66
Views
4 Years
Discussion Span
Last Post by davidjennings
0

Sorry the drive name I am trying to connect to is data(\drive_name)(T:).it looked confusing

thanks
David

Edited by davidjennings

0

you can upload file without using the drive name..
note that
Source ->>(should have already an access)->> Destination
then you could access it the destination like:

$config['upload_path'] = '\\ipaddressOrName\sharedpath';

Edited by code739

0

Hi Thank you both for your reponses

A remote user will be required to log on to a network drive and access documents which can be downloaded and other documents uploaded.

The PHP is to check login credentials and allow access.

Thanks

David

0

Hi All, I have looked around and tried the following code. Am I on the correct path with this type of code, to access a server?

What I have tried does not work, any advice?

I have been researching here http://uk3.php.net/function.opendir

Thanks in advance
David

<?php
$dir = "\\wat-sql-42_sp\Watkins Reports";

// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
    if ($dh = opendir($dir)) {
        while (($file = readdir($dh)) !== false) {
            echo "filename: $file : filetype: " . filetype($dir . $file) . "\n";
        }
        closedir($dh);
    }
}
?>

Edited by davidjennings

0

Hi All as anyone got any questions? Have I made everything clear? Does any have any ideas? do you need additional information?

Thanks

David

0

Hi Lsmjudoka, thanks for your reply and for my late reply, other things have taken over.

I will look at you link contents and see where I get to on this.

Thanks

David

0

Hi Lsmjudoka, Thanks for the info got me started. I will mark insolved and start a new thread for my new questions.

thanks

David

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.