Free PHP ODP Script

Summary

  • License
  • Requirements
  • Features
  • Installation
  • Customization
    License

    To use the ODP script completely free of charge, the "Powered by..." link at the bottom of the pages must stay intact.

    You may customize the script design and structure to suit your web site needs.

    You may not distribute this script or accomplish code modifications without permission.

    Top


    Requirements

    The script runs without known bugs with PHP4 and MySQL3.

    Top


    Features

  • Build a complete directory from the ODP/DMOZ data.
  • Completely template-driven: change completely the directory appearance by modifying just the template files.
  • Integrated search engine.
  • Cacheable: speed up your directory caching the ODP data.
  • Theme-based directory: you can set the home of your directory to any ODP category.

    Top


    Installation

  • Decompress the zip file.
  • Modify the /config.php file to set up your desired configuration.
  • Upload the files to your server's root directory or subdirectory.
  • (Only if using cacheability) Chmod /cache directory (or the indicated in the /config.php file) to 777.

    Top


    Customization

    The script is totally template-based. All code returned is editable through the template files: /template_index.php for index and categories and /template_search.php for search results.

    Each template block is saved in a PHP variable, for instance:

    $TEMPLATE["HEADING"] = <<<EOF Here the editable text! EOF;

    Within these variables you can use any HTML code, besides "labels" that will allow you to use dynamic content generated by the script. This labels are presented within brackets, for instance [CATEGORY_NAME].

    Read the template files and look the returned code for better understanding.

    To set up a home category different from the index category of ODP, edit the home_path variable of the /config.php file.

    To enable the cacheability of the directory categories/searches, change the use_cache variable of the /config.php file to TRUE, and choose a cache expiration (default to 30 days) by editing the cache_expiration variable.

    Top