Results 1 to 7 of 7

Thread: How to make more than one php file running together

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    26

    How to make more than one php file running together

    How to make more than one php file running together.

    example :
    when i run a.php then run b.php on same browser but different tab. when a.php run first then b.php must wait until a.php finish then b.php can running.

    I want to know how a.php and b.php can run together in localhost.

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: How to make more than one php file running together

    what is it that your trying to accomplish?

    If you want to pop b.php open in a new tab/window you can use javascript to do that.
    My usual boring signature: Something

  3. #3
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: How to make more than one php file running together

    not really related to this oke's question, but .... Multi-Threading in PHP (like we had in asp.net for instance)....possible?
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  4. #4
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: How to make more than one php file running together

    Quote Originally Posted by StrangerInBeijing
    not really related to this oke's question, but .... Multi-Threading in PHP (like we had in asp.net for instance)....possible?
    i think this is what he wants to do. a quick google search shows that php does not support multithreading whatsoever, but there seems to be some "fake" ways of doing it.

    http://www.google.com/search?q=multi...ng+php&spell=1
    My usual boring signature: Something

  5. #5
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: How to make more than one php file running together

    looks complicated.
    I'd rather figure something out with Ajax. Actually I do that all the time.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: How to make more than one php file running together

    If you want multi-threading then use JSP. There are no clean ways to do it in PHP and unless you really know what you are doing, trying could introduce serious security flaws into your application.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: How to make more than one php file running together

    Quote Originally Posted by ade_ari_w0
    when i run a.php then run b.php on same browser but different tab. when a.php run first then b.php must wait until a.php finish then b.php can running.
    Impossible — page requests are totally independent.

    As the others mentioned, if you explain exactly what it is that you need this for, we can suggest a better solution.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width