Fatal error: Class 'Client' not found in C:\VertrigoServ\www\Stomp\stomp.php on line ...
mój skrypt stomp.php:
// include a library require_once("src\Client.php"); require_once("src\SimpleStomp.php"); require_once("src\Protocol\Protocol.php"); require_once("src\Protocol\Version.php"); require_once("src\Transport\Frame.php"); require_once("src\Transport\Message.php"); // make a connection $stomp = new Client("tcp://localhost:8080");
Struktura katalogów jest taka:
Stomp/stomp.php
Stomp/src/Client.php
Klasa Client.php:
namespace Stomp; use Stomp\Exception\ConnectionException; use Stomp\Exception\MissingReceiptException; use Stomp\Exception\StompException; use Stomp\Exception\UnexpectedResponseException; use Stomp\Network\Connection; use Stomp\Protocol\Protocol; use Stomp\Protocol\Version; use Stomp\Transport\Frame; /** * Stomp Client * * This is the minimal implementation of a Stomp Client, it allows to send and receive Frames using the Stomp Protocol. * * @package Stomp * @author Hiram Chirino <hiram@hiramchirino.com> * @author Dejan Bosanac <dejan@nighttale.net> * @author Michael Caplan <mcaplan@labnet.net> * @author Jens Radtke <swefl.oss@fin-sn.de> */ class Client { /** * Perform request synchronously * * @var boolean */ private $sync = true;
PS. Używam serwera www VertrigoServ z wersją PHP 5.6 bo taka jest potrzebna mi do przetestowania protokołu STOMP.
Dlaczego nie widzi mi tej klasy ?