note 69625 added to function.highlight-file

From: Date: Wed, 13 Sep 2006 10:47:43 +0000
Subject: note 69625 added to function.highlight-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-117092@lists.php.net to get a copy of this message
At paul's post. You use your get variables wrong :) Eveything fetched from the address line is a string. So also a 1. You check for 1 and 2, etc, but you should check for '1', '2', etc, since they're all strings, and not integers. And another thing which I just recently experienced: php colour coding depends on your php.ini settings. And I don't mean the colours. If short_open_tags is Off (in php.ini, or htaccess or runtime), colourcoding will NOT act when < ? is used for php code. hightlight_* reads php as the php engine does, so php inside wrong tags (< ? instead of < ?php) isn't php for the colourcode engine, so it's not coloured. Small detail :) but important! If your php code is not in colour, it's most likely because php doesn't evaluate it as PHP. ---- Server IP: 194.109.193.119 Probable Submitter: 217.195.249.69 ---- Manual Page -- http://www.php.net/manual/en/function.highlight-file.php Edit -- https://master.php.net/note/edit/69625 Del: integrated -- https://master.php.net/note/delete/69625/integrated Del: useless -- https://master.php.net/note/delete/69625/useless Del: bad code -- https://master.php.net/note/delete/69625/bad+code Del: spam -- https://master.php.net/note/delete/69625/spam Del: non-english -- https://master.php.net/note/delete/69625/non-english Del: in docs -- https://master.php.net/note/delete/69625/in+docs Del: other reasons-- https://master.php.net/note/delete/69625 Reject -- https://master.php.net/note/reject/69625 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117092) next »