note 62308 added to function.require-once

From: Date: Fri, 24 Feb 2006 19:00:58 +0000
Subject: note 62308 added to function.require-once
Groups: php.notes 
Request: Send a blank email to php-notes+get-104378@lists.php.net to get a copy of this message
How to use Require_Once with error reporting to include a MySQL Connection file: ------------------------------------------------------------------- $MySQLConnectFile = './inc/MySQL.Class.php'; if ( is_dir ( './inc/' ) ) { $IncIsDir == TRUE; } if ( file_exists ( $MySQLConnectFile ) ) { $MySQLFileExists == TRUE; } if ( $IncIsDir && $MySQLFileExists ) { require_once ( $MySQLConnectFile ) } else { echo '<b>Error:</b> <i>Could not read the MySQL Connection File. Please try again later.'; exit(); } ---------------------------------------------------------------------- ---- Server IP: 194.109.193.119 Probable Submitter: 81.59.13.228 ---- Manual Page -- http://www.php.net/manual/en/function.require-once.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+62308 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+62308&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+62308&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+62308&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+62308&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+62308&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+62308&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+62308&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+62308&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104378) next »