Here's my problem... I'm trying to assign the output of the include function to a variable. All I get is the status code if I go like: $var = include("filename"). $var is 1 at this point. I'm thinking there's some operator that will redirect the output like...
It's simple, just add the characters you need to match:
eregi("^[a-zA-Z0-9_\-]", $request)
Make sure you escape the dash(-) with a backslash(\). You also have to escape the period(.), just for future reference.
I'm not too sure of what you're doing, so I'm assuming you need the user's name and password to be tracked around the site. If so, you're using some session handling.
In that case, just make sure that not only are you updating the password in the database, you're updating the password session...
I think the only problem is that you're not looking for the uppercase letters. If so, try this:
if (eregi("^[a-zA-Z0-9]", $request))
{
//error code
}
The easiest way would be to use JavaScript to put the form name into a hidden field.<br><FONT FACE=monospace><br><form name="t_form" onSubmit="javascript:document.t_form.formname.value = document.t_form.name"><br><br><input type="hidden"...
I need a PHP script to be fired off on a set interval of time. I would like to put it into Cron, but I don't know how to set it up to accept PHP scripts.<br><br>I also heard that I can use a Perl script to call a PHP script. I don't know how to do this either...
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.