$file->setPath('http://rdf.dmoz.org/rdf/content.rdf.u8.gz'); //Set path of what file it is downloading. $file->download(); //Start the download $file->extract(); //Extract the file } /****** Content_file/Clean_xml * FUNCTION * Clean the content file! (dirty xml - we don't like it :D) ****/ if (CONTENT_CLEAN) { $clean_xml->cleanFile(FILE_RDF_CONTENT); } /****** Content_file/Parse_and_insert * FUNCTION * Parse and insert the content RDF file into a database ****/ if (CONTENT_PARSE_N_INSERT) { $parse_content->setStartTime(); //Start time $parse_content->setXMLFile(FILE_RDF_CONTENT); //Set what XML file to parse $parse_content->startParse(); //Start parsing the document } //Write to a lastupdate.data file $filecheck->writeLastUpdate(); Basic::printToConsole('FINISHED - Farewell and thanks for the fish! :)'); Database::close(); //Close connection