note 69849 added to function.show-source

From: Date: Sat, 23 Sep 2006 03:14:51 +0000
Subject: note 69849 added to function.show-source
Groups: php.notes 
Request: Send a blank email to php-notes+get-117460@lists.php.net to get a copy of this message
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. ---- Server IP: 216.194.113.175 Probable Submitter: 71.54.40.75 ---- Manual Page -- http://www.php.net/manual/en/function.show-source.php Edit -- https://master.php.net/note/edit/69849 Del: integrated -- https://master.php.net/note/delete/69849/integrated Del: useless -- https://master.php.net/note/delete/69849/useless Del: bad code -- https://master.php.net/note/delete/69849/bad+code Del: spam -- https://master.php.net/note/delete/69849/spam Del: non-english -- https://master.php.net/note/delete/69849/non-english Del: in docs -- https://master.php.net/note/delete/69849/in+docs Del: other reasons-- https://master.php.net/note/delete/69849 Reject -- https://master.php.net/note/reject/69849 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117460) next »