note 123347 deleted from function.file-get-contents by cmb

From: Date: Fri, 16 Nov 2018 09:16:19 +0000
Subject: note 123347 deleted from function.file-get-contents by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-209716@lists.php.net to get a copy of this message
Note Submitter: David Spector ---- Every once in a while I use file_get_contents to read in a local PHP file, and am surprised when the result is not false, yet cannot be seen on the screen. This strangeness is caused by the fact that displaying a PHP file sends the "<?php" and following characters to the browser, which then responds by hiding the PHP code. To verify this, use the "view source" or similar command in your browser to see the output more directly. The displayed PHP code will then appear in the source file output window. One simple workaround is to display the local PHP file in a <textarea> element.

« previous php.notes (#209716) next »