note 69625 deleted from function.highlight-file by bobby

From: Date: Wed, 13 Sep 2006 14:26:34 +0000
Subject: note 69625 deleted from function.highlight-file by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-117106@lists.php.net to get a copy of this message
Note Submitter: rudiedirkx ---- 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.

« previous php.notes (#117106) next »