开发者

Is it possible to do SQL queries and upload files to directories to other websites?

Me and my friend are partnering our websites, a开发者_开发技巧nd his is an image sharing website..

So we decided to implement a image sharing feature on my site. Is this possible to do?


Assuming that you really have the cooperation of the other web site and assuming that the other web site is running something other than straight HTML pages then you can work with the programmer at the other web site to provide an API that will allow you to perform certain pre-programmed functions against his web site.

One common way to do this is to use the existing HTML mechanism, designing a RESTful API to the other site, and then issuing HTML PUT, GET, POST, and DELETE commands to the other website.


Obviously not. Otherwise anyone could deface any website. You can only write to other websites if you have FTP/SCP/... access or there's an API giving you access to it.


What you would probably have to do is set up a web page, most likely password secured where you could post the file to his site for processing. One way of doing this is to submit an XML document with your authentication credentials and the image data and other meta information about the image to a PHP/ASP.Net/whatever page that is on your friends server that knows what to do with the image.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜