Jump to content
php.lv forumi

txt failu parsute


ecoc
 Share

Recommended Posts

Scripts man ir , kad parsuta txt failus , bet , ka var uztaisit kad nospiez submit pogu , pariet uz proccest.php un paradas Teksts paldies , par dziesmu . Tagad man vienkārši tuks ekrans rādas.

 

Rekur proccest.php :

<?php 
if ($_SERVER['REQUEST_METHOD'] == 'POST') { 
$field1 = $_POST['field1']; 
$field2 = $_POST['field2']; 
$f=fopen("user_songs.txt","a"); 
fwrite($f,"Nickname: $field1 | $Download link: field2|\r\n"); 
fclose($f); 
} 
?>

Edited by ecoc
Link to comment
Share on other sites

Viens vecs mans posts šajā pat forumā:

 

 

Varbūt der gūgles spredšīts šim uzdevumam.

Link to comment
Share on other sites

Ja tagad cita problema , es uzliku to scriptu uz hostinga bezmaksas , bet lieta tada ka neparadas text fails tur . Nekadus errorus nemat . Bet kad testeju uz localhost uz manas kastes viss gaja !

Edited by ecoc
Link to comment
Share on other sites

 Share

×
×
  • Create New...