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;"...
ok thanks i will give that a try and see how it goes. i will post back a bit later and let you know if it was a success :)
thanks again for the help much appreciated
the script i have written is for a global banlist for the p2p community. so many people have complained about pedophiles sharing child porn or looking for such files that i felt compelled to do something so i wrote a global IP banlist that can be used with PG2 or protowall and that IPs can be...
i understand what you are saying and thanks for your reply.
the reason for changing the value of box2 is because the php script i am using refers to it several times. i will attemt to explain how it is supposed to work.
when someone clicks submit the php script would check the contents of box2...
hi peeps im having a small problem with changing the value of a input box using php.
in my html code i have this which i think is java
document.myform.box1.value=''
is there a way to do the same thing in php? i am trying to change the value of box1 so its the same as box2 if nothing is...
its ok it was my mistake, i placed the function within a foreach loop but when i moved it out of the loop it worked.
i think this topic is now solved as everythig seems to be working tip-top but i couldnt have done it without your help. thank you for the help i am very greatful
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.