#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    france
    Posts
    35
    Rep Power
    15
    suppose in the middle of a page I realize the current user has nothing to do here and I want to kick him out.

    How can I relocate his page, since the "header" command requires that no output has been done before, and that is not my case ?

    Thanks

    -
    J0f
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    35
    Rep Power
    15
    >>suppose in the middle of a page I realize the current user

    Why not check the user's authentication first?

    every page I wrote were following the 4 steps:

    1.check the authetication, if not, kick out
    2.check the correctness of input, if not, kick out
    3.do the process
    4.output the result

    I have at least two files for one page:
    process file and output file
    in process file, do:
    step1;
    step2;
    step3;
    step4: include("html/outputfile.php");
    in output file, there are HTML code and some necessary PHP code.
    All output HTML code was moved to output file, and I can concentrate myself with process work, leave the output to webdesigner.
    Like me, you r a webdeveloper.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    france
    Posts
    35
    Rep Power
    15
    K...
    I suppose I did the wrong thing which was to put all my functions in a header that already displays stuff, which therefore prevents me from kicking out the bastard...
    Thanx

    -
    J0f

    PS: I'm a webdevelopper and a webdesigner

Similar Threads

  1. kicking out other users
    By mehmetozcelebi in forum ASP Programming
    Replies: 2
    Last Post: December 7th, 2003, 02:14 PM
  2. Been kicking this around for awhile
    By thedude in forum Dev Shed Lounge
    Replies: 10
    Last Post: September 17th, 2003, 10:36 AM
  3. kicking off a process in php
    By aburnett12 in forum PHP Development
    Replies: 1
    Last Post: August 7th, 2003, 01:55 PM
  4. PHP/MySQL Powered Database Troubles
    By Clark in forum PHP Development
    Replies: 3
    Last Post: August 13th, 2001, 08:11 PM
  5. kicking someone out...
    By J0f in forum PHP Development
    Replies: 1
    Last Post: September 9th, 2000, 10:57 AM

IMN logo majestic logo threadwatch logo seochat tools logo