I have one question, can i upload file to another server without curl.. Because not every server have CURL ... Thanks...
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Yes it is possible using pure PHP fopen together with stream_context_create. The following example comes from the online PHP manual (http://php.net/manual/en/function.stream-context-create.php):
It is possible to use ftp_put:
Whereas, the ftp domain would supply you with the location to the ftp file as well as the username and password.