Rianna
11-23-2006, 02:14 AM
Hi, just wondering if you can make a XMLHttpRequest, using php, instead of javascript. Please let me know, thank you.
|
Click to See Complete Forum and Search --> : Any way to make a XMLHttpRequest, using php? Rianna 11-23-2006, 02:14 AM Hi, just wondering if you can make a XMLHttpRequest, using php, instead of javascript. Please let me know, thank you. NogDog 11-23-2006, 03:05 AM What exactly do you want to do? Depending on what that is, it might be as simple as using a URL as the argument to file_get_contents(), or you might need to do something more complex using the CURL functions (http://www.php.net/curl). Rianna 11-23-2006, 03:12 AM I am trying to re-execute a php function using javascript setTimeout instead of page load or refresh for many reasons. I thought it would be better to have the php access the javascript through httprequest so the php can still be searched by search engines. But maybe it can be done the other way around. Is httprequest only done with javascript? Thank you very much. NogDog 11-23-2006, 03:15 AM Yes, that is a JavaScript function. (And remember that PHP is running on the server, so once the page is output to the browser, PHP has no knowledge of it any more.) webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |