Click to See Complete Forum and Search --> : PHP creating a directory on a external server
azertykk
February 12th, 2011, 04:47 PM
hello,
i would like to create a directory (using php) on a external server
so for example if the php script is executed on http://www.Server1.com
i would like to create a directory on http://www.Server2.com/Folders
the folder on server 2 has all read and write permissions.
i tried :
mkdir('http://www.Server2.com/Folders/NewFolder',0770);
but it fails.
so, any idea how to solve this?
PeejAvery
February 12th, 2011, 05:27 PM
Wow...Are you actually asking this?
Can you imagine if servers let you modify there file system? There's a reason why they don't. Talk about security whole...
azertykk
February 12th, 2011, 07:14 PM
ermmm well if the don't want files to be changed they should set the Security Options correct
PeejAvery
February 12th, 2011, 10:07 PM
So, give people server software but allow an option to have people remotely alter your server. I'm sorry, and don't mean to be rude, but you have no concept of security.
Doing what you want cannot be done. And, if it could, I, as well as every other person on this site, would fire any architects who designed such a system.
azertykk
February 13th, 2011, 06:29 AM
ok, so i create a ftp acount for the Server2\Folders and connect to it from Server1
and do ftp_mkdir
its more secure and it would be nice if you pointed out this option in the first place instead of handeling this question as its from a complete idiot
PeejAvery
February 13th, 2011, 07:22 AM
1. My point was not to make you feel like an idiot. Sorry if that came across.
2. I would have suggested it, but nothing in your previous posts mentioned that you owned or had acess to the other server.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.