Re: [PHP] Using require instead of redirect architecture

2007-12-20 Thread Richard Lynch
On Wed, December 19, 2007 1:37 pm, Robert Erbaron wrote: > Problems: > - hitting back on p2.php shows the dreaded "The page you are trying to > view contains POST..." If you dread seeing this, then play pinball with the user... > -- OK and Cancel both generated unsatisfactory results Unsatisfact

Re: [PHP] Using require instead of redirect architecture

2007-12-19 Thread Robert Cummings
On Wed, 2007-12-19 at 14:23 -0700, Dan wrote: > ""Robert Erbaron"" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> 1. p1.php would post to itself. Do data validation. After data > >> validation > >> upon error, include p1.php again with included error messages > >>

Re: [PHP] Using require instead of redirect architecture

2007-12-19 Thread Nathan Nobbe
On Dec 19, 2007 3:55 PM, Robert Erbaron <[EMAIL PROTECTED]> wrote: > > 1. p1.php would post to itself. Do data validation. After data > validation > > upon error, include p1.php again with included error messages > > upon success, redirect to p3.php with congrats. > > Yeah, I co

Re: [PHP] Using require instead of redirect architecture

2007-12-19 Thread Dan
""Robert Erbaron"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] 1. p1.php would post to itself. Do data validation. After data validation upon error, include p1.php again with included error messages upon success, redirect to p3.php with congrats. Yeah, I coul

Re: [PHP] Using require instead of redirect architecture

2007-12-19 Thread Robert Erbaron
> 1. p1.php would post to itself. Do data validation. After data validation > upon error, include p1.php again with included error messages > upon success, redirect to p3.php with congrats. Yeah, I could do this, but it uses a redirect, and like you said, it's gnarly. > 2. p1.

Re: [PHP] Using require instead of redirect architecture

2007-12-19 Thread Jim Lucas
Robert Erbaron wrote: > Maybe I'm too old a dog to teach a new trick to. > > I've got the redirect example discussed a couple days ago working > nicely. Back, Refresh, 'wrong username' - all work nicely. > > But I like the idea of reducing the load on the server, maybe > alleviating some redirect

[PHP] Using require instead of redirect architecture

2007-12-19 Thread Robert Erbaron
Maybe I'm too old a dog to teach a new trick to. I've got the redirect example discussed a couple days ago working nicely. Back, Refresh, 'wrong username' - all work nicely. But I like the idea of reducing the load on the server, maybe alleviating some redirect pinball. So been trying to use requ

Re: [PHP] using require

2005-07-11 Thread Tim Boring
Hello! On Fri, 2005-10-14 at 11:33 -0700, Cima wrote: > hi all, > > > i have my web site working something like this: in every php script i have > require(auth.php). this auth.php has my connection to my postgresql server > and database along with some other stuff i need for the user to be >

Re: [PHP] using require

2005-07-08 Thread Jeffrey D. Means
On Sat, 2005-05-14 at 19:34 -0700, Richard Lynch wrote: > On Fri, October 14, 2005 11:33 am, Cima said: > > i have my web site working something like this: in every php script i have > > require(auth.php). this auth.php has my connection to my postgresql server > > and database along with some othe

Re: [PHP] using require

2005-06-21 Thread Jochem Maas
Cima wrote: hi all, i have my web site working something like this: in every php script i have require(auth.php). this auth.php has my connection to my postgresql server and database along with some other stuff i need for the user to be authenticated to my web site. when i log on, this auth.php

Re: [PHP] using require

2005-06-11 Thread Christian Heinrich
Hi, this depends on which connection-function you've used. If you've decided to use pg_pconnect(), there is just one connection. If you use pg_connect, everytime a new connection is established (and after finishing the script, it's closed though) HTH Christian hi all, i have my web site w

Re: [PHP] using require

2005-05-28 Thread Mike Bellerby
If your php is using a permanant connection then it will be the same connection otherwise it will be a new connection as the connection will be droped at the end of the thread. As I understand it anyway!! Hope this helps! Mike Cima wrote: hi all, i have my web site working something like

Re: [PHP] using require

2005-05-14 Thread Richard Lynch
On Fri, October 14, 2005 11:33 am, Cima said: > i have my web site working something like this: in every php script i have > require(auth.php). this auth.php has my connection to my postgresql server > and database along with some other stuff i need for the user to be > authenticated to my web site

Re: [PHP] using require

2005-05-14 Thread James Williams
On 5/14/05, James Williams <[EMAIL PROTECTED]> wrote: > On 10/14/05, Cima <[EMAIL PROTECTED]> wrote: > > hi all, > > > > i have my web site working something like this: in every php script i have > > require(auth.php). this auth.php has my connection to my postgresql server > > and database along

Re: [PHP] using require

2005-05-14 Thread James Williams
On 10/14/05, Cima <[EMAIL PROTECTED]> wrote: > hi all, > > i have my web site working something like this: in every php script i have > require(auth.php). this auth.php has my connection to my postgresql server > and database along with some other stuff i need for the user to be > authenticated

Re: [PHP] using require

2005-05-14 Thread Leif Gregory
Hello Cima, Friday, October 14, 2005, 12:33:57 PM, you wrote: C> any info will be highly appreciated!! The easiest way to handle this is to set a session variable once they're authenticated and on all your pages you have something like this: session_start(); if (!$_SESSION['isAuthenticated'] ==

[PHP] using require

2005-05-14 Thread Cima
hi all, i have my web site working something like this: in every php script i have require(auth.php). this auth.php has my connection to my postgresql server and database along with some other stuff i need for the user to be authenticated to my web site. when i log on, this auth.php connects t

Re: [PHP] using require or include?

2004-11-04 Thread John Nichel
Reinhart Viane wrote: i have made a page (overall.php) in which several elements are defined: the connection with the database a function called session_checker to check if users are logged in and a last function(function getuserinfo()) that substracts values from the database based on the session

RE: [PHP] using require or include?

2004-11-04 Thread Reinhart Viane
L PROTECTED] Subject: RE: [PHP] using require or include? Have you looked at the GLOBAL keyword? http://uk.php.net/manual/en/language.variables.scope.php > -Original Message- > From: Reinhart Viane [mailto:[EMAIL PROTECTED] > Sent: 04 November 2004 23:02 > To: [EMAIL PROTECTED

RE: [PHP] using require or include?

2004-11-04 Thread Graham Cossey
Have you looked at the GLOBAL keyword? http://uk.php.net/manual/en/language.variables.scope.php > -Original Message- > From: Reinhart Viane [mailto:[EMAIL PROTECTED] > Sent: 04 November 2004 23:02 > To: [EMAIL PROTECTED] > Subject: [PHP] using require or include? >

[PHP] using require or include?

2004-11-04 Thread Reinhart Viane
i have made a page (overall.php) in which several elements are defined: the connection with the database a function called session_checker to check if users are logged in and a last function(function getuserinfo()) that substracts values from the database based on the session variables of the logge