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

From: Date: Tue, 19 Sep 2000 12:11:40 +0000
Subject: AW: [PHP-WIN] simple sample...
Groups: php.windows 
Request: Send a blank email to php-windows+get-2732@lists.php.net to get a copy of this message
OK, its much simpler than mine =8) Mike -----Ursprüngliche Nachricht----- Von: Asendorf, John [mailto:JAsendorf@lcounty.com] Gesendet: Dienstag, 19. September 2000 14:13 An: Michael Rudel; 'eL___'; php-windows@lists.php.net Betreff: RE: [PHP-WIN] simple sample... There's always the very simple ------- <pre> <?PHP include ("D:\\InetPub\\wwwroot\\dir\\dir\\text_file.txt"); ?> </pre> ------- This works really well for preformatted text files that you don't want to screw with. John --------------------- John Asendorf - jasendorf@lcounty.com Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 > -----Original Message----- > From: Michael Rudel [mailto:Michael.Rudel@in-gmbh.de] > Sent: Tuesday, September 19, 2000 7:07 AM > To: 'eL___'; php-windows@lists.php.net > Subject: AW: [PHP-WIN] simple sample... > > > 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 > > -- > 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 > -- 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 (#2732) next »