AW: [PHP-WIN] simple sample...

From: Date: Tue, 19 Sep 2000 11:07:27 +0000
Subject: AW: [PHP-WIN] simple sample...
Groups: php.windows 
Request: Send a blank email to php-windows+get-2730@lists.php.net to get a copy of this message
Hi eL ! ... just make a HTML-Textarea and in that area use PHP-Code with fopen like this: <TEXTAREA> <?php if ( $fp = fopen( "your File (can be an URL)", "r+" ) ) { while ( ! feof( $fp ) ) { $line = fgets( $fp, 1024 ); echo $line; } fclose( $fp ); } else echo "\n<BR> ERROR FOPENing (\"Your File\")! <BR>\n"; ?> </TEXTAREA> NJO¥ !! Greetinx, Mike (Germany) -----Ursprüngliche Nachricht----- Von: eL___ [mailto:e-line@chello.nl] Gesendet: Dienstag, 19. September 2000 11:13 An: php-windows@lists.php.net Betreff: [PHP-WIN] simple sample... Can someone send me the syntax of an example where a textdocument is read into a (p)html page ? Where you define an area and then have the textfile you have uploaded to the server in the same path be read ion there.. Rela simple.. Or where do i find how to read from external files ? (mind : not databases) Thank you very much i hope to receive a reply.. eLine. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#2730) next »