adsad
adsad

Reputation: 31

PHP Create File on Network Share

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

Answers (1)

Fosco
Fosco

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

Related Questions