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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. cleansedbb

    checking for certian words but allowing others?

    that worked perfectly Thank You!
  2. cleansedbb

    checking for certian words but allowing others?

    I'm working on a word filter for my site but I want to delete bad words such as a$$ but I want to allow the word assistant but so far with preg_replace i'm getting istant as it's removing the other anyone have any suggestions?? Thank You!
  3. cleansedbb

    questions regarding referer

    yes there is a session with a phpsessID assigned. I will make it compare the data in the database with the login. Thank you both after playing with this I figured I might have to use the sessions.
  4. cleansedbb

    questions regarding referer

    I am writing a chat script and wanted to avoid a problem I had with my old cgi chat called "ghosting". I have the script to where you must login with a phpsessionID and it gets your referer. lately though because of norton etc I am not getting a referer? other than a referer is there a way to...
  5. cleansedbb

    deleting duplicate in string?

    also wondering how to check for word pairs or groups. i.e. "this is a test" instead of just looking to see if the previous word matches. Thanks again.
  6. cleansedbb

    deleting duplicate in string?

    I need help deleting duplicates but I want to allow only one dupe. i.e. very very is allowed but very very very isnt? this is what I'm using so far. and it deletes the dupe but it deletes all dupes so I cant have a double. $FORM{'message'} =~ s/(\b\S+)(\s+\1\b)+/$1/g; Thanks for any input
  7. cleansedbb

    Linux File Server with (2) 40 Gig - Raid 1 Drives - {Partition Help}

    I usually add in a /tmp drive of 512 (since I do a lot of testing etc) and I have a 1000 for /var/log/ as for setting up raid, if you use druid it has the option of a software raid.
  8. cleansedbb

    checking for https

    Ignore me, it's 2:30am and I wasnt thinking. I got it working thanks!
  9. cleansedbb

    checking for https

    how would I call the function? <body onLoad=requireSSL();> ??? thanks for the info btw
  10. cleansedbb

    checking for https

    is there an easy way to check for https and if it's not redirect to a login page? what I'm trying to do is I have a user login that is https://site.com/login.php after that it takes them to https://site.com/securearea.php and I want to prevent them from going to...
  11. cleansedbb

    javascript submit?

    thanks! I've been doing things in php and just starting on javascripting!
  12. cleansedbb

    javascript submit?

    I have a form that has a update and log off button. I changed the button from <input type=submit name=logoff value=logoff> to <input type=submit name=logtimer value=logoff> log timer is a javascript that opens a new window with a warning, you have 2:00 and it countsdown at pageload. is...
  13. cleansedbb

    checking for existing record?

    sounds like fun, i'll give it a shot. played a little with flocks and the password updates is a good possibility. thanks
  14. cleansedbb

    checking for existing record?

    I have several text files. (and unfortunatly they need to be text instead of mysql) the data is Username1:MD5CryptedPassword Username2:MD5CryptedPassword Username3:MD5CryptedPassword Username4:MD5CryptedPassword I have an existing script that inserts by appending the username and password at...
  15. cleansedbb

    Session Time Remaining?

    Got it fixed. thanks for your help! this is what I ended up using: <? session_start(); if (! (isset($timeisset)) ) { //session is empty $_SESSION['thisismytime']=date(&quot;U&quot;); $_SESSION['timeisset'] = 'yes'; } require('/MySQLHandler.class.php'); require('/SessionHandler.class.php')...
  16. cleansedbb

    Session Time Remaining?

    sesion_start() if (isset($_SESSION['time'])==false) { //session is empty ($_SESSION['time'])=time(); } I added this to both pages login and test on login it sets it but on test its getting set again?
  17. cleansedbb

    Session Time Remaining?

    tried it and it didnt work? have another suggestion?
  18. cleansedbb

    Session Time Remaining?

    Hello all, I am trying to get the following to work. What it's supossed to do is read in the $SESS_time and give me the var that should be $time1 but everytime I do it changes on refresh. i.e. $SESS_time = time(); how do you lock time(); to not refresh on reload? the following works if I hard...
  19. cleansedbb

    live editing of files.

    I've got the following and it lets me view the file test.log and whatever I type gets appended to the bottom. what I want to be able to do is also remove from the file. the files contents are: test 1.1.1.1 hello blah blah blah blah I want to say remove hello. it will be random. the text shows...
  20. cleansedbb

    using str_replace()

    sorry about the bump. and thanks for the info.

Part and Inventory Search

Back
Top