>mam strucny dotazek - jaky prikaz mam pouzit, kdyz chci >cely soubor (napriklad clanek.txt) nacist do promnene, >abych nasledne pomoci NL2BR($promnena) vytvoril cast >zdroje bez toho, aniz bych musel ty HTML tagy davat primo >do toho souboru. Cili potrebuju, abych ... php ma takovej sikovnej a dobre udelanej html manual, kde lze ZAKLADNI veci a fce nalezt behem nekolika sekund. takhle je to imho o hodne pomalejsi... :) ------------------------------------------------------------ string fread(int fp, int length); fread() reads up to length bytes from the file pointer referenced by fp. Reading stops when length bytes have been read or EOF is reached, whichever comes first. // get contents of a file into a string $filename = "/usr/local/something.txt"; $fd = fopen( $filename, "r" ); $contents = fread( $fd, filesize( $filename ) ); fclose( $fd ); ------------------------------------------------------------ Bye, Spock.
This archive was generated by hypermail 2.1.2 : 04. 09. 2001, 00:58 CEST