note 70108 added to function.include-once

From: Date: Tue, 03 Oct 2006 17:07:46 +0000
Subject: note 70108 added to function.include-once
Groups: php.notes 
Request: Send a blank email to php-notes+get-117987@lists.php.net to get a copy of this message
a simple & optimized way to include once function my_include_once($path) { if ( !defined($path) ) { include($path); defined($path, 1); } } // sample my_include_once("/home/www/class/object.php"); ---- Server IP: 66.163.161.117 Probable Submitter: 221.126.150.208 ---- Manual Page -- http://www.php.net/manual/en/function.include-once.php Edit -- https://master.php.net/note/edit/70108 Del: integrated -- https://master.php.net/note/delete/70108/integrated Del: useless -- https://master.php.net/note/delete/70108/useless Del: bad code -- https://master.php.net/note/delete/70108/bad+code Del: spam -- https://master.php.net/note/delete/70108/spam Del: non-english -- https://master.php.net/note/delete/70108/non-english Del: in docs -- https://master.php.net/note/delete/70108/in+docs Del: other reasons-- https://master.php.net/note/delete/70108 Reject -- https://master.php.net/note/reject/70108 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117987) next »