Carry out the following steps:
A package can depend on database tables just like a block does. The procedure is the same: create a
db.xml
file but this time it's located right in the package directory. Therefore, create a file atpackages/c5book/db.xml
and put the following content in it:<?xml version="1.0"?> <schema version="0.3"> <table name="btLinkChecker"> <field name="cID" type="I"> <key /> <unsigned /> </field> <field name="link" type="C" size="255"> <key /> </field> <field name="linkStatusCode" type="I"></field> <field name="linkStatusName" type="C" size="255"></field> </table> </schema>
Make sure the directory
packages/c5book/jobs
exists. It's where we're going to put our new job file.In that new directory, create a file named
link_checker.php
with the following...