Parsing Includes to Single File

    Date: 02/06/07 (PHP Community)    Keywords: php

    I've been searching around trying to find a util or script that will take a php script, parse all the include, include_once, require, and require_once statements, then create a new file with all the code joined together.

    This:

    include('foo.php');
    include('bar.php');
    echo "Hello World."
    ?>


    To This:

    echo "This is foo.php";
    echo "This is bar.php";
    echo "Hello World.";
    ?>


    Any ideas?

    Thanks.

    Source: http://community.livejournal.com/php/538699.html

« Software licenses || Faster tableExists function »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home