On Saturday 04 September 2004 03:42 pm, Torsten Roehr wrote:
> "Matthias Bauw" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
> > I'm having a problem with a php application;
> >
> > I have two files: one is ccadduser wich adds users to a controlcenter
> > that I am currently designing for a website.
> >
> > In that ccaduserfile I call for a function checkpermission(); this
> > function is defined in another file called ccfunctions
> >
> > When a user does not have access to the script it should abort the
> > script, this is done using a header("location: ccnopermission.php");
> > statement
> >
> > But now it seems that while executing the function checkpermission()
> > the code in ccadduser just keeps running and the database query that
> > inserts the new user is executed before the user can be redirected to
> > ccnopermission.
> >
> > Is there a way to make php wait until checkpermission is completely
>
> executed?
>
> > I know it is not a simple question, but I really need a solution to
> > ensure the safety of my system.
> >
> > grtz & thanks
> >
> > DragonEye
>
> I'm not completely sure if I understand your question but PHP will process
> one function after the other. Without seeing some code I'm afraid we can't
> help you much.
>
> Regards, Torsten Roehr


Two thoughts:

You call function checkpermission(); that is defined in another file. How do 
you call this file: do you use absolute url? Might be the problem, as well as 
using header("location; ccnopermissions.php");. Might want to use an absolute 
url there too.

Just a thought or two,
Andre

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to