karthikeyan_coder Posted March 5, 2007 Share Posted March 5, 2007 I have a VPS with 30 IP addresses. I wrote a PHP script that has pfsockopen with ssl and 80. I need to make this script to do downloads each time from different IP. As I've said before, I have 30 IPs with my server. Here is an example: My IP range is 68.15.21.120-150 I need to download a web site four times: Script downloads 1st time from 68.15.21.120 2nd time from 68.15.21.121 3rd time from 68.15.21.122 fourth tie from 68.15.21.123 How can I do that? Thank you. Link to comment https://forums.phpfreaks.com/topic/41303-help-needed-with-multiple-ip/ Share on other sites More sharing options...
karthikeyan_coder Posted March 5, 2007 Author Share Posted March 5, 2007 i've googled a lot. i couldnt find any better solution... Link to comment https://forums.phpfreaks.com/topic/41303-help-needed-with-multiple-ip/#findComment-200173 Share on other sites More sharing options...
PC Nerd Posted March 5, 2007 Share Posted March 5, 2007 well to loop through all the ip addresses youd have one number, containing the first 3 sections of the address. and then incriment the 4th section, between 120 and 150. eg $ip= 11.33.55.; $ip_extension = 120; while ip_extension <= 150: DOO STUFF HERE i dont know how id dp the download stuf. i dont know if you can with php, force a coputer to upload information to you ( ie your downloading, theyre uploading) becauase wouldnt that leave it open for phishing, viruses etc.... good luck Link to comment https://forums.phpfreaks.com/topic/41303-help-needed-with-multiple-ip/#findComment-200222 Share on other sites More sharing options...
karthikeyan_coder Posted March 6, 2007 Author Share Posted March 6, 2007 socket_bind($sock, $address, $port); will it work for pfsockopen(); ? Link to comment https://forums.phpfreaks.com/topic/41303-help-needed-with-multiple-ip/#findComment-200533 Share on other sites More sharing options...
karthikeyan_coder Posted March 6, 2007 Author Share Posted March 6, 2007 any other alternate function for pfsockopen() is available? Link to comment https://forums.phpfreaks.com/topic/41303-help-needed-with-multiple-ip/#findComment-200546 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.