Reputation: 31
I can read files using PHP from a network share, but how can I create a file and folder on a network share?
Upvotes: 3
Views: 7215
Reputation: 38526
Same way you would a local file.
$fp = fopen("\\\\server\\share\\folder\\file.txt","w");
You must have permission to create/write, also.
Upvotes: 5