CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2011
    Posts
    3

    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?

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    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...
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Feb 2011
    Posts
    3

    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

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    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.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Feb 2011
    Posts
    3

    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

  6. #6
    Join Date
    May 2002
    Posts
    10,943

    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.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured