Originally posted by Drachewyn
Thanks that works great. I appended the url to include the ? and it still works.
I viewed the text file and the urls were all on one line.
Thanks for the help 🙂
Doh! Dammit! Here's the edited code.
<?php
$fp=fopen("blah.txt", "r+");
$URL=array();
//Change the number 100 to whatever you need.
for($i=1;$i<=100;$i++) {
$URL[$i-1]="http://www.somedomain.com/index.php".$i."\n";
fwrite($fp, $URL[$i-1]);
}
fclose($fp);
?>
And mark your thread resolved using the link at the bottom of the page if your problem has been solved. 🙂