Closed nashsaint closed 4 years ago
Actually this file is not the Client
class of smalot/cups
but it is this one:
vendor/php-http/socket-client/src/Client.php
However: This message might be thrown if you just create the client object like this:
$client = new \Smalot\Cups\Transport\Client()
,
while the CUPS server is not running on the same machine as the PHP code.
Try this instead:
$client = new \Smalot\Cups\Transport\Client("username", "password" ["remote_socket" => "tcp://remote_ip:631"])
(replace "remote_ip" with the actual IP )
Thank @chriskonnertz
I am not sure if this issue is directly related to this package but I can't find solutions, so here asking for support. Your List Printers code throws an error
No such file or directory
and is thrown from Client.php