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

    Join Date
    Jan 2000
    Location
    Helsinki, Finland
    Posts
    1
    Rep Power
    0
    I'm looking for a way to create a PHP page that "stays alive" and updates (lines are added to the end) when other scripts make requests. I know this can be done, I've seen it work on some "on-line chat" sites, but can't figure out how to do it.

    I'd especially appreciate a link to an exaple or a code snippet, since I am quite a beginner at this.

    Thanks,

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

    Join Date
    Nov 1999
    Location
    Hannover, Germany
    Posts
    17
    Rep Power
    0

    i have programmed many scripts ... but i tink there is no standard way of making your script running all time, cause the php-interpreter kicks the script after it is processed and awaits then the next one.

    If anyone have an solution for the problem, please email me too.

    CodeDuck
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    16
    Rep Power
    0
    Me too plz
    olthoiexter@hotmail.com
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    59
    Rep Power
    15
    I think you would probably have to use Perl, or some language of that sort, just simply because of the way PHP works, you also might try interacting Flash and PHP, I know I saw a real-time chat script done in ASP and Flash, so I see no reason PHP couldn't do the same thing.

    Chris

Similar Threads

  1. Persistent Connections vs. normal connections with PHP
    By pablo.gosse in forum PostgreSQL Help
    Replies: 1
    Last Post: May 2nd, 2003, 12:27 PM
  2. COMMIT WORK and Postgres persistent connections
    By Ted Striker in forum PHP Development
    Replies: 0
    Last Post: July 31st, 2002, 02:39 AM
  3. how does Apache maitain persistent connections?
    By r12345 in forum Apache Development
    Replies: 0
    Last Post: December 27th, 2000, 06:32 AM
  4. Replies: 0
    Last Post: October 18th, 2000, 12:02 PM
  5. php cant get it running
    By wheels in forum PHP Development
    Replies: 2
    Last Post: July 24th, 2000, 04:21 PM

IMN logo majestic logo threadwatch logo seochat tools logo