Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote Directories

Status
Not open for further replies.

ekbranson

Programmer
Jan 12, 2004
52
US
I am trying to upload folders and filenames on a win2k machine to a MySql database stored on Linux server. The server is running Appache. The proplem lies with the opendir(). It fails. I have read up on the opendir() in the PHP documentation, and it seems that this is supported. Anyone know a place I can look for more documentation, or have a solution?

$path ="\\\win2kMachine\\someSharedFolder\\";
$main_dir =opendir ($path) or die("Error reading ".$path);

 
You have an odd number of backslashes at the beginning of your string that is being stored in $path. That just can't be right -- is it a typo while posting?


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
No, the backslashes are necessary to escape. However I have also tried:

//win2kMachine/someSharedFolder/
 
Ok, I still have not found a work arround for this issue. But, for anyone else that may be looking, I came across this which discusses some issues with opendir(). If anyone knows a fix for this besides seting up the remote computer with permissions for Appache let me know.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top