How do I include a PHP script in Python?

后端 未结 5 2225
暗喜
暗喜 2021-02-09 05:56

I have a PHP script (news-generator.php) which, when I include it, grabs a bunch of news items and prints them. Right now, I\'m using Python for my website (CGI). When I was usi

5条回答
  •  孤街浪徒
    2021-02-09 06:22

    I think the best answer would be to have apache render both pages separately and then use javascript to load that page into a div. You have the slight slowdown of the ajax load but then you dont have to worry about it.

    There is an open-source widget thing that will run multiple languages in 1 page but I cant remember what its called.

提交回复
热议问题