[PHP] What does this mean?

2009-06-25 Thread Jason Carson
Hey all, I'm new to the list and I have a question... What does => mean? The book I am reading is called Programming PHP published by O'Reilly. I haven't read the whole book yet. I was flipping through the pages and in the book there is mention of <= (less than or equal) and >= (greater than or e

[PHP] Sessions

2009-07-02 Thread Jason Carson
Hello all, Do I have to add session_start() at the beginning of every page so that the $_SESSION variables work on all pages or do I use session_start() on the first page and something else on other pages? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] Writing to a file

2009-07-03 Thread Jason Carson
Hello everybody, How would I go about writing stuff to a file but in between the tags? Example, say I have config.php as follows... How would I go about adding stuff at the end of the file, but before the ?> tag? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Writing to a file

2009-07-03 Thread Jason Carson
> On Fri, Jul 3, 2009 at 06:01, Jason Carson wrote: >> Hello everybody, >> >> How would I go about writing stuff to a file but in between the >> tags? > > The current industry standard is a combination of text editor and > keyboard, but there are many opt

[PHP] Simple login form with cookies

2009-07-05 Thread Jason Carson
Hello everyone, I am trying to create a PHP login script using cookies but am having some troubles. Here is my setup index.php -> authenticate.php -> admin.php I want a login form on index.php that allows me to login with my username and password and then passes $_POST['username'] and $_POST

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Jason Carson
> Hello everyone, > > I am trying to create a PHP login script using cookies but am having some > troubles. Here is my setup > > index.php -> authenticate.php -> admin.php > > I want a login form on index.php that allows me to login with my username > and password and then passes $_POST['userna

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Jason Carson
>> Hello everyone, >> >> I am trying to create a PHP login script using cookies but am having >> some >> troubles. Here is my setup >> >> index.php -> authenticate.php -> admin.php >> >> I want a login form on index.php that allows me to login with my >> username >> and password and then passes

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Jason Carson
> On Mon, Jul 6, 2009 at 1:45 AM, Jason Carson wrote: >>> Hello everyone, >>> >>> I am trying to create a PHP login script using cookies but am having >>> some >>> troubles. Here is my setup >>> >>>     index.php -> authen

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Jason Carson
> On Mon, Jul 6, 2009 at 2:01 AM, Jason Carson wrote: >>> On Mon, Jul 6, 2009 at 1:45 AM, Jason Carson >>> wrote: >>>>> Hello everyone, >>>>> >>>>> I am trying to create a PHP login script using cookies but am having >&

Re: [PHP] Simple login form with cookies

2009-07-06 Thread Jason Carson
> On Mon, Jul 6, 2009 at 02:19, Jason Carson wrote: >>> >> ok, I have two sets of scripts here. One uses setcookie() for logging >> into >> the admin panel and the other uses session_start(). Both are working >> fine, >> is one more secure than the other?

Re: [PHP] Simple login form with cookies

2009-07-06 Thread Jason Carson
> Jason Carson wrote: >>> On Mon, Jul 6, 2009 at 02:19, Jason Carson wrote: >>> >>>> ok, I have two sets of scripts here. One uses setcookie() for logging >>>> into >>>> the admin panel and the other uses session_start(). Both are

Re: Re: [PHP] Simple login form with cookies

2009-07-08 Thread Jason Carson
> > The basic model for password authentication is to use one way crypt > routines. MySql has several, PHP also has them. The basic algorithm > would be like this: > > 1) read the password from the form. > 2) read the password from you datastore that matches the user name or > session > 3) encrypt

[PHP] A prepared statements question

2009-07-11 Thread Jason Carson
Hello everyone, I am having a problem getting my prepared statements working. Here is my setup... index.php -> authenticate.php -> admin.php 1)index.php has a login form on it so when someone enters their username the form redirects to another page I call authenticate.php. 2)In the authenti

Re: [PHP] A prepared statements question

2009-07-12 Thread Jason Carson
> Hello everyone, > > I am having a problem getting my prepared statements working. Here is my > setup... > > index.php -> authenticate.php -> admin.php > > 1)index.php has a login form on it so when someone enters their username > the form redirects to another page I call authenticate.php. > >

[PHP] A form and an array

2009-07-23 Thread Jason Carson
Hello everyone, Lets say I have a file called form.php with the following form on it that redirects to index.php when submitted. I would like to take the values of the text fields in the form and put them into an array, then be able to display the values in that array on index.php Does anyone know

Re: [PHP] Re: A form and an array

2009-07-23 Thread Jason Carson
> Jason Carson wrote: > >> Hello everyone, >> >> Lets say I have a file called form.php with the following form on it >> that >> redirects to index.php when submitted. I would like to take the values >> of >> the text fields in the form and put th

Re: [PHP] Re: A form and an array

2009-07-23 Thread Jason Carson
> Jason Carson wrote: > >>> Jason Carson wrote: >>> >>>> Hello everyone, >>>> >>>> Lets say I have a file called form.php with the following form on it >>>> that >>>> redirects to index.php when submitted. I woul

RE: [PHP] Re: A form and an array

2009-07-23 Thread Jason Carson
Yes > Did you correct the missing double quote in your sending form first? > > Warren Vail > > -Original Message- > From: Jason Carson [mailto:ja...@jasoncarson.ca] > Sent: Thursday, July 23, 2009 9:33 PM > To: php-general@lists.php.net > Subject: Re: [P

Re: [PHP] Re: A form and an array

2009-07-23 Thread Jason Carson
can tell us what doesn't work. > > good luck~ > > 2009/7/24 Jason Carson > >> > Jason Carson wrote: >> > >> >>> Jason Carson wrote: >> >>> >> >>>> Hello everyone, >> >>>> >> >>>> Lets