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!
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.
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...
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
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.
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...
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...
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...
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("U");
$_SESSION['timeisset'] = 'yes';
}
require('/MySQLHandler.class.php');
require('/SessionHandler.class.php')...
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?
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...
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...
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.