$content gets appended, that is the problem. Every time the loop is executed, $content gets bigger and bigger as the newly retrieved website is added to the previously retrieved websites. It still does so when I "empty" $content ($content= " ";) every time before retrieving a new website and use a local $content variable.
Thus, my problem is not with the output of the data into the file but with the input.
Thank you for your rapid reaction!
In reply to Re^2: Using GET in a loop
by New Novice
in thread Using GET in a loop
by New Novice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |