Re: Parse error on a basic call?

From: Date: Sun, 29 Apr 2007 03:20:30 +0000
Subject: Re: Parse error on a basic call?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-254101@lists.php.net to get a copy of this message
On Apr 28, 2007, at 9:08 PM, Brad Sumrall wrote:
$SESSION = get_include_contents'/phpbb/login.php'; I pulled this tright out of the text book. I am trying to pull a phpbb session on an outside page. Any suggestions? Here is the error! Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/c/u/t/cuteirka/html/contest_stories.php on line 2
You've got an unexpected string on line 2 of contest_stories.php. I'm going to assume that get_include_contents is a function? It should probably be: get_include_contents('/phpbb/login.php'); Notice the parens... There is a *real* good reference to the language here: http://www.php.net/manual/en/ The parser tokens are listed at: http://www.php.net/manual/en/tokens.php You can also usually google for T_CONSTANT_ENCAPSED_STRING and php (or whatever the error is) and probably get some good info too. Ed

« previous php.general (#254101) next »