note 68026 added to function.include

From: Date: Mon, 10 Jul 2006 16:12:07 +0000
Subject: note 68026 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-114642@lists.php.net to get a copy of this message
to pass variables in an include statement, use either include("http://www.mydomain.com/myinclude.php?myvar=xyz"); or $myvar='xyz'; include("/home/mysite/public_html/myinclude.php"); //or your server's equivilent. Remember that the in the first method, the php is parsed, thus leaving functions and classes from the included file unavailable. ---- Server IP: 64.71.164.2 Probable Submitter: 72.64.159.23 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/note/edit/68026 Del: integrated -- http://master.php.net/note/delete/68026/integrated Del: useless -- http://master.php.net/note/delete/68026/useless Del: bad code -- http://master.php.net/note/delete/68026/bad+code Del: spam -- http://master.php.net/note/delete/68026/spam Del: non-english -- http://master.php.net/note/delete/68026/non-english Del: in docs -- http://master.php.net/note/delete/68026/in+docs Del: other reasons-- http://master.php.net/note/delete/68026 Reject -- http://master.php.net/note/reject/68026 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114642) next »