#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    Hi. Does anyone know how to make a PHP script execute right after the page has been loaded into the browser?

    ------------------
    Al-x
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,643
    Rep Power
    4492
    From the manual:

    register_shutdown_function
    (PHP3 >= 3.0.4, PHP4 )

    register_shutdown_function -- Register a function for execution on shutdown
    Description

    int register_shutdown_function (string func)


    Registers the function named by func to be executed when script processing is complete.

    Common Pitfalls:

    Since no output is allowed to the browser in this function, you will be unable to debug it using statements such as print or echo.


    ------------------
    *************************************************************
    * The manual can probably answer 90% of your questions...
    *
    * PHP Manual. www.php.net/manual
    * MySQL Manual: www.mysql.com/documentation/mysql/bychapter
    *************************************************************
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    Thanx! This is exactly what I was after.
  6. #4
  7. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,643
    Rep Power
    4492
    Love those manuals....this one was probably a little hard to find, so I won't rag on you to much.

    ---John Holmes...

Similar Threads

  1. different page display depending on $_GET results
    By emp/ir:kal in forum PHP Development
    Replies: 5
    Last Post: February 11th, 2004, 10:12 AM
  2. Display new entry on specified page (?)
    By skootz in forum PHP Development
    Replies: 5
    Last Post: February 4th, 2004, 08:27 AM
  3. Extract image from MySql to display on page
    By PHPme in forum PHP Development
    Replies: 6
    Last Post: January 30th, 2004, 04:06 PM
  4. How to display html page instead of image
    By murtaza in forum PHP Development
    Replies: 9
    Last Post: January 22nd, 2004, 04:14 AM
  5. passing the url from HTML page to a php
    By lordorkus in forum PHP Development
    Replies: 10
    Last Post: January 20th, 2004, 05:36 PM

IMN logo majestic logo threadwatch logo seochat tools logo