creating a directory on a external server
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?
Re: creating a directory on a external server
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...
Re: creating a directory on a external server
ermmm well if the don't want files to be changed they should set the Security Options correct
Re: creating a directory on a external server
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.
Re: creating a directory on a external server
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
Re: creating a directory on a external server
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.