Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by ruler1

  1. ruler1

    Delete line from txt issue

    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;} }
  2. ruler1

    Delete line from txt issue

    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...
  3. ruler1

    Delete line from txt issue

    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...
  4. ruler1

    Delete line from txt issue

    the writetofile code is posted just before your last post. i think to see the odd char you have to open the text file in notepad.
  5. ruler1

    Delete line from txt issue

    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...
  6. ruler1

    Delete line from txt issue

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

    Delete line from txt issue

    file uploaded
  8. ruler1

    Delete line from txt issue

    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...
  9. ruler1

    Delete line from txt issue

    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...
  10. ruler1

    dropdown menu help

    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 :)
  11. ruler1

    dropdown menu help

    <select name="language"> <option selected="Language">Translate Language</option> <option onselect="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=en%7Car&hl=en&ie=UTF8'); return false;">English to Arabic</option> <option...
  12. ruler1

    dropdown menu help

    hmm this is strange, it works with firefox but not with IE? i tried changing it to onselect and stil the same thing, maybe i am missing something?
  13. ruler1

    dropdown menu help

    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...
  14. ruler1

    dropdown menu help

    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;"...
  15. ruler1

    change text value

    that worked a charm its all working now 100% :) thanks for the help i am very greatful.

Part and Inventory Search

Back
Top