- Original Message -
From: "William Stewart"
> I have a variable that I want to define as an include of
> a .txt file. In other words, I want something like:
>
> $subcontent = "include("text.txt")";
Simplest is just to put the whole variable definition into the include file:
where
William Stewart wrote:
I am trying to dynamically include a file based on what folder the file
that is calling it is in. For instance:
The file www.whatever.com/abc/index.php would include the file:
www.whatever.com/template/abc.php and the file
www.whatever.com/xyz/index.php would include the fil
- Original Message -
From: "Anitha Paruchuri"
> what suprises me is that all the while it did not
> give any problem until i tried entering a
> password starting with numbers.
Well, look at it this way. By comparing $password with a number you are
forcing it to evaluate to a numeric valu
Thanks so much...Huh sometimes you feel like such a stupid to do these small errors.
But Thanks everyone it is definately the ')' but what suprises me is that all the
while it did not give any problem until i tried entering a password starting with
numbers. I think I must have entered atleast 10
Anitha Paruchuri wrote:
The code where it does this is here--
if (strlen($cpassword)<5 || strlen($cpassword >16))
A misplaced )
You probably want this:
if (strlen($cpassword)<5 || strlen($cpassword) >16)
Sheila
The WDVL Discussion List from WDVL.COM
To Join wdvltalk, Send
<[EMAIL PROTECTED] cc:
.niu.edu> Subject:
The code where it does this is here--
if (strlen($cpassword)<5 || strlen($cpassword >16))
{
echo "Your password must be between 5 and 16 characters. Please go back
and try again.";
exit;
// check password length is ok
}
I tried printing the values
- Original Message -
From: "Anitha Paruchuri"
> I am trying to check the length of the password entered
> by the user using strlen($password). It works fine when
> say I enter a password as 'abc123' but if I entered
> '123abc' it somehow doesn't work fine. Am I missing
> something here?
E
Anitha Paruchuri wrote:
Hi,
I am trying to check the length of the password entered by the user
using strlen($password). It works fine when say I enter a password as
'abc123' but if I entered '123abc' it somehow doesn't work fine. Am I
missing something here? Should the $password or the variable fo