PHP Classes

File: includes/functions.inc.php

Recommend this page to a friend!
  Classes of Guillermina Gonjon   Simple PHP Blog without a Database   includes/functions.inc.php   Download  
File: includes/functions.inc.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Simple PHP Blog without a Database
Display blog articles on Web pages
Author: By
Last change:
Date: 3 years ago
Size: 328 bytes
 

Contents

Class file image Download
<?php
/*
 * @param: file
 * @return: string if false and object if true.
 * Check if file exists, or send a error message.
*/

function check($file)
{
        if(
file_exists($file))
        {
                 require_once(
$file);
        }
        else
        {
                echo
"$file was not found.<br/>\n";
        }
}