Solved

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

Posted on 2009-05-19
6
433 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

809 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