note 69849 deleted from function.show-source by bjori

From: Date: Sat, 23 Sep 2006 09:58:09 +0000
Subject: note 69849 deleted from function.show-source by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-117464@lists.php.net to get a copy of this message
Note Submitter: webmaster at phpshift dot info Reason: in docs ---- Note that show_source() not only gets file source, but displays it as well. If you want to simply get file source and save it in a variable, you should use fopen(). Example: <?PHP $file=fopen("file.php","r"); while(!feof($file)) { $content.=fread($file,4800) } fclose($file); ?> Also note that the coloring will not display in a textarea, I tried it. Don't waste your time on the same stupid things I did.

« previous php.notes (#117464) next »