Ditutup

How to access network drive from php & apache server

I've a windows machine where Apache [url removed, login to view] is running and configured with php 5.3.

I've a network drive/ other machine hard disk, whose contents I'd like to access from this local machine.

You have to just show me the code snippet which I've to write on "[url removed, login to view]" to access the network drive. And then show me the contents of any folder of that network drive.

Like this

=====================================================================

<?php

//Open images directory

system('net use Z: "\\[url removed, login to view]\Software" /persistent:no');

$dir = dir("Z:");

//List files in images directory

while (($file = $dir->read()) !== false)

{

echo "filename: " . $file . "<br />";

}

$dir->close();

?>

=====================================================

Happy Bidding !!

Kemahiran: Apache, PHP

Lihat lebih lanjut: access network drive php, php network drive access, php read network drive, write network drive php, php network drive, access network drive, network drive php, access network php, php read network directory, php directory software, write code php, how code, php access drive, apache access network disk, php access network drive, open network drive php, php 5, write contents, local network, br software, apache server, apache network, access d, php list directory files, php list directory

Tentang Majikan:
( 2 ulasan ) BARRACKPORE, India

ID Projek: #1589430

3 pekerja bebas membida secara purata $9/jam untuk pekerjaan ini

Aspec59

Hello. Please see PM for details.

$10 USD / jam
(6 Ulasan)
3.4
rajuworld

We can solve this

$8 USD / jam
(7 Ulasan)
2.4
djkerya

:-) :-) :-)

$8 USD / jam
(0 Ulasan)
0.0