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

后端 未结 3 1328
忘了有多久
忘了有多久 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 05:55

    The result of the script is supposed executed and return back to your script. PHP doesn't support any feature about web browser itself.

    I suggest you try to learn about "web crawler" and "webbrowsers" which are included in .NET framework ( not PHP )

    so that you can use the exec() command in php to call it.

    try to find out the example code of web crawler and web browsers on codeproject.com

    hope it works.

提交回复
热议问题