我如何使用Python的粘贴WPHP
有人build议我回答我的问题我如何使用Python的CGIHTTPRequestHandler作为PHP的开发服务器 ,我尝试WPHP。 我试过了: import wphp my_php_app = wphp.PHPApp('/path/to/php-files/') from paste import httpserver httpserver.serve(my_php_app) 但无论我在浏览器中要求什么,我都会得到: Exception happened during processing of request from ('127.0.0.1', 49397) Traceback (most recent call last): File "/Library/Python/2.6/site-packages/Paste-1.7.4-py2.6.egg/paste/httpserver.py", line 1068, in process_request_in_thread self.finish_request(request, client_address) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 320, in finish_request self.RequestHandlerClass(request, client_address, self) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 615, in __init__ self.handle() File "/Library/Python/2.6/site-packages/Paste-1.7.4-py2.6.egg/paste/httpserver.py", line […]