php-general Digest 8 Dec 2006 14:17:06 -0000 Issue 4503
Topics (messages 245629 through 245650):
weird timestamp problem
245629 by: Amanda Emily
245636 by: Larry Garfield
how to close a socket output, leave input
245630 by: nick.yim
245647 by: Mustafa Aras Koktas
245648 by: Roman Neuhauser
Re: PHP Installation question
245631 by: Beauford
245633 by: Ryan Creaser
245641 by: Roman Neuhauser
fopen failed to open pipe file in Linux+Apache environment
245632 by: mike xu
245634 by: Chris
245635 by: Ryan Creaser
245642 by: mike xu
245643 by: Ryan Creaser
245644 by: mike xu
245645 by: mike xu
Going crazy over mod_deflate
245637 by: Cabbar Duzayak
245646 by: Jochem Maas
Re: Active Directory password change utility in PHP
245638 by: Vincent DUPONT
PHP / MVC & layout question
245639 by: Vincent DUPONT
Re: recursive function problem
245640 by: Roman Neuhauser
Re: signal handling
245649 by: Jochem Maas
245650 by: Roman Neuhauser
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 ---
I am working on an app that has 15 minute blocks of time to schedule meeting
room reservations and have ran into an rather odd problem. Any ideas as to
what could be causing this
I am expecting the block of code output this:
....
7:00PM
7:15PM
7:15PM
7:30PM
7:30PM
7:45PM
....etc
from 5:00 AM local time (PST) to 9:30 PM, but instead starting at 7:45PM, I
see this (time jumps from 8:00 to 8:01).
7:45 PM
8:00 PM
8:01 PM
8:16 PM
8:16 PM
8:31 PM
8:31 PM
8:46 PM
....etc
What is odd is that the app works as intended if I use 30 minute blocks of
15 minute blocks
Snippet of code is below
// menu start time
$start_c = mktime(5, 0, 0, $month_t, $day_t, $year_t);
// menu end time
$end_c = mktime(21, 30, 0, $month_t, $day_t, $year_t);
while($start_c < $end_c)
{
$time_start = $start_c;
$loop_s = $loop_s+900;
$time_end = $end_c;
$unix_e = $time_end-900;
$unix_s = date("U", $time_start);
$timeloop_e = date("g:i A", $time_end);
$timeloop_s = date("g:i A", $time_start);
print("<tr><td class=\"timeblock\" align=\"center\">". $timeloop_s ."<br
/>". $timeloop_e . "</td>\n");
}
--- End Message ---
--- Begin Message ---
I'm not sure why you'd have that problem, but I definitely think you're
over-engineering the code. That could well be why you're having a problem.
You can greatly simplify it like so:
$start_c = mktime(5, 0, 0, $month_t, $day_t, $year_t);
$end_c = mktime(21, 30, 0, $month_t, $day_t, $year_t);
for ($start_time = $start_c; $start_time <= $end_c; $start_time += 900) {
$start = date("g:i A", $start_time);
$end = date("g:i A", $start_time + 900);
print "$start<br />$end";
}
There may be an edge-case at the end you need to deal with, as I've not tested
the above, but as there's less code there's fewer places things can go wrong.
That's generally a good way to do things. :-)
On Thursday 07 December 2006 18:55, Amanda Emily wrote:
> I am working on an app that has 15 minute blocks of time to schedule
> meeting room reservations and have ran into an rather odd problem. Any
> ideas as to what could be causing this
>
> I am expecting the block of code output this:
>
> ....
> 7:00PM
> 7:15PM
>
> 7:15PM
> 7:30PM
>
> 7:30PM
> 7:45PM
> ....etc
>
> from 5:00 AM local time (PST) to 9:30 PM, but instead starting at 7:45PM, I
> see this (time jumps from 8:00 to 8:01).
>
> 7:45 PM
> 8:00 PM
>
> 8:01 PM
> 8:16 PM
>
> 8:16 PM
> 8:31 PM
>
> 8:31 PM
> 8:46 PM
> ....etc
>
> What is odd is that the app works as intended if I use 30 minute blocks of
> 15 minute blocks
>
> Snippet of code is below
>
> // menu start time
> $start_c = mktime(5, 0, 0, $month_t, $day_t, $year_t);
> // menu end time
> $end_c = mktime(21, 30, 0, $month_t, $day_t, $year_t);
>
> while($start_c < $end_c)
> {
> $time_start = $start_c;
> $loop_s = $loop_s+900;
> $time_end = $end_c;
>
> $unix_e = $time_end-900;
> $unix_s = date("U", $time_start);
>
> $timeloop_e = date("g:i A", $time_end);
> $timeloop_s = date("g:i A", $time_start);
> print("<tr><td class=\"timeblock\" align=\"center\">". $timeloop_s
> ."<br />". $timeloop_e . "</td>\n");
>
> }
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
--- End Message ---
--- Begin Message ---
Hello All,
1. create a socket
2. write something
3. (just) close output
4. read the server response
5. close the socket
step 3, i mean close output, let the server know the client send complete
Best regards,
nick.yim
[EMAIL PROTECTED]
2006-12-08
--- End Message ---
--- Begin Message ---
Is this for the client application or server?
I assume it is a client as you are trying to read a server response.
socket_write() will return the length of the buffer that is written to
server, so you can check that value to make sure the send is complete.
--Aras
-----Original Message-----
From: nick.yim [mailto:[EMAIL PROTECTED]
Sent: Friday, December 08, 2006 3:39 AM
To: php-general
Subject: [PHP] how to close a socket output, leave input
Hello All,
1. create a socket
2. write something
3. (just) close output
4. read the server response
5. close the socket
step 3, i mean close output, let the server know the client send
complete
Best regards,
nick.yim
[EMAIL PROTECTED]
2006-12-08
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
# [EMAIL PROTECTED] / 2006-12-08 09:38:44 +0800:
> Hello All,
>
> 1. create a socket
> 2. write something
> 3. (just) close output
> 4. read the server response
> 5. close the socket
>
> step 3, i mean close output, let the server know the client send complete
socket_shutdown() might help
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
--- End Message ---
--- Begin Message ---
On the old PC zlib.h is in /usr/local/inlude. On the new PC it's in
/usr/include and /usr/include/linux. I'm in the process of reinstalling PHP,
but I have my doubts.
Thanks
-----Original Message-----
From: Chris [mailto:[EMAIL PROTECTED]
Sent: December 7, 2006 8:21 PM
To: Beauford
Cc: [email protected]
Subject: Re: [PHP] PHP Installation question
Beauford wrote:
> I'm thinking though that this isn't really the problem. When I install
> Slackware, I install everything (except for games). On my older PC I
> installed version 8.1 and had no problems, but now with version 10 I
> have problems. I'm pretty sure that zlib-dev or zlib-devel has never
> been included in either version of Slack. So I think I'm just going
> around in circles with this.
locate zlib.h
if that returns nothing, then the problem is still that you need the
zlib-dev package installed.
If it does return something then what does it return ? Maybe you need to
specify the path to zlib in the php configure line.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Beauford wrote:
Hi,
I am trying to install vBulletin and keep getting this error: Fatal error:
Call to undefined function: gzinflate().
The only thing I can find on this is that zlib needs to be configured with
PHP at compile time. So I reinstalled PHP using the following:
./configure --with-mysql --with-apache=../apache_1.3.36 --with-zlib
--with-gd
make
make install
The above finishes with no error.
I rebooted, but still get same error, and zlib or gd doesn't show up in my
phpinfo output. zlib is installed, and from my understanding gd is included
with PHP, all the other libraries for gd are also installed. So what am I
doing wrong?
Also, how do I find out where something is installed? i.e. zlib. If I do a
search on it I get hundreds of hits...
Last. In the above ./configure line I get a message from PHP saying I am
using the built in version of MySQL - if I point it to the actual MySQL
source directory I get the following error.
configure: error: Cannot find libmysqlclient library under ../mysql-5.0.22
Any help is appreciated.
I am using Slacware 10, PHP 4.4.4, MySQL5.0, and Apache 1.3.36
Thanks
Did you recompile apache after running php's make install? Using
--with-apache builds a module that gets compiled *into* apache (as
opposed to --with-apxs which creates a dynamic module), ie. you need to
rebuild apache after building php. My guess is the gzinflate error
probably comes from an old php module.
- rjc
--- End Message ---
--- Begin Message ---
# [EMAIL PROTECTED] / 2006-12-08 12:21:16 +1100:
> Beauford wrote:
> >I'm thinking though that this isn't really the problem. When I install
> >Slackware, I install everything (except for games). On my older PC I
> >installed version 8.1 and had no problems, but now with version 10 I have
> >problems. I'm pretty sure that zlib-dev or zlib-devel has never been
> >included in either version of Slack. So I think I'm just going around in
> >circles with this.
>
> locate zlib.h
>
> if that returns nothing, then the problem is still that you need the
> zlib-dev package installed.
or that his locate database hasn't been rebuilt since he installed
the file. please give better advice.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
--- End Message ---
--- Begin Message ---
Hi, I have problem of open named pipe file in linux.
Here is my sample code:
$fifo_file = "/dev/pmsg";
@ $fp = fopen($fifo_file, 'w+b');
if(!$fp) {
echo "open ".$fifo_file." failed";
}
else {
$msg_cmd = "ttttttt";
fwrite($fp, $msg_cmd, strlen($msg_cmd));
fclose($fp);
}
There is an other program which is waiting for messages from /dev/pmsg
forever. You could also test it by running `cat /dev/pmsg` in shell console.
Every one have permissions of read and write for /dev/pmsg
prw-rw-rw- 1 root root 0 12-08 10:13 /dev/pmsg
Environment info: php-5.1.2-5, httpd-2.2.0-5.1.2, OS: Redhat FC5
Thanks in advance,
Mike
--- End Message ---
--- Begin Message ---
mike xu wrote:
Hi, I have problem of open named pipe file in linux.
Here is my sample code:
$fifo_file = "/dev/pmsg";
@ $fp = fopen($fifo_file, 'w+b');
It's wb+ not w+b
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
mike xu wrote:
Hi, I have problem of open named pipe file in linux.
Here is my sample code:
$fifo_file = "/dev/pmsg";
@ $fp = fopen($fifo_file, 'w+b');
if(!$fp) {
echo "open ".$fifo_file." failed";
}
else {
$msg_cmd = "ttttttt";
fwrite($fp, $msg_cmd, strlen($msg_cmd));
fclose($fp);
}
There is an other program which is waiting for messages from /dev/pmsg
forever. You could also test it by running `cat /dev/pmsg` in shell
console.
Every one have permissions of read and write for /dev/pmsg
prw-rw-rw- 1 root root 0 12-08 10:13 /dev/pmsg
Environment info: php-5.1.2-5, httpd-2.2.0-5.1.2, OS: Redhat FC5
Thanks in advance,
Mike
Are you getting any errors? What if you remove the @ from the start of
line 2, any errors now?
- rjc
--- End Message ---
--- Begin Message ---
Thanks a lot forr your reply.
Here is the error msg:
*Warning*: fopen(/dev/pmsg)
[function.fopen<http://localhost/Source/test/function.fopen>]:
failed to open stream: Permission denied in *
/var/www/html/Source/test/register_user.php* on line *31
It still doesn't work even if I move pmsg to /tmp/ directory and change its
own to appache...
*
On 12/8/06, Ryan Creaser <[EMAIL PROTECTED]> wrote:
mike xu wrote:
> Hi, I have problem of open named pipe file in linux.
>
> Here is my sample code:
>
> $fifo_file = "/dev/pmsg";
> @ $fp = fopen($fifo_file, 'w+b');
> if(!$fp) {
> echo "open ".$fifo_file." failed";
> }
> else {
> $msg_cmd = "ttttttt";
> fwrite($fp, $msg_cmd, strlen($msg_cmd));
> fclose($fp);
> }
>
> There is an other program which is waiting for messages from /dev/pmsg
> forever. You could also test it by running `cat /dev/pmsg` in shell
> console.
> Every one have permissions of read and write for /dev/pmsg
> prw-rw-rw- 1 root root 0 12-08 10:13 /dev/pmsg
>
> Environment info: php-5.1.2-5, httpd-2.2.0-5.1.2, OS: Redhat FC5
>
> Thanks in advance,
> Mike
Are you getting any errors? What if you remove the @ from the start of
line 2, any errors now?
- rjc
--- End Message ---
--- Begin Message ---
mike xu wrote:
Thanks a lot forr your reply.
Here is the error msg:
*Warning*: fopen(/dev/pmsg)
[function.fopen<http://localhost/Source/test/function.fopen>]:
failed to open stream: Permission denied in *
/var/www/html/Source/test/register_user.php* on line *31
It still doesn't work even if I move pmsg to /tmp/ directory and
change its
own to appache...
I don't really know Fedora or SELinux, but since your permissions seem
ok could it be the SELinux policy for httpd causing you grief?
- rjc
--- End Message ---
--- Begin Message ---
Hi Ryan,
I just did another test, if I start the httpd by root user manually (the
httpd daemon program still owns apache user by the result of `ps -aux`), the
php script works fine. So, it seems the httpd start script
(/etc/rc.d/init.d/httpd) did something specially which cause the permission
problem...
I'll continue checking it ...
Thanks,
Mike
On 12/8/06, Ryan Creaser <[EMAIL PROTECTED]> wrote:
mike xu wrote:
> Thanks a lot forr your reply.
>
> Here is the error msg:
> *Warning*: fopen(/dev/pmsg)
> [function.fopen<http://localhost/Source/test/function.fopen>]:
> failed to open stream: Permission denied in *
> /var/www/html/Source/test/register_user.php* on line *31
>
> It still doesn't work even if I move pmsg to /tmp/ directory and
> change its
> own to appache...
>
I don't really know Fedora or SELinux, but since your permissions seem
ok could it be the SELinux policy for httpd causing you grief?
- rjc
--- End Message ---
--- Begin Message ---
Its so strange, when I runing /etc/rc.d/rc3.d/S85httpd restart, the php
script couldn't fopen pipe file.
But if I copy /etc/rc.d/rc3.d/S85httpd to some other place (for example
/root), and execute `/root/S85httpd restart`, the php script could fopen
file successfully!
Its so confusing ...
On 12/8/06, mike xu <[EMAIL PROTECTED]> wrote:
Hi Ryan,
I just did another test, if I start the httpd by root user manually (the
httpd daemon program still owns apache user by the result of `ps -aux`), the
php script works fine. So, it seems the httpd start script
(/etc/rc.d/init.d/httpd) did something specially which cause the permission
problem...
I'll continue checking it ...
Thanks,
Mike
On 12/8/06, Ryan Creaser <[EMAIL PROTECTED]> wrote:
>
> mike xu wrote:
> > Thanks a lot forr your reply.
> >
> > Here is the error msg:
> > *Warning*: fopen(/dev/pmsg)
> > [function.fopen<http://localhost/Source/test/function.fopen >]:
> > failed to open stream: Permission denied in *
> > /var/www/html/Source/test/register_user.php* on line *31
> >
> > It still doesn't work even if I move pmsg to /tmp/ directory and
> > change its
> > own to appache...
> >
>
> I don't really know Fedora or SELinux, but since your permissions seem
> ok could it be the SELinux policy for httpd causing you grief?
>
> - rjc
>
--- End Message ---
--- Begin Message ---
Before I start, I am using apache 2.0.52 with PHP 4.3.9.
In my .htaccess, I have a rewrite rule that rewrites /bb.flv as
/bb.php, and this bb.php file reads a flv file and outputs it. In the
PHP file, I am specifying content-type as video/x-flv and
content-length, however mod_deflate still compresses this, and also
removes the content-length header from the response, and this messes
up the flv player!...
I tried everything, simply everything, and yet could not get
mod_deflate to by-pass this file. For some reason, it does not see
this content as video/x-flv, and treats is as regular text???? And,
when I disable the mod_deflate filter, everything returns back to
normal. BTW, I am not doing any compression on the PHP side!...
Things I tried are:
+ AddOutputFilterByType DEFLATE text/html text/plain text/xml
+ SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png|flv)$ no-gzip dont-vary
I tried putting these in <directory>, <location>, <virtual> and global
context, and none of them worked. Additionally, I tried to rewrite the
type using the rewriterule as:
RewriteRule ^bb.flv /bb.php [T=video/x-flv]
I also tried ForcedType, AddTpe, AddOutputFilter (by extension), etc. etc.
But, still the output is compressed. And, the response headers I am seeing are:
content-disposition: inline; filename=123.flv
Vary: Accept-Encoding
Content-Encoding: gzip
Keep-Alive: timeout=5, max=96
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: video/x-flv
Can you please tell what I am missing here and/or is there anyway I
can by-pass the mod_deflate compression?
TIA.
--- End Message ---
--- Begin Message ---
Cabbar Duzayak wrote:
> Before I start, I am using apache 2.0.52 with PHP 4.3.9.
>
> In my .htaccess, I have a rewrite rule that rewrites /bb.flv as
> /bb.php, and this bb.php file reads a flv file and outputs it. In the
> PHP file, I am specifying content-type as video/x-flv and
> content-length, however mod_deflate still compresses this, and also
> removes the content-length header from the response, and this messes
> up the flv player!...
>
> I tried everything, simply everything, and yet could not get
> mod_deflate to by-pass this file. For some reason, it does not see
> this content as video/x-flv, and treats is as regular text???? And,
> when I disable the mod_deflate filter, everything returns back to
> normal. BTW, I am not doing any compression on the PHP side!...
>
> Things I tried are:
>
> + AddOutputFilterByType DEFLATE text/html text/plain text/xml
>
> + SetEnvIfNoCase Request_URI \
> \.(?:gif|jpe?g|png|flv)$ no-gzip dont-vary
have you tried something like this:?
\(?:\/bb\.php|.(?:gif|jpe?g|png|flv))$ no-gzip dont-vary
>
> I tried putting these in <directory>, <location>, <virtual> and global
> context, and none of them worked. Additionally, I tried to rewrite the
> type using the rewriterule as:
> RewriteRule ^bb.flv /bb.php [T=video/x-flv]
>
> I also tried ForcedType, AddTpe, AddOutputFilter (by extension), etc. etc.
>
> But, still the output is compressed. And, the response headers I am
> seeing are:
>
> content-disposition: inline; filename=123.flv
> Vary: Accept-Encoding
> Content-Encoding: gzip
> Keep-Alive: timeout=5, max=96
> Connection: Keep-Alive
> Transfer-Encoding: chunked
> Content-Type: video/x-flv
>
> Can you please tell what I am missing here and/or is there anyway I
> can by-pass the mod_deflate compression?
>
> TIA.
>
--- End Message ---
--- Begin Message ---
Hello
I use php_ldap (see the php.net/ldap) to authenticate users against a AD
server. However, this is the LDAP interface and I don't know if poeple will be
allowed to change their password that way...
vincent
-----Original Message-----
From: Saqib Ali [mailto:[EMAIL PROTECTED]
Sent: Thu 7/12/2006 18:45
To: [email protected]
Subject: [PHP] Active Directory password change utility in PHP
Hello All,
Last year I wrote a small ASP utility which allowed domain users to
change their Active Directory password using a web site. The utility
used ADSI (Active Directory Service Interfaces) so it was quite easy
to implement.
However now we would like to integrated this into our LAMP based
stack, so I am planning to re-write the application in PHP.
Would it be possible to write such a application in PHP? If so, can
you please give me some pointers. My other PHP apps talk to AD using
LDAP libraries, but I haven't tried password change for a directory
that spans multiple domains.
Any suggestions would be greatly appreciate.
saqib
http://www.full-disk-encryption.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello,
the Zend Framework, as others, offers a MVC implementation for PHP.
I guess my understanding of this is right, but I still have a question. Maybe
you can help.
Depending on the request, a controller is called. This can do various stuff w/o
model(s), and then a view is displayed.
That is, only one vue is displayed at a time. We use this happily into
applications where input or list forms are displayed one at a time. The top
banner template is included into every application view so that is will always
be displayed.
But I do not like the idea to embed (include) the top banner template into
every view.
The problem is even more obvious when we want to create a 'portal' layout,
displaying many information panels, which should be splitted into many
models/views.
For example, a portal homepage may display a login form, a news feed, a banner,
a footer, a poll, etc. When the user enters a bad username into the login form,
we should re-display the portal page and provide the error message near the
login form.
So, the request to the login controller should be able to re-display the
complete layout.
How do you handle this?
frames? iframes? ajax? other?
thanks for your interest.
Vincent
--- End Message ---
--- Begin Message ---
# [EMAIL PROTECTED] / 2006-12-08 10:59:51 +1100:
> Roman Neuhauser wrote:
> ># [EMAIL PROTECTED] / 2006-12-07 13:41:00 +0100:
> >>I wrote a recursive function, but when running the function appache
> >>stalls, the error log says:
> >>
> >>module mod_php4.c is already running, skipping
> >
> > That has nothing to do with the function call.
> >
> >>Is this a bug, or am I doing something wrong?
> >
> > The bug is in your code.
>
> Not a bug in the code.
>
> You have two calls to mod_php4.c in your apache config file(s).
that's completely unrelated to his apache "stalling" when he calls his
recursive function.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
--- End Message ---
--- Begin Message ---
Aras wrote:
> Hello
>
> Despite all of my results to succeed, i can not make this work. What i want
> to do is to write a simple socket server in PHP. My current example just
> prints the same character, you send to server from keyboard. It is
> successfull in forking, and generates child as people connect. However in
> any way the client exits, the child process remains defunct on system. I am
> trying to use signal handling, but some comments say through hanging
> sockets, it is not possible to handle signals.
>
> How can i stop this from happening, i am attaching the code i am working on,
> the 2 signals added at the bottom are just for test there, i tried all other
> signal types. Sending a posix_kill(posix_getpid(), SIGKILL) to the process
> when the client exits does not kill it too, it still is defunct.
I don't know what is going wrong bu5t I would like to ...
If it were my problem I'd start by configuring more calls to pcntl_signal()
to cover all signals and add some more info to the output of your signal handler
so you can see whats what (e.g. pid etc) - maybe some signals are being sent but
your not trapping them...
also does removing the pcntl_signal() calls completely have any positive effect.
sorry if I suggesting stuff that is obvious to you - I still kind of new
to all this cmdline scripting, process signalling, etc - although it's something
that has been keeping me busy and I'm looking to increase my understanding.
>
> My code: http://pastey.net/2910
>
>
> Thanks!
> Aras
>
--- End Message ---
--- Begin Message ---
# [EMAIL PROTECTED] / 2006-12-02 02:01:35 +0200:
> Hello
>
> Despite all of my results to succeed, i can not make this work. What i want
> to do is to write a simple socket server in PHP. My current example just
> prints the same character, you send to server from keyboard. It is
> successfull in forking, and generates child as people connect. However in
> any way the client exits, the child process remains defunct on system. I am
> trying to use signal handling, but some comments say through hanging
> sockets, it is not possible to handle signals.
>
> How can i stop this from happening, i am attaching the code i am working on,
> the 2 signals added at the bottom are just for test there, i tried all other
> signal types. Sending a posix_kill(posix_getpid(), SIGKILL) to the process
> when the client exits does not kill it too, it still is defunct.
>
> My code: http://pastey.net/2910
The parent needs to wait(2) for its children. http://php.net/pcntl_wait
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
--- End Message ---