Pradinis
Pagalba
Užsisakyk!
- Reklamą
 - Hostingą
 - El. pašto dėžutę
 
Užsisakyk!
Įrankiai
Pasidalink
- Visos temos
 
| Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Kiti PHP, HTML, MySQL klausimai | 
| Autorius: FuturesF1re | Peržiūrų: 1705      ![]()  | 
| 
		FuturesF1re Narys Kapitonas Pranešimai: 847 Įstojęs: 2007 Spa. 11 15:10:03  | |
| norejau paklausti koks php kodas yra kad suvedus automatiskai isirasytu i txt? | 
|
| 
		Peacemaker Narys Ekspertas Pranešimai: 3085 Įstojęs: 2007 Lie. 31 17:07:59  | |
| <?php $filename = 'test.txt'; $somecontent = "Add this to the file\n"; // Let's make sure the file exists and is writable first. if (is_writable($filename)) { // In our example we're opening $filename in append mode. // The file pointer is at the bottom of the file hence // that's where $somecontent will go when we fwrite() it. if (!$handle = fopen($filename, 'a')) { echo "Cannot open file ($filename)"; exit; } // Write $somecontent to our opened file. if (fwrite($handle, $somecontent) === FALSE) { echo "Cannot write to file ($filename)"; exit; } echo "Success, wrote ($somecontent) to file ($filename)"; fclose($handle); } else { echo "The file $filename is not writable"; } ?> 'test.txt'; keiti į savo. Kiekvienam žmogui yra skirta dovana, tik ne kiekvienas sugeba ją atrasti. Redagavo Peacemaker  2009 Vas. 11 14:02:36  | 
|
| 
		FuturesF1re Narys Kapitonas Pranešimai: 847 Įstojęs: 2007 Spa. 11 15:10:03  | |
| o is kur gave sia info? | 
|
| 
		Peacemaker Narys Ekspertas Pranešimai: 3085 Įstojęs: 2007 Lie. 31 17:07:59  | |
| Internete tokios medžiagos kiek tik nori.  Kiekvienam žmogui yra skirta dovana, tik ne kiekvienas sugeba ją atrasti.  | 
| Peršokti į forumą: |