note 71578 deleted from function.highlight-string by nlopess

From: Date: Thu, 07 Dec 2006 18:09:14 +0000
Subject: note 71578 deleted from function.highlight-string by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-120389@lists.php.net to get a copy of this message
Note Submitter: hixe at gmail dot com ---- Try with this : <?php highlight_string("<?php switch ($"."_GET['showcode']): case 'signature': highlight_file('signature.php'); break; case 'poll': highlight_file('poll.php'); break; case 'form': highlight_file('form.php'); break; default: echo 'No code found, please go back and try again'; endswitch; ?>"); ?> php try to "get" the variable $_GET['showcode'] and the error is due to the ' between the " ".

« previous php.notes (#120389) next »