我正在学习如何使用PHP OpenId
我已经将代码库克隆到~/www
目录中。在php-open-id/examples
目录中有一些示例,我想要运行它们。
具体来说,我想要渲染页面php-open-id/examples/consumer/index.php
,以更好地理解API。我在php-open-id/examples
目录中启动了一个服务器,使用以下命令:
python -m SimpleHTTPServer 8000
然后我导航到localhost://consumer/index.php
但它没有起作用。它显示一个对话框来保存该文件。正确的渲染PHP文件的方法是什么?