Offset!

65 views
Skip to first unread message

Jorge Pacora

unread,
Oct 6, 2012, 4:24:37 PM10/6/12
to phudbase-...@googlegroups.com
Im having notices with undefined offset´s, i want to create a ssh client...

Michael Elford

unread,
Oct 8, 2012, 4:06:52 AM10/8/12
to phudbase-...@googlegroups.com
Hi Jorge,

Not sure if this does SSH, but I've just uploaded an updated wm_server folder to the other recent thread. it'll fix most of your undefined offsets and should work with most browsers.

Cheers,
Michael

Jorge Pacora

unread,
Oct 8, 2012, 7:48:11 PM10/8/12
to phudbase-...@googlegroups.com
Now i get this error: Strict Standards: Only variables should be passed by reference in   wm_server\includes\classes\Server\SocketServer.class.inc on line 132

Michael Elford

unread,
Oct 9, 2012, 1:44:06 AM10/9/12
to phudbase-...@googlegroups.com
This is part of the original code and not a change I made, you have a couple of options - disable strict standards in your PHP... or try the below.  I'm not 100% certain on this fix as apparently I don't have strict standards enabled :)

Change the line:
                    $ready = socket_select($this->read, $write = NULL, $except = NULL, 0); // For blocking: $tv_sec = NULL);

To the following:
                    $write = $expect = NULL;
                    $ready = socket_select($this->read, $write, $except, 0); // For blocking: $tv_sec = NULL);

Reply all
Reply to author
Forward
0 new messages