Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work on Windows #8

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 8 comments
Open

Does not work on Windows #8

GoogleCodeExporter opened this issue Mar 13, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 13 Aug 2007 at 4:09

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 14 Aug 2007 at 3:30

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 20 Aug 2007 at 6:08

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

I did that, and now I have a blank page with no errors.


Original comment by [email protected] on 20 Aug 2007 at 9:39

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 16 Sep 2007 at 1:18

@GoogleCodeExporter
Copy link
Author

Just remove comments in front of
> extension=php_sockets.dll
in your php.ini.

Original comment by [email protected] on 3 Oct 2007 at 12:26

@GoogleCodeExporter
Copy link
Author

compile php using ./configure --enable-sockets

Original comment by [email protected] on 1 Nov 2008 at 12:08

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 4 Nov 2009 at 9:06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant