[PHP-WIN] RE: How did you realised an asyncron job

2004-05-10 Thread Svensson, B.A.T. (HKG)
%man sh hints: , fork() -Original Message- From: [EMAIL PROTECTED] To: Svensson, B.A.T. (HKG) Sent: 10-5-2004 15:34 Subject: How did you realised an asyncron job Reply-To: [EMAIL PROTECTED] I am trying to start on LInux an asyncron job. Here is how I tryed and it didn't worked:

Re: [PHP-WIN] How to check port conection? socket_connect and fsockopen have problems

2004-05-10 Thread Sherry
I don't need 1000 times at once... But I want to check ports periodically... For example, every 2 minutes I must check 10 ports... So 1000 times * 2 / 10 = 200 minutes = only 3 hours... :( So, in one week, I'll have 7*24*60*10/2=50 000 connection in LISTENING state! To close these connection, I

RE: [PHP-WIN] Is this possible

2004-05-10 Thread George Pitcher
Trevor, I think I have this one licked. Not tested yet, but a little bit of javascript and it should work like a dream. Ta for helping me focus. George -Original Message- From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] Sent: 7 May 2004 6:22 pm To: [EMAIL PROTECTED] Cc: George

RE: [PHP-WIN] How to check port conection? socket_connect and fsockopen have problems

2004-05-10 Thread Gryffyn, Trevor
Well, two things come immediately to mind. Using sleep() or continuously cycling and checking to see if the current time matches whatever time criteria you need (8:00am, minutes divisible by 10, etc). Then you don't need to hammer the sockets 1000+ times per second. -TG -Original

RE: [PHP-WIN] How to check port conection? socket_connect and fso ckopen have problems

2004-05-10 Thread Svensson, B.A.T. (HKG)
Ok, I see the nature of the problem now. You probably get all these SYNC_SENT and TIME_WAIT because the hand shake is not properly done between the machines. SYNC_SENT means that the local socket is trying to established a connection. TIME_WAIT indicates that no shutdown is (yet) recived from

[PHP-WIN] working on phpnuke - submit topics module, need help on File upload

2004-05-10 Thread Exiang
I had posted the following msg at phpnuke.org but nobody reply me. I not sure izzit suitable to post up here but i am urgently need for help. My post: -- I am working on a

Re: [PHP-WIN] How to check port conection? socket_connect and fsockopen have problems

2004-05-10 Thread Sherry
Errr... I have so bad English??? :) I doesn't mean 1000 times per second! I mean 10 times per 2 minutes... So, in 3 hours I'll have about 1000 open connections! And the main problem is these opened connections... Best regards, Sherry. Trevor Gryffyn [EMAIL PROTECTED] ???/ ?

Re: [PHP-WIN] How to check port conection? socket_connect and fsockopen have problems

2004-05-10 Thread Sherry
BAT, I have tried fsockopen and socket_connect on two machines. First comp has Kerio firewall, and second hasn't any firewall. Problem persists on each machine. And I can't look at remote socket... Comp on other end just doesn't exist... :) After timeout (when using fsockopen) SYNC_SENT connection

RE: [PHP-WIN] How to check port conection? socket_connect and fso ckopen have problems

2004-05-10 Thread Svensson, B.A.T. (HKG)
LISTNING is the state a server (listner) normally should be in, or do I miss something here? That you can replicate it on anotehr machines, does not say that very much. It can still be 1) the network, 2) wrong handling of sockets in the program, 3) something else. I guess I need to have a closer

Re: [PHP-WIN] How to check port conection? socket_connect and fsockopen have problems

2004-05-10 Thread Sherry
Heh... I mean not LISTENING on 80 port! I mean LISTENING on each of these connections! For example, My IP is 192.168.18.1 and I try to check port 21 on IP 192.168.18.33. When I call fsockopen, apache open 2(!) connections: 192.168.18.1:3256192.168.18.1:0LISTENING(3256

[PHP-WIN] no value for upload_tmp_dir...

2004-05-10 Thread Marvin Cummings
Sorry if this kind of an easy but can someone advise me on how to add a value for upload_tmp_dir? I have php4.3.4 installed on a w2k3 server running postnuke and mysql5. I notice in phpinfo.php that upload_tmp_dir says no value even though the directory is defined in the php.ini file. This is

[PHP-WIN] I a list of PHP 5 reserved words please!

2004-05-10 Thread Sonia Desbiens
Hi I have a few clients that have upgraded to PHP 5 for development projects and I am running into problems with class object naming for all my classes and COM objects that use '$this-' $this = new COM ( 'ibmTransate.Server' ); $this-MimeType = 'text/' . ( $key-type == '1' ? 'text' : 'html'

RE: [PHP-WIN] How to check port conection? socket_connect and fso ckopen have problems

2004-05-10 Thread Svensson, B.A.T. (HKG)
Why do you need to call a socket 1000 times in order to find out if a service is available or not? -Original Message- From: Sherry To: [EMAIL PROTECTED] Sent: 8-5-2004 17:03 Subject: [PHP-WIN] How to check port conection? socket_connect and fsockopen have problems Hi, I have Apache