Guys, guys, No quarrel please! The website of mr. Wong works fine. The first time it take a long time to open and I falsly thought the site didn't work. But on the other site i know what html is and no the list i want has nothing to do with html!
The code I use is not mine, it is a hangman game wich I want to write a admin page for So here's some code: ******************************************************************** # list of words (phrases) to guess below, separated by new line $list = "BUITENSPEL STAAN IEMAND BUITENSPEL ZETTEN BLOED AAN DE PAAL WILLEN ELKAAR DE BAL TOESPELEN DE BAL IS ROND DE BAL TERUGSPELEN OP HET VERKEERDE BEEN ZETTEN IN EIGEN DOEL SCHIETEN VOOR OPEN DOEL SCOREN VOOR OPEN DOEL MISSEN GELE KAART KRIJTLIJNEN TREKKEN EEN SCHOT VOOR OPEN DOEL VLIEGENDE KIEP EEN VOORZET GEVEN AAN DE ZIJLIJN STAAN AFFLUITEN BOBO EEN-TWEETJE NATRAPPEN PANIEKVOETBAL PATATGENERATIE TACKELEN"; $additional_letters = " -.,;!?%&0123456789"; # extra characters given in words; '?' not work ********************************************************************** This is where the var's $list and $additional_letters are filled. The file is called hangman.php. I want to open this file, put the words into a html file so that someone can change them and write them back. That's it. Nico > -----Oorspronkelijk bericht----- > Van: John Nichel [mailto:[EMAIL PROTECTED] > Verzonden: dinsdag 3 februari 2004 21:57 > Aan: [EMAIL PROTECTED] > Onderwerp: Re: [PHP] New lines > > > John W. Holmes wrote: > > > From: "John Nichel" <[EMAIL PROTECTED]> > > > >>If all the OP wants to do is echo out the file, then why not just use > >>the file() function. Then each line is loaded up into an array element, > >> and you've saved yourself a bit of cpu. And your example above > >>doesn't address the OP's claim that it is not handling new lines. > > > > > > file_get_contents() would be the fastest. And once the OP learns the > > difference between TEXT and HTML, he'll realize he just needs to use the > > nl2br() function. :) > > > > ---John Holmes... > > > > Yeah, Jason suggested that (nl2br), and was told by the OP that he was > wrong, so the realization may take more time than expected. ;) > > -- > By-Tor.com > It's all about the Rush > http://www.by-tor.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php