[PHP] php5beta4 problem

2004-02-12 Thread Gareth Thomas
Hi, just updated from beta3 (which worked fine) and now my system is hosed. I am running Apache 1.3.29 on WinXP and when I try and simply bring up phpinfo I get the following message in the Apache error log file: Premature end of script headers: c:/php/php.exe Anyone any idea what is causing

[PHP] cli file open problem

2003-08-03 Thread Gareth Thomas
Hi, I am trying to write data to a text file on my Windows 2000 server using PHP at the command line. I am running PHP 4.3.2, and the script uses the 'touch' function to create the file (which works fine) but when I try and open the file to write to it and errors. Anyone any idea? I have checked

[PHP] linux cpu usage

2003-01-24 Thread Gareth Thomas
Hi all, I have a command line PHP script that is in a continous loop to monitor a particular database event. I am running RedHat 8 and the only problem I am finding is that it hogs the CPU. I developed the script originally on Windows and it worked better there. Is there a way to limit CPU

Re: [PHP] apache and php

2003-01-09 Thread Gareth Thomas
Original Message- From: Gareth Thomas [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 January 2003 12:03 PM To: [EMAIL PROTECTED] Subject: [PHP] apache and php I am trying to run a PHP page from my browser (Mozilla) and each time I load the page it is attempting to force a dowload of

[PHP] apache and php

2003-01-08 Thread Gareth Thomas
I am trying to run a PHP page from my browser (Mozilla) and each time I load the page it is attempting to force a dowload of the page instead, based on the mime-type. I had been developing a command line PHP application which works fine and then had just started on a web interface and realised

[PHP] socket timeout

2002-12-05 Thread Gareth Thomas
Hi, I am attempting to timeout a socket_read() that is part of a handshaking process using socket_set_timeout(). Problem is it doesn't seem to work at all. If I switch of the handshaking write on the server side the read just sits there and doesn't time out at all. I have tried

[PHP] Re: socket timeout

2002-12-05 Thread Gareth Thomas
built my own timeout loop into the code and voila!! Gareth Gareth Thomas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I am attempting to timeout a socket_read() that is part of a handshaking process using socket_set_timeout(). Problem is it does

[PHP] re-writing to the same socket

2002-11-26 Thread Gareth Thomas
Hi, I have some code that writes data to a socket (works fine) and stores the resource id created in a table with the column defined as varchar (80). Then the next time I need to write data to the same IP I retrieve the resource id and reuse it. Problem is that the socket_write seems to work fine

[PHP] sockets (again)

2002-11-25 Thread Gareth Thomas
Hi, I really need some help here because I am going to lose my mind otherwise!! A script that was running fine Friday has decided not to work for no apparent reason today. The problem seems to be with a socket_create that just stops the script, so I created a simple test script as shown below to

[PHP] sockets

2002-11-21 Thread Gareth Thomas
Hi, I realise that sockets is still 'experimental' but any help will be much appreciated. I am developing a queue system to send commands across from a server to a client using sockets. Problem is that the I keep getting a 'connection reset by peer' error after the first command is sent. The

[PHP] sockets

2002-11-07 Thread Gareth Thomas
Hi, I am running 4.3.0pre2 on RH 7.2 and on Windows2k I am trying to implement a socket based client/server communication program with the server being on the Linux side and the current test client on windows (although it will be on Linux eventually). A series of commands is sent by the client