note 51531 added to function.include
| From: | webmaster at phpperu dot com | Date: | Sat, 02 Apr 2005 23:28:42 +0000 |
| Subject: | note 51531 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87380@lists.php.net to get a copy of this message | ||
Similar case of william~AT~phodex.dot.us:
Need to pass session vars to an included file (include file doesnt recognize it in the common way).
Try this:
YOUR MAIN PROGRAM, PASS USR AND TIME SESSION VARS
<?
session_start();
include "http://www.demo.com/headfile.php?xusr=".$xusr."&xtime=".$xtime;
// the headfile will recognize now the session variables $xusr and $xtime
?>
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51531
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51531&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51531&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51531&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51531&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51531&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51531&report=yes
Search -- http://master.php.net/manage/user-notes.php