javascript - What functions are necessary to program a PHP script that can interact with an AJAX website like a normal browser? -
I want to know what is necessary to create a PHP script that interacts with a website like a normal browser Could. The website will be rich in Ajax, so it is important for PHP scripts to know how to handle JavaScript functions and maintain a continuous connection with the website.
You are asking a HTTP client asking PHP to have a call:
& lt ;? Php $ ch = curl_init ("http://www.example.com/"); $ Fp = fopen ("example_homepage.txt", "w"); Curl_setopt ($ ch, CURLOPT_FILE, $ fp); Curl_setopt ($ CH, CURLOPT_HEADER, 0); Curl_exec ($ ch); Curl_close ($ ch); Fclose ($ FP); ? & Gt;
Curl does not JavaScript though if you need to evaluate JavaScript, it is a very long order and I can suggest that you look at Google , But this is a C ++ project.
Comments
Post a Comment