I'm using http://www.smorgasbork.com/2008/07/23/accessing-smb-servers-with-php/ smbclient stream wrapper in my script.
I am able to create a directory on a share with this code:
<?php
require('smbclient.php');
$smbc = new smbclient ('//servername/public','d\username','password');
if (!$smbc->mkdir ("a"))
{
echo "failure";
print join ("
", $smbc->get_last_cmd_stdout());
}
else {
echo "success";
}
?>
Now What i can't figure out if how to create the directory under this path: //servername/public/already/existing/file/structure/a
If i'm using smbclient normally i just cd to the directory in which i want to modify something sadly thats not an option because theres no cd function in smbclient.php