sorry my mistake, i guess im more tired than i thought. here is the code below:
function writeToFile($toKeep)
{
global $file;
$w = file_put_contents($file, implode("\n", $toKeep));
if ($w === false) { return false; } else {return true;}
}
i believe the line below is what writes to the file:
fwrite($fa, $_REQUEST['reason3'] . ":" . $ip33 . "." . $ip34 . "." . $ip35 . "." . $ip36 . "-" . $ip37 . "." . $ip38 . "." . $ip39 . "." . $ip40 . "\r\n");
maybe that is whats wrong? i've been looking at this code for so long now and cant...
hi, did you have any success with the code? i have been trying everything i know but cant seem to fathom it out.
From what i know there are several people we have who has been submitting IPs to our lists and they have told me some use Windows and some use Linux and i know some use Firefox and...
here is the code for adding to the text file:
// do submit changes (antiagent-list add)
if(isset($_REQUEST["subm5"]))
{
if ( !$userdata['session_logged_in'] )
{
echo '<meta http-equiv="refresh" content="1;url=login.php">';
message_die(GENERAL_MESSAGE, "<span...
i have just noticed something, i should have added more lines before testing so i did just that, i cleared the text file and added the following:
TEST:0.0.0.0-0.0.0.0
TEST:0.0.0.1-0.0.0.1
TEST:0.0.0.2-0.0.0.2
TEST:0.0.0.3-0.0.0.3
TEST:0.0.0.4-0.0.0.4
i then proceeded to remove the line...
ok the results are now different, if i had the example below:
reason info:192.168.0.1-192.168.0.1
reason info:127.0.0.1-127.0.0.1
test reason:10.0.0.1-10.0.0.1
and if i delete the middle line i get the results below:
reason info:192.168.0.1-192.168.0.1
test reason:10.0.0.1-10.0.0.1o
also it...
I am having a problem with removing a line from a text file. I will attempt to explain the problem the best i can. When i use the page i have to remove selected IPs from a list within a text file it deletes the line ok but it will add an odd character (which cant be copied) to the end of the...
that works 100% perfect, thanks Dan your a true gentleman. i couldnt think of any other way to do it but your version also saves on bandwidth too, thanks again.
This topic seems to be solved now :)
thanks for your help guys its much appreciated but i think i found another solution, not sure if its unauthordox to do it this way but it seems to work any how :)
this is the code i used which does seem to do the job.
<select name="language">
<option selected="Language">Translate...
Hi, i have aquired some useful code that i'd love to have added to my webpage however it will only show as links seperated by ' - ' i was wondering if anyone would know how i could change it so that it would appear in a dropdown menu instead? the code is below:
<p style="text-align: center;"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.