Jump to content
php.lv forumi

kaa var ierakstiit failaa


Boileris

Recommended Posts

<?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.

Link to comment
Share on other sites

×
×
  • Create New...