Create symbolic links on server without SSH available?

后端 未结 3 1613
滥情空心
滥情空心 2020-12-15 16:21

I got excited when I saw the following post but it doesn\'t cover my case: Mount an FTP server locally

Is there any way for me to create symbolic links on a remote s

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 16:24

    Use a script.

    If you have sh, bash or csh available, then you're nearly as good as if you had an ssh access. If you don't, then most other scripting languages allow you to create symbolic links on your server.

    For example, in PHP you would use the symlink() function:

     symlink("myOriginalFileOrDirectory", "mySymbolicLink"); 
    

    I just had the same problem, and this is how I easily solved it :)

提交回复
热议问题