On Mon, Mar 28, 2011 at 5:14 PM, Curtis Maurand wrote:
>
>
> Nathan Nobbe wrote:
> > On Mon, Mar 28, 2011 at 3:34 PM, Bostjan Skufca wrote:
> >
> >> If you need high performance you probably already know that it will be
> >> very
> >> expensive CPU wise if workers are spawned on each request. If
I have a machine with several websites one of which is quite busy
this time of year. I have another that had its joomla comments on
and open and the spammers found it. They managed to get 700,000
comments into the system before we caught it, but the traffic and strain
on the MySQL server and t
"It works pretty well until its under attack by the spammers."
Can you elaborate/explain further?
b.
On 29 March 2011 01:14, Curtis Maurand wrote:
>
>
> Nathan Nobbe wrote:
> > On Mon, Mar 28, 2011 at 3:34 PM, Bostjan Skufca wrote:
> >
> >> If you need high performance you probably already k
Nathan Nobbe wrote:
> On Mon, Mar 28, 2011 at 3:34 PM,
Bostjan Skufca wrote:
>
>> If
you need high performance you probably already know that it will be
>> very
>> expensive CPU wise if workers are spawned on
each request. If you don't,
>> I
>> would not bother
with daemon and just use xinetd
On Mon, Mar 28, 2011 at 3:34 PM, Bostjan Skufca wrote:
> If you need high performance you probably already know that it will be very
> expensive CPU wise if workers are spawned on each request. If you don't, I
> would not bother with daemon and just use xinetd. You can always add
> daemon-handlin
If you need high performance you probably already know that it will be very
expensive CPU wise if workers are spawned on each request. If you don't, I
would not bother with daemon and just use xinetd. You can always add
daemon-handling stuff later on.
Well I do hope you find a good working solutio
On Mon, Mar 28, 2011 at 12:38 PM, Bostjan Skufca wrote:
> Xinetd will definitely be faster way than coding your daemon in PHP.
>
In this case:
> You have to consider many other things as well:
> - do your worker processes run under various UIDs (do they do
> setuid/setgid)?
>
no
> - do your w
?
- do you need inter-worker communication?
- resource locking issues, etc?
What is your goal, the function of your daemon/socket server?
You can find PHP socket server implementations around the net already:
- Nanoserv being one: http://nanoserv.si.kz/
- something of "mine": https://
Hi,
I'd like to bat around some pros / cons of selecting xinetd to implement a
socket server. From my perspective the list is something like this:
xinetd pros
. no need to rewrite forking functionality, 'server' can be written as
simple php script
. forking potentially faster than php-based im
Hi
I suggest to use cron table against php deamon, It'will we be more stable
and using less load.
regards
- Original Message -
From: "Richard Lynch" <[EMAIL PROTECTED]>
To: "kioto" <[EMAIL PROTECTED]>
Cc: "php-general"
Sent: Friday,
On Wed, June 22, 2005 11:52 pm, kioto said:
> Hi all sorry for the ignorance :D.This is my first time with Socket and
> i have
> a question for you.I want create a script that run like daemon in
> background
> and listen incoming request.It's possible with socket open a stream to a
> directory
> an
Hi all sorry for the ignorance :D.This is my first time with Socket and
i have
a question for you.I want create a script that run like daemon in background
and listen incoming request.It's possible with socket open a stream to a
directory
and check any change on this directory ?
I want send not
I've gone through a few good socket client and server tutorials (such
as http://www.devshed.com/c/a/PHP/Socket-Programming-With-PHP/), and
have got the samples working. What I'm trying to do now is write a
simple Socket Server that will accept multiple connections, do its
thing, and keep runnin
[snip]
PHP Notice: Undefined variable: client in /Users/rene/Sites/test/s9.php on line 30
Here's my code:
[/snip]
I tried counting the lines, but could not determine which one was line 30. Is this
it...
if ($client[$i]['sock'] != null) $read[$i+1] = $client[$i]['sock'];
If so $client is not
I'm working through Ori Staub's excellent Socket Server tutorial
(http://www.zend.com/zend/tut/tutorial-staub3.php), but can't get the
sample server working. I've read the user comments and fixed a couple
things, but still, no dice. Here's the error I receive:
[Valhalla:~/Sites/test] rene% /usr
Dear all,
This is my quandry... I am trying to build a socket server to transfer simple
information, more of a monitoring tool. But after about 14+ hours it just kicks out,
without rhyme or reason. No errors, no nothing... I was curious if anyone could see
big gaping holes in my code that w
16 matches
Mail list logo