[Twisted-web] PHP support on Windows

Ronald Oussoren ronaldoussoren at mac.com
Sun Nov 13 23:53:09 MST 2005


On 13-nov-2005, at 19:08, Abdallah Deeb wrote:

> Jean-Paul,
>
> Thank you, we're heading somewhere... now it's serving the HTML files
> correctly, but PHP scripts die with a:
> CGI Script Error
> Premature end of script headers.
>
> from twisted.internet import reactor, win32eventreactor
> ...
> win32eventreactor.install()
> reactor = win32eventreactor.Win32Reactor()
> reactor.listenTCP(1999, site)
> reactor.run()

 From the top of my head:

from twisted.internet import win32eventreactor
win32eventreactor.install()

from twisted.internet import reactor
...

reactor.listenTCP(1999, site)
reactor.run()


Note that this is explained in the documentation.

>
>> From the logs:
> cmdline	'c:\\PHP\\php c:\\Code\\Web\\index.php'
> command	'c:\\PHP\\php'
> path	'c:\\Code\\Web'
>
> Any ideas would be appreciated.
>
> Thank you all guys for your help.
>
> On 11/13/05, Jean-Paul Calderone <exarkun at divmod.com> wrote:
>> http://twistedmatrix.com/projects/core/documentation/howto/ 
>> choosing-reactor.html#auto8
>>
> --
> Abdallah Deeb
>
> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web




More information about the Twisted-web mailing list