Giter Club home page Giter Club logo

light-php-cdn's Introduction

LIGHTphpCDN

This project is an light weight mirror manage system wrote in php.

##Why open this project?

Many Server on the Internet is fast,but they can only use php as the server script. You can't use the existing system to manage them if you want to use them as your file server. You have to use FTP to send file between them.So I just make this little tool to send data between servers.

##Quick start. Coming soon. ##Manual ###Requirement A php environment is required , at least PHP 4.5. Some PHP modules is needed ,such as mcrypt. ###Setting up

Upload the file 'CDN.php' and 'CDN.inc.php' to your server.Set the parameter in the CDN.inc.php.

Here are all the parameters.

  • ACCEPT_HOST - Only the HTTP Repuest with this host name would be accepted
  • IS_ROOT_SERVER - Set to be true if this server is the root server.
  • SERVER_KEY - The key for AES in this server.
  • SOURCE_SERVER_PATH - The path for father server.It will be ignored at the root server.
  • SOURCE_SERVER_HOST - The Host for father server.This server will use this host name to visit father server.
  • SOURCE_SERVER_KEY - The AES key for father server.
  • Enable_Log - Set to be true if you want to log events.

After editing your inc file, you should create a directory called 'data'.Here will be the place where putting your files.

If all the tasks is done, you should be able to visit the page and use the task parameter to do an task.You should do the task 'add' first.

###Tasks

Here are the tasks.

  • list - List the files in this server , this task should only called by the child server.
  • get - Get an file, This task should only called by the child server.
  • add - Refresh the cache file.Just like the command in git.
  • clone - clone the father server.This command will be called automatically by the root server.
  • push - Call the clone task in all the child server.
  • help - Useless help info XDD.
##Licence Apache License 2.0 Just use.Have fun! ##Author
  • [email protected]
  • light-php-cdn's People

    Contributors

    manageryzy avatar

    Stargazers

     avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

    Watchers

     avatar  avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.