runing first time error chat-server.php

41 views
Skip to first unread message

dee...@webinfomart.com

unread,
Mar 15, 2014, 3:22:11 AM3/15/14
to ratch...@googlegroups.com
I am using this library first time and trying to make "Hello Word" application i have installed composer.phar
and installed library in application root folder my folder structure is

C:/wamp/www/socket
bin/
chat-server.php 
src/
MyApp/
 Chat.php(class)
vender (library files)
composer.phar
composer.json
composer.lock 
index.php 
 
Question is is my structure is ok?

Because when i am running chat-server.php form cmd i am getting error:
Fatal error: class 'MyApp/Chat' not found

needs suggestion.

Thanks
 
 

Joshua K

unread,
Mar 17, 2014, 11:32:10 AM3/17/14
to ratch...@googlegroups.com

You have to include your chat.php file in your index.php or you have to append your MyApp folder to the composer autoload configuration

Reply all
Reply to author
Forward
0 new messages