note 28055 added to function.include
| From: | madhombre at yahoo dot nospam dot com | Date: | Tue, 31 Dec 2002 04:25:51 +0000 |
| Subject: | note 28055 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41505@lists.php.net to get a copy of this message | ||
This will prevent a few headaches for a few beginners.
When including a file in a script you have 2 ways to go URI or full path. Now for the basic stuff
that it is fine but when looking to do complex stuff there are a few limitations to URI based
includes.
1) You can't return a variable from the include
2) You can't change and update variables and have them usable after the include
3) Session variables will not be set
So if, like me, your insane and want to do crazy stuff, use the real path if possible.
--
http://www.php.net/manual/en/function.include.php
http://master.php.net/manage/user-notes.php?action=edit+28055
http://master.php.net/manage/user-notes.php?action=delete+28055
http://master.php.net/manage/user-notes.php?action=reject+28055