Re: fsockopen question

From: Date: Thu, 04 Jul 2002 22:03:29 +0000
Subject: Re: fsockopen question
Groups: php.general 
Request: Send a blank email to php-general+get-105525@lists.php.net to get a copy of this message
>Hi, i'm making a script to transfer all the zips from my old server to my >new one, i mean, server to server. That's the easy part. The cuestion is: > >Can i open more than just one instance for fsockopen to retrieve more files >in the same script, at the same time? i mean, not one by one (that will be >slow), but 4 or 5 at the same time... >some people think it's possible, some people don't...thx :D You cannot get just plain PHP to do two things at once... You *might* be able to get PHP to do something like: <?php exec('wget $foo &'); exec('wget $bar &'); ?> and then both wget calls will be in parallel... Can I ask a stupid question? Why the heck don't you just fire up FTP and do it instead of wasting time writing a PHP application to do it?... Are you not allowed SSH/telnet to either server? Maybe you could just ask the admin on the new server to do the FTP for you. It's going to be much less hassle that way. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#105525) next »