Solved

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

Posted on 2009-05-19
6
431 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 108

Expert Comment

by:Ray Paseur
ID: 24425020
You can use CURL or POST to start an asynchronous script.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Echo vs ?><?php  html code 4 45
nagios 4 php error after installation 6 76
WordPress syntax 2 26
What is the best PDF generator to use? 1 28
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…
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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.

910 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now