in reply to Re: Using GET in a loop
in thread Using GET in a loop
Each time the (global or local) variable $content gets a new value assigned (via GET), the content of the variable is not replaced by the new value (content of the newly retrieved website) but it is appended.
This is the case even when I explicitly "empty" it ($content= " "). Apparently, GET uses an internal variable to store the information retrieved, which is appended. Thus, each time the loop is executed $content simply gets bigger and bigger as this internal variable adds the content of newly retrieved webpages to all previously retrieved ones.
Thank you for your response!
|
|---|