Public feed #890314

Untitled

public text v1 · immutable
Raw Edit
·published 2008-02-03 17:20 UTC
rendered paste body
<?php

function get_include_contents($filename) {
    if (is_file($filename)) {
        ob_start();
        include $filename;
        $contents = ob_get_contents();
        ob_end_clean();
        return $contents;
    }
    return false;
}

?>

Source: PHP.net include article.