Re: file upload
| From: | M. Sokolewicz | Date: | Thu, 20 Jan 2005 12:30:35 +0000 |
| Subject: | Re: file upload | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206824@lists.php.net to get a copy of this message | ||
Anirudh Dutt wrote:
On Thu, 20 Jan 2005 12:26:07 +0100, Marek Kilimajer <lists@kilimajer.net> wrote:What the akshay wants is server => client The only not yet posted other options are client => client (which is essentially impossible with PHP, unless you use the server=>server setup) and client => server (which is called uploading)akshay wrote:yeah. if that's what u're trying, check out the manual page on fsockopen: http://php.net/function.fsockopen the first example will give u an idea of what to do. [code] <?php $fp = fsockopen("www.example.com", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out = "GET / HTTP/1.1\r\n"; $out .= "Host: www.example.com\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); while (!feof($fp)) {Hi all, I hv problem while file upload. I hv one server and multiple client. I want to upload a file from Server to client. how this is possible in PHPThis is usualy called download. Is this what you want?echo fgets($fp, 128);} fclose($fp); } ?> [/code] the 02-Dec-2004 01:50 comment is also useful. anirudh what you're doing is server => server