runing first time error chat-server.php

瀏覽次數:41 次
跳到第一則未讀訊息

dee...@webinfomart.com

未讀,
2014年3月15日 凌晨3:22:112014/3/15
收件者: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

未讀,
2014年3月17日 上午11:32:102014/3/17
收件者: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

回覆所有人
回覆作者
轉寄
0 則新訊息