note 61332 added to function.include

From: Date: Tue, 31 Jan 2006 18:44:41 +0000
Subject: note 61332 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-102781@lists.php.net to get a copy of this message
I just found something out the hard way, maybe I can make sure some others do not have to: when you use include/require(_once) to add a file that contains functions you want to use in the main document, you must make sure the file doesn't have the php extension This is because php contents are first evaluated and then included, once evaluated all of te scripts have disappeared ---- Server IP: 64.246.30.37 Probable Submitter: 81.205.73.76 ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61332 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61332&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61332&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61332&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61332&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61332&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61332&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61332&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61332&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102781) next »