I am using file_put_contents and the path is C:\foldername its working fine in my local. When I tried it on my dev ennvironment I thought its not working because its not saving in my computer. It is saving in my dev environment. 
file_put_contents("C:\foldername", $data);
- How to use this and have the path to point to client computer?
 - What should i put in the path so that it will be stored in the client of users not on dev environment?