Boileris Posted April 3, 2005 Report Posted April 3, 2005 :unsure: kaa var sataisiit, lai piemeeram: $login = "losis"; $info = "liels zaabaks"; ierakstaas failaa users.php $user['losis']="liels zaabaks"; luudzu, paliidziet pats netieku gudrs kaa lai to izdatra!
bubu Posted April 3, 2005 Report Posted April 3, 2005 <?php $login = "losis"; $info = "liels zaabaks"; $f = fopen('users.php', 'w'); fwrite($f, '$user[\''.$login.'\']="'.$info.'"'); fclose($f); ?> Neaizmirsti tikai pārliecināties (tb pārbaudīt), ka $login nesatur ' simbolu un $info " simbolu.
Boileris Posted April 3, 2005 Author Report Posted April 3, 2005 liels paldies, operatiivi gan atildeeja :)
Recommended Posts