$parse_structure = new ParseXMLStructure(); //Create a new object $parse_content = new ParseXMLContent(); /****** start_script.php/Check_for_updates * FUNCTION * This section download the headers for the structure file. * Then it checks when the file was last modified. * at last it compares it with the users last update. ****/ if (CHECK_FOR_UPDATES) { Basic::printToConsole('CHECKING FOR UPDATES...'); $filecheck->downloadHeaders('http://rdf.dmoz.org/rdf/structure.rdf.u8.gz'); //Download headers from a URL $filecheck->lastModified(); //Run the function that finds when the URL(document) was last modified. $filecheck->lastModifiedCompare(); //Compare the DMOZ file, with your last updated Basic::printToConsole("OK. Ready for an update!\n"); } /****** start_script.php/Structure_file * SECTION * Calls that handle the DMOZ structure file ****/ /****** Structure_file/Download * FUNCTION * Download the structure file ****/ if (STRUCTURE_DOWNLOAD_AND_EXTRACT) { $file->setDownloadSpeed(DOWNLOAD_SPEED); //Set download speed $file->setFilename(FILE_RDF_STRUCTURE);