|
Posted by seaside on 01/13/08 18:06
On 13 Jan., 16:05, "C. (http://symcbean.blogspot.com/)"
<colin.mckin...@gmail.com> wrote:
> I've got a PHP script, let's call it page.php which renders a page
> with a fancy dhtml table (http://dhtmlx.com/docs/products/dhtmlxGrid/
> index.shtml) this connects to another script which provides the XML
> datafeed to populate the table, lets call it xmlfeed.php
What exactly are you trying to do?
In case you'd like to perform an asynchronous XMLHTTPRequest, I'd
propose
xAjax, since this makes requesting data very simple: Register a PHP
function
with xAjax and call it from within your JS, as if it would be a JS
function:
See here: http://xajaxproject.org/
I wonder, if an asynchronous HTTP request makes any sense in PHP.
Since PHP does not
provide some kind of an event model. Using asychronous CURL calls,
which trigger
a callback, might be risky, since these calls might corrupt PHPs stack
frames etc.
In case URL wrappers are enabled, you might simply wish to use
file_get_contents()
and pass an URL to get the contents of the URL sychnronously.
See here: http://de3.php.net/file_get_contents
Navigation:
[Reply to this message]
|