lol_php Posted April 28, 2007 Share Posted April 28, 2007 Hi all. I'm writing a script to stress test my current host (Unmetered bandwidth - no worries ). I am not too familiar with this, but I want it to download a large image many times over. It would be good to establish many connections at once to simulate many users... Not sure how I can do that. My current implementation is as follows: for ( $num = 1; $num <= 1000; $num += 1) { echo "<img src=\"http://www.mywebsite.com/stresstest.jpg?$num\"><br />"; } } The issue with this is it slows down my browser and just doesn't seem like a smart way to do it. I would much rather have it establish several connections at once, and have it download images one after the other (only when the previous image has completed loading) through each connection... Also, it would be nice to do this without displaying a thousand 2MB JPG files in my browser at once. Is there an easy way to have it overwrite the previous image each time? Although this is a one off I see myself using it often to test out forum MOD stability etc. Anyone got any ideas for a decent way to do this? Thank you. Link to comment https://forums.phpfreaks.com/topic/49074-php-server-stress-tester-multiple-image-loader/ Share on other sites More sharing options...
heckenschutze Posted April 28, 2007 Share Posted April 28, 2007 Well you could google a program called 'Packet-Storm'... If you can find it. Note that most Anti-Viruses have labeld this bad because of the bad things it can be used for (eating bandwidth). Link to comment https://forums.phpfreaks.com/topic/49074-php-server-stress-tester-multiple-image-loader/#findComment-240427 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.