artsrun-gasparyan / webchat2

Automatically exported from code.google.com/p/webchat2
GNU General Public License v2.0
0 stars 0 forks source link

Does not work on Windows #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run: C:\path\to\php.exe -f C:\path\to\chat.php
2.
3.

What is the expected output? What do you see instead?

Chat daemon does not start.

What version of the product are you using? On what operating system?

The above command works, but does not initiate the daemon on Windows 
(tested on XP and Windows Server 2003. As far as i can tell there is no 
way to get the program working on Windows at all...

Please provide any additional information below.

Original issue reported on code.google.com by oas...@gmail.com on 13 Aug 2007 at 4:09

GoogleCodeExporter commented 9 years ago
This might sound dumb, But I had success loading the php file from the httpd.

Eg c:\web\ is http://website.com/
Navigate to http://website.com/chat.php

I know it may not be a good permanint fix - But give it a try

Original comment by Gothi...@gmail.com on 14 Aug 2007 at 3:30

GoogleCodeExporter commented 9 years ago
I am unable to get this to work in windows either.  I currently get:

[ERROR] C:\path\to\webchat\libs\socketServer.php:5 Use of undefined constant 
AF_INET
- assumed 'AF_INET' [ERROR] C:\path\to\webchat\libs\socketServer.php:5 Use of
undefined constant SOCK_STREAM - assumed 'SOCK_STREAM'

Original comment by Mikeal.C...@gmail.com on 20 Aug 2007 at 6:08

GoogleCodeExporter commented 9 years ago
Actually that could be fixed by defining them manually, try doing a define
(‘SOCK_STREAM’, 1); and likewise for AF_INET, 2 … should atleast fix 
those 2 errors

Original comment by chabotc on 20 Aug 2007 at 7:55

GoogleCodeExporter commented 9 years ago
I did that, and now I have a blank page with no errors.

Original comment by Mikeal.C...@gmail.com on 20 Aug 2007 at 9:39

GoogleCodeExporter commented 9 years ago
I had that problem too, but I replaced those 2 constants -just- in the
socketServer.php file for the constructer, and now it runs fine.

Although, to make things a little smoother for the exec:

> set PATH=%PATH%;C:\php\

And I soon realised it was designed as a CGI app, so:

*\webchat2-1.0\> php-cgi.exe -Cq chat.php

And it runs fine on Win.

Original comment by sithella...@gmail.com on 16 Sep 2007 at 1:18

GoogleCodeExporter commented 9 years ago
Just remove comments in front of
> extension=php_sockets.dll
in your php.ini.

Original comment by slo...@gmail.com on 3 Oct 2007 at 12:26

GoogleCodeExporter commented 9 years ago
compile php using ./configure --enable-sockets

Original comment by jason.wi...@gmail.com on 1 Nov 2008 at 12:08

GoogleCodeExporter commented 9 years ago
Comment 6 fixes it.  Unfortunatly, once I have it running, I connect to it's 
server 
on port 81 where I set it, and the whole thing looks like it's all greyed out, 
and i 
can't click on anything. In any browser.  I do see "Notice from irc server .." 
and 
such, though. 

Original comment by blade.e...@gmail.com on 4 Nov 2009 at 9:06