Solved

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

Posted on 2009-05-19
6
429 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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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.  …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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.

747 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

10 Experts available now in Live!

Get 1:1 Help Now