php-general Digest 25 Nov 2006 15:41:56 -0000 Issue 4479
Topics (messages 245134 through 245136):
Re: problems re-reading from socket
245134 by: Martin Marques
Re: Select two table with DB_DataObject
245135 by: Yves Tannier
Re: To install a small program from a web browser
245136 by: Rory Browne
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
On Fri, 24 Nov 2006 13:41:59 -0600 (CST), "Richard Lynch" <[EMAIL PROTECTED]>
wrote:
> On Fri, November 24, 2006 1:21 pm, Martin Marques wrote:
>> I have a daemon class which reads and answers using socket_read and
>> socket_write functions. The things is that I connect to the daemon,
>> sent a chain and the I get an answer, but after that the daemon get's
>> struck in the next socket_read.
>
> Have you set:
> http://www.php.net/manual/en/function.socket-set-nonblock.php
If I set non-blocking, I get endless warnings when trying to accept connexions:
Warning: socket_accept(): unable to accept incoming connection [11]: Resource
temporarily unavailable in /usr/local/php/offline/lib/daemonSocket.inc on line
100
socket_accept() failed: reason: Success
> It seems to me that if you don't, you are going to wait for 2048
> bytes, no matter how little/much data is there...
>From the socket_read manual:
The function socket_read() reads from the socket resource socket created by
the
socket_create() or socket_accept() functions. The maximum number of bytes read
is specified by the length parameter. Otherwise you can use \r, \n, or \0 to
end
reading (depending on the type parameter, see below).
I'm using PHP_NORMAL_READ BTW.
--
---------------------------------------------------------
Lic. Martín Marqués | SELECT 'mmarques' ||
Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------
--- End Message ---
--- Begin Message ---
2006/11/24, Richard Lynch <[EMAIL PROTECTED]>:
On Fri, November 24, 2006 10:27 am, Yves Tannier wrote:
> First, sorry for my bad english ;)
>
> I'm looking for a simple way to provide query with two table like this
> :
>
> SELECT t1.idperson, t1.lastname FROM table1 t1, table2 t2 WHERE
> t1.idperson=t2.idperson AND t1.idperson=2
>
> I try with joinAdd and selectAs but its always complexe query like :
>
> SELECT t1.idperson, t1.lastname FROM table1 t1 INNER JOIN table2 t2
> ect...
>
> I can't use query() method because I need to use find() method after
> (orderBy, Pager, limit ect...)
I'm not quite sure what DB_DataObject is, or where it comes from...
But wherever that software came from, there is probably a better
list/forum/space to ask this, if nobody here answers.
So sorry. It's a mistake ;)
I've subcribe on [email protected] but not on
[EMAIL PROTECTED]
DB_DataObject is a pear package.
bye.
Yves
<[EMAIL PROTECTED]>
--- End Message ---
--- Begin Message ---
But he still wants to install programs
without knowledge to the users of his membership site (and no it's not a
pornography site...I
don't do pornography sites).
Let me paraphrase that.
He still wants to circumvent the users security, and install programs
without their knowledge.
Incase I haven't been quite clear so far, let me spell it out.
He wants to commit a crime. In assisting him to do so, you will be an
ascessory to his crime.
Circumventing the security of his members ( unless his members == his
employees, and he owns the computers his employees use ) is a serious
offence, and one which you should have no part in.
--- End Message ---