Hello,
I usually send the results of my webforms to an email or to
a database and I have no problem.
Now I have a problem because I have to write on a file the $config variable entered on my web form .
The webform should send/write the results ($config varialble) to config.php file .
Exactly it should write the value inside the $alpha variable on line 25 of that file .
Any idea to do that ? Is it possible to do that (without storing before the variable on a db) ?
Thank you
Graziano
webform must write results on a file , how to do
Moderator: General Moderators
You can't exactly know the line but if you know the bytesize of line 25 you could use
Code: Select all
<?php
$fp = fopen("config.php","w+");
fseek($fp,[i]bytesize[/i]);
fwrite("[i]WHATEVER YOU WANT TO WRITE[/i]");
fclose($fp);
?>