note 57345 rejected from function.session-start by mazzanet

From: Date: Sat, 01 Oct 2005 05:08:55 +0000
Subject: note 57345 rejected from function.session-start by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-96109@lists.php.net to get a copy of this message
Note Submitter: php dot net at callerid dot de ---- In a special circumstance, the url_rewriting doesn't work properly. This works: <?php session_start(); $source = <<<EOQ echo "<a href="index.html">Testlink</a>"; EOQ; ob_start(); eval($quellcode); $content = ob_get_contents(); ob_end_clean(); echo $content; ?> And produce: <a href="index.html?PHPSESSID=...">Testlink</a> This won't work: <?php $source = <<<EOQ session_start(); echo "<a href=\"index.html\">Testlink</a>"; EOQ; ob_start(); eval($source); $content = ob_get_contents(); ob_end_clean(); echo $content; ?> And you get: <a href="index.html">Testlink</a>

« previous php.notes (#96109) next »