After connecting to my database, I use the following to make sure the links are working properly:
use LWP::Simple;
while(my ($id, $Name, $Cat, $Type, $Players, $Object, $GameURL) = $sth->fetchrow_array()) {
if(head($GameURL)){
} else {
print "Not Working: $GameURL<br>"
}
}
However, of the 430 links in my database, it says that 183 of them arent working. I know this isnt right because I test the links out myself and they work. I know this method is kind of simple, is there a better way to do this with more accurate results?
JoeM6
JPMJR11@aol.com
use LWP::Simple;
while(my ($id, $Name, $Cat, $Type, $Players, $Object, $GameURL) = $sth->fetchrow_array()) {
if(head($GameURL)){
} else {
print "Not Working: $GameURL<br>"
}
}
However, of the 430 links in my database, it says that 183 of them arent working. I know this isnt right because I test the links out myself and they work. I know this method is kind of simple, is there a better way to do this with more accurate results?
JoeM6
JPMJR11@aol.com