stig1 Posted August 8, 2009 Share Posted August 8, 2009 Is it possible to do the following. 1. Run an sql script to get all the customer's numbers from our database. (this is possible, and i can do this part easy) 2. For each customer number pulled from the sql script, create a directory, if the directory does not exist already on the server. 3. Can the directory / directories be created on another server not running the php script, basically the webserver runs the script, and the directory is created on the other server? Help is apprecaited. Link to comment https://forums.phpfreaks.com/topic/169306-mkdir-help/ Share on other sites More sharing options...
trq Posted August 8, 2009 Share Posted August 8, 2009 2. See mkdir 3. Depends. Can you mount the filesystem of this other server or somehow gain access to it. If so, what protocol? Link to comment https://forums.phpfreaks.com/topic/169306-mkdir-help/#findComment-893402 Share on other sites More sharing options...
stig1 Posted August 8, 2009 Author Share Posted August 8, 2009 i have the drive mapped in windows on my local computer.. and i run php via xampp on my local computer. would it work? like the drive is mapped as x Link to comment https://forums.phpfreaks.com/topic/169306-mkdir-help/#findComment-893405 Share on other sites More sharing options...
trq Posted August 8, 2009 Share Posted August 8, 2009 Yes it'll work. As long as your server has enough permissions to write to the X: drive. Link to comment https://forums.phpfreaks.com/topic/169306-mkdir-help/#findComment-893408 Share on other sites More sharing options...
stig1 Posted August 8, 2009 Author Share Posted August 8, 2009 So how would i go about doing it? Looked at the mkdir function, bit confused... Cause i would put it in a while loop from the sql statement. Link to comment https://forums.phpfreaks.com/topic/169306-mkdir-help/#findComment-893411 Share on other sites More sharing options...
trq Posted August 8, 2009 Share Posted August 8, 2009 I'm not sure whats confusing about the mkdir function, its takes a the path to the directory you want to create as an argument.eg; mkdir('X:\mynewdir'); Link to comment https://forums.phpfreaks.com/topic/169306-mkdir-help/#findComment-893414 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.