Code: Select all
$server="\\\\netserver.vietboy505.com";
print("\n Current directory: " . cwd() . "\n\n");
print("Server is: " . $server . "\n\n");
chdir($server);
print("\n Current directory 2: " . cwd() . "\n\n\n");NET USE \\netserver.vietboy505.com from command prompt.
the output is:
Code: Select all
Current directory: C:/script
Server is: \\netserver.vietboy505.com
Current directory 2: C:/scriptWhere the $server is a real server got map.