Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
get url
<?php
do {
$letter = "abcdefghijklmnopqrstuvwxyz"[rand(0,25)];
$number = rand(0,999);
$url = sprintf("https://www.iqb.es/cbasicas/farma/farma04/%s%03d.htm", $letter, $number);
echo "Trying $url\n";
$return = @file_get_contents($url);
} while ( !$return );
echo $url, "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.