How do I render javascript from another site, inside a PHP application?

后端 未结 3 1335
忘了有多久
忘了有多久 2021-01-23 05:46

What I\'m trying to do is read a specific line from a webpage from inside of my PHP application. This is my experimental setup thus far:

      

        
3条回答
  •  天命终不由人
    2021-01-23 06:05

    cURL does not have a javascript parser. as such, if the content you are trying to read is placed in the page via Javascript after initial page render, then it will not be accesible via cURL.

提交回复
热议问题