File Joiner 'PHP class' now you can join the online files

Discussion in 'PHP' started by live.co.uk, May 14, 2010.

  1. #1
    This class can be used to join files retrieve via HTTP into a single file.
    It takes a list of HTTP URLs and retrieves the data from the specified locations.
    The class gathers the retrieved data and save it to a single local file.
    see in action example from its wiki
    to Get the files you should push the files in array like that:
    $fileList = array();
    $fileList[] = 'http://www.ackrentals.net/css/reset.css';
    $fileList[] = 'http://www.ackrentals.net/css/960_24_col.css';
    PHP:
    and then you should start new FileJoiner
    $joiner = new FileJoiner($fileList);
    PHP:
    then you have option enable you to compress the file by delete any Unhelpful comments
    $joiner->compression  = true;
    PHP:
    then you should determine the file that will join it some thing like this
    $joiner->join('css/allstyles.css');
    PHP:
    and at end you should unset the variables
    unset($joiner);
    PHP:
    download it
    http://www.jooria.com/projects/view?project=977&m=downloads
    PHP:

     
    live.co.uk, May 14, 2010 IP
  2. Christian Little

    Christian Little Peon

    Messages:
    1,753
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You do realize that fopen could do this already right? So can CURL, and file, and a few other libraries that are included in PHP already.
     
    Christian Little, May 14, 2010 IP
  3. live.co.uk

    live.co.uk Banned

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes and that is not lib its just a class :)
     
    live.co.uk, May 16, 2010 IP