Re: [PHP] ErrorDocument 500 and PHP

2011-01-04 Thread David Lidstone
On 03/01/2011 20:26, Ashley Sheridan wrote: On Mon, 2011-01-03 at 15:11 -0500, Bastien Koert wrote: On Mon, Jan 3, 2011 at 2:30 PM, David Lidstoned...@elocal.co.uk wrote: On 03/01/2011 18:38, Nilesh Govindarajan wrote: On 01/03/2011 11:46 PM, David Lidstone wrote: Hi First up, I

[PHP] ErrorDocument 500 and PHP

2011-01-03 Thread David Lidstone
Hi First up, I apologise as this must have been posted before, but the server is so slow I can't search, or even read messages often. I'm using Thunderbird - any tips on how to access news.php.net faster!? In Apache, I can set ErrorDocument 404 /myerrorpage.php and it works. Doing the same

Re: [PHP] ErrorDocument 500 and PHP

2011-01-03 Thread David Lidstone
On 03/01/2011 18:38, Nilesh Govindarajan wrote: On 01/03/2011 11:46 PM, David Lidstone wrote: Hi First up, I apologise as this must have been posted before, but the server is so slow I can't search, or even read messages often. I'm using Thunderbird - any tips on how to access news.php.net

[PHP] Temporary failure in name resolution - fsockopen()

2010-03-25 Thread David Lidstone
We recently para-virtualised a Xen / CentOS box which is running script which uses fsockopen() to get a connection to an SMTP server. Since the server changes it fails approx 50% of the time with: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution We've tried

Re: [PHP] Temporary failure in name resolution - fsockopen()

2010-03-25 Thread David Lidstone
Nilesh Govindarajan wrote: On 03/25/2010 03:51 PM, David Lidstone wrote: We recently para-virtualised a Xen / CentOS box which is running script which uses fsockopen() to get a connection to an SMTP server. Since the server changes it fails approx 50% of the time

Re: [PHP] create/write to psd file

2008-10-30 Thread David Lidstone
Ashley Sheridan wrote: On Wed, 2008-10-29 at 15:22 +, David Lidstone wrote: Ashley Sheridan wrote: On Mon, 2008-10-27 at 07:55 +0100, Martin Zvarík wrote: What I know is that you can control GIMP over the command line = you can use PHP to do this. Though I guess GIMP

Re: [PHP] create/write to psd file

2008-10-29 Thread David Lidstone
Ashley Sheridan wrote: On Mon, 2008-10-27 at 07:55 +0100, Martin Zvarík wrote: What I know is that you can control GIMP over the command line = you can use PHP to do this. Though I guess GIMP doesn't support PSD files, I had to express myself anyways. vuthecuong napsal(a): Hi all Is

[PHP] Re: Version Control Software

2008-09-19 Thread David Lidstone
Benjamin Darwin wrote: After reading a topic on the list here about someone losing their website, and having a minor mistake on my own that cost me a week's work on a file (basically, tested the file, then uploaded to the live site and took the daily backup off the live site.. only to find the

Re: [PHP] Recursive Iteration over a collection of objects

2008-09-08 Thread David Lidstone
must have been covered many times before, but every time I try to search, the server times out. Thanks once again, David Nathan Nobbe wrote: On Sun, Sep 7, 2008 at 11:05 AM, Jochem Maas [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: David Lidstone schreef: Hi I am

[PHP] Recursive Iteration over a collection of objects

2008-09-04 Thread David Lidstone
Hi I am getting myself quite confused while trying to use SPL to recursively iterate through a collection of objects, and any help would be greatly appreciated! My collection of objects is contained in a class (which I frequently use to iterate through objects stored in an array in the

[PHP] Re: dynamic boxes problem... JS and PHP

2008-04-10 Thread David Lidstone
Ryan S wrote: Hey everyone, A bit of a puzzle here, dont know if this is a JS problem or PHP or FF or just me. (My money is on the last one :p ) Here's what I am trying to do: In a form I have a listbox with the values 1-5, and under the listbox i have a TD with the id of recips

[PHP] Pattern etc to reduce duplicated validation?

2008-03-27 Thread David Lidstone
Hi All I seem to be writing a lot of this: // SCRIPT = $var = $_POST['var']; // validate $var $foo = new foo; $foo-setBar($var); // CLASS == class foo { public function setBar($var) { // validate $var } } As you can see, the issue is that I