I asked a question yesterday about a problem that Im having with a program that Im trying to build having problems passing array values .
the problem that I am having is that I have an array named $images() that for some bizarre reason wont accept values, however last night as was playing around with the program something very bizarre occurred.
one of the links actually worked, even though the array was still somehow empty? this has led me to wonder if the pages somehow have a way of detecting if the links are being processed and somehow disable link downloading perhaps?
obviously I cant confirm this, and is nothing more than a conspiracy at this point but is this even possible? thanks for your help guys!
The question isn’t very explicit, but, i think you need a PHP HTML Parser!
“A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way!”
Check out this site: http://simplehtmldom.sourceforge.net/
If you use this class, it will be super easy to you parse and grab info from the Received HTML DOM.
PS: this will reduce extremly your code!
Tip: Use
var_export($varname);exit();line by line to discover where is the problem on your code!