note 71578 added to function.highlight-string
| From: | hixe at gmail dot com | Date: | Wed, 06 Dec 2006 16:46:05 +0000 |
| Subject: | note 71578 added to function.highlight-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120343@lists.php.net to get a copy of this message | ||
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 " ".
----
Server IP: 195.221.21.36
Probable Submitter: 88.163.232.29
----
Manual Page -- http://www.php.net/manual/en/function.highlight-string.php
Edit -- https://master.php.net/note/edit/71578
Del: integrated -- https://master.php.net/note/delete/71578/integrated
Del: useless -- https://master.php.net/note/delete/71578/useless
Del: bad code -- https://master.php.net/note/delete/71578/bad+code
Del: spam -- https://master.php.net/note/delete/71578/spam
Del: non-english -- https://master.php.net/note/delete/71578/non-english
Del: in docs -- https://master.php.net/note/delete/71578/in+docs
Del: other reasons-- https://master.php.net/note/delete/71578
Reject -- https://master.php.net/note/reject/71578
Search -- https://master.php.net/manage/user-notes.php