Gossamer Forum
Home : Products : Gossamer Links : Discussions :

nph-verify.cgi to check other fields than URL ?

Quote Reply
nph-verify.cgi to check other fields than URL ?
Hi everybody,

I wonder if Links SQL is able to check links that are not in the URL column ?

I searched the forums for hours but didn't find the answer.

I would like Links SQL to check how reliable are http/ftp links, but in a different column than URL. Is it possible to do this ? How can I do this ?

Thanks a lot for your answer Smile !!!

Regards,

Gautier.
Quote Reply
Re: [Gautier] nph-verify.cgi to check other fields than URL ? In reply to
Most likely Alex would have to answer this, but it would be a neat update to be able to pass in the URL parameter and the "Status" parameter, where-by the program will check the value in the field URL and put the result code into the Status field.

The defaults would of course be URL and Status <G>


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] nph-verify.cgi to check other fields than URL ? In reply to
Dear Pugdog,

Now I understand why I didn't find the answer in the forums Wink.

It would be great to do this little modification as we could, for example, check every week with Crond, if a http/ftp URL is reliable or not, even if it is not in the column URL.

Thanks for your answer Pugdog Smile.

Regards,

Gautier.
Quote Reply
Re: [Gautier] nph-verify.cgi to check other fields than URL ? In reply to
Hi,

You would want to make the change in verify_child.pl:

$db = $DB->table ('Links');
$sth = $db->select ( $cond, ['ID', 'URL'] );

Basically change 'URL' to another field and it will verify that field.

To change the field that holds the status, you'd want to edit nph-verify.cgi (around line 257):

$link_db->update ( { Status => $status, Date_Checked => $TODAY }, { ID => $key } );

change 'Status =>' to a different field.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] nph-verify.cgi to check other fields than URL ? In reply to
Smile MANY THANKS FOR YOUR REPLY ALEX !!!

It's 11h43pm here in France I will see this tomorrow.

Waiting for reading you about Links SQL on the Forum, I believe you know what I mean saying this Wink.

Best Regards from France,

Gautier.