Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

PHP : Call one php-script from another in a asynchronous way

Posted on 2009-05-19
6
434 Views
Last Modified: 2012-05-07
Hi,

from a first PHP script which is called up, I'm trying to find a way to call another PHP script, which needs to do quite a bit of processing in the background.
So logically, that second script should be called in a asynchronous way.
What's the way to do this in PHP ?

Thanks in advance,

Bart
0
Comment
Question by:pixy-bart
6 Comments
 
LVL 16

Accepted Solution

by:
jessc7 earned 50 total points
ID: 24422196
pixy-bart, this is not native to PHP generally, but does this post help you out?

Asynchronous PHP calls
http://nickyaitsky.com/index.php/2007/07/30/asynchronous-php-calls.html
0
 
LVL 16

Expert Comment

by:jessc7
ID: 24422206
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 24425020
You can use CURL or POST to start an asynchronous script.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 2

Expert Comment

by:miyosia
ID: 24431435
Ajax can do the job. you can use javascript that will call a php script which will process the data without reloading the page.

you can try this link http://www.w3schools.com/Ajax/ajax_intro.asp

Normally they use XML to transfer data but you can have a workaround using PHP scripts instead.

you can try this tutorial http://www.ajaxf1.com/tutorial/ajax-php.html
0
 

Author Comment

by:pixy-bart
ID: 24624006
Hi all,

thanks for the tips. I had to switch gears all of a sudden and need to park this for a couple of weeks. Thanks for the help. I promise to come back when I get the time to dig deeper.
0
 

Author Closing Comment

by:pixy-bart
ID: 31582991
No time to dig deeper.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question