Guest Smok3RS Odesláno: 3. Březen, 2010 Share Odesláno: 3. Březen, 2010 Takže prinášam vám TUT <?php //začneme php kod $subor = "text.txt"; //Vytvorte si v poznamkovom bloku || text.txt $textik = file_get_contents($subor); echo '' . $textik . ' '; //html kod + php //Vypíše sa nám obsah súboru na stránku ?>//zakončime php kod Link to comment Share on other sites More sharing options...
TWeak 5 Odesláno: 3. Březen, 2010 Share Odesláno: 3. Březen, 2010 Hah dikex brácho. Link to comment Share on other sites More sharing options...
Guest Smok3RS Odesláno: 3. Březen, 2010 Share Odesláno: 3. Březen, 2010 nemás začo nudil som sa ale už idem robiť mod Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 8. Březen, 2010 Share Odesláno: 8. Březen, 2010 trosku blbost ne ? <? $cesticka = "text.txt"; //Vytvorte si v poznamkovom bloku || text.txt $openid = fopen($cesticka, "r"); echo" " .fread($openid, filesize($cesticka))." //Otvorí sa nám text "; fclose($open_subor); //Zatvorý súbor ?> $open_subor = fopen($cesticka, "w"); //Otvorí nám daný súbor fwrite($open_subor); //Otvorí nám text ktory je v text.txt -> smazano ..fwrite a -> //Otvorí nám text ktory je v text.txt\\ ? Link to comment Share on other sites More sharing options...
Guest Smok3RS Odesláno: 8. Březen, 2010 Share Odesláno: 8. Březen, 2010 prečo ? "scratch" Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 8. Březen, 2010 Share Odesláno: 8. Březen, 2010 naco tam mas fwrite a dalsi fopen s typem "w" ? Link to comment Share on other sites More sharing options...
Guest Smok3RS Odesláno: 8. Březen, 2010 Share Odesláno: 8. Březen, 2010 Lol, aha tak diki no.. Link to comment Share on other sites More sharing options...
cniry 0 Odesláno: 9. Březen, 2010 Share Odesláno: 9. Březen, 2010 Takže prinášam vam tu druhy TUT <? $cesticka = "text.txt"; //Vytvorte si v poznamkovom bloku || text.txt $openid = fopen($cesticka, "r"); echo" " .fread($openid, filesize($cesticka))." //Otvorí sa nám text "; $open_subor = fopen($cesticka, "w"); //Otvorí nám daný súbor fwrite($open_subor); //Otvorí nám text ktory je v text.txt fclose($open_subor); //Zatvorý súbor ?> Tu vykopávku jsi vyhrabal kde? To se už pár let nepoužívá pro čtení obyčejného souboru. na to jsou v php daleko lepší funkce... Nauč se php než tu budeš psát návody, prosím tě o to... Na ty sračky se nedá koukat... <?php $soubor = "text.txt"; //Vytvorte si v poznamkovom bloku || text.txt $text = file_get_contents($soubor); echo '' . $text . ' '; //Vypíše se nám obsah souboru na stránku Link to comment Share on other sites More sharing options...
Guest Smok3RS Odesláno: 9. Březen, 2010 Share Odesláno: 9. Březen, 2010 ja vim ja psal to rychle a jsem za pomel <?php Link to comment Share on other sites More sharing options...
cniry 0 Odesláno: 9. Březen, 2010 Share Odesláno: 9. Březen, 2010 ja vim ja psal to rychle a jsem za pomel <?php co to kdákáš? podívej se pořádně na ten tvůj a můj kód. to není jen o <?php ale o file, fread, fclose... tyhle funkce si nech na generátor statusů sampa a ne na čtení textového souboru... Link to comment Share on other sites More sharing options...
Guest Smok3RS Odesláno: 9. Březen, 2010 Share Odesláno: 9. Březen, 2010 No ok Link to comment Share on other sites More sharing options...
TWeak 5 Odesláno: 9. Březen, 2010 Share Odesláno: 9. Březen, 2010 Jakože když jsem poprve viděl ten kod od Smokeho byl to v pohodě. Ale jak přišel cniry a ukazal lepší spusob hned jsem doma. A prej smoke umis PHP na 32% Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now