[wdvltalk] Re: PHP question

2004-03-06 Thread Bj
- 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

[wdvltalk] Re: PHP question concerning folders

2004-02-19 Thread Sheila Fenelon
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

[wdvltalk] Re: PHP Question

2004-01-13 Thread Bj
- 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

[wdvltalk] Re: PHP Question

2004-01-13 Thread Anitha Paruchuri
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

[wdvltalk] Re: PHP Question

2004-01-13 Thread Sheila Fenelon
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

[wdvltalk] Re: PHP Question

2004-01-13 Thread john . f . hughes
<[EMAIL PROTECTED] cc: .niu.edu> Subject:

[wdvltalk] Re: PHP Question

2004-01-13 Thread Anitha Paruchuri
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

[wdvltalk] Re: PHP Question

2004-01-13 Thread Bj
- 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

[wdvltalk] Re: PHP Question

2004-01-13 Thread Sheila Fenelon
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