is it possible to activate/load a php script when everything has loaded?

Discussion in 'PHP' started by Micheal_newby, May 15, 2006.

  1. #1
    Hello,
    I have a php script on my webpage. But to avoid errors, i need
    to load first all my CSS and JAVA script. And finaly the PHP script.

    Is there a way to delay the php script from loading.
    Or to tell with a command when everything is loaden, then activate php
    script?

    Can someone help me out please?
     
    Micheal_newby, May 15, 2006 IP
  2. woodside

    woodside Peon

    Messages:
    182
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Php scripts are server-side, they aren't run in the browser. Your browser doesn't know anything about php, it just processes the html that the php script creates.

    -Erik
     
    woodside, May 15, 2006 IP
  3. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #3
    php is a server side script so it can't cause CSS or javascript errors (I am assuming you mean javascript rather than java?).

    If you really need to do this then you need to use a javascript body onload(); function to call an AJAX script which grabs the results from your php script.
     
    mad4, May 15, 2006 IP