Re: [PHP] "use strict" or similar in PHP?

2009-02-26 Thread Lewis Wright
Yes you can use: error_reporting(E_ALL); Which will enable notices. You can even do: error_reporting(E_ALL | E_STRICT); To enable strict messages. Lewis. 2009/2/26 Hans Schultz : > Hello, > I am beginner with PHP and prior to PHP I have worked with java for some > time > and with perl for ver

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Lewis Wright
2009/2/24 Bob McConnell : > From: Lewis Wright >> >> Turn on notices and maybe even strict messages (in your development >> environment), and PHP should warn you of any deprecated code. > > Easier said than done. I don't have an IDE available. I have tried the &g

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Lewis Wright
I'm sorry, Gmail makes me do it! 2009/2/24 Ashley Sheridan : > On Tue, 2009-02-24 at 20:18 +0000, Lewis Wright wrote: >> Forgot to click reply all! Sorry. >> >> -- Forwarded message -- >> From: Lewis Wright >> Date: 2009/2/24 >> Subj

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Lewis Wright
Forgot to click reply all! Sorry. -- Forwarded message -- From: Lewis Wright Date: 2009/2/24 Subject: Re: [PHP] help installing phpDocumentor To: a...@ashleysheridan.co.uk Turn on notices and maybe even strict messages (in your development environment), and PHP should warn you

Re: [PHP] php cli memory leak error

2009-02-19 Thread Lewis Wright
2009/2/19 Jochem Maas : > Thodoris schreef: >>> >>> >>> seems to work fine here. >>> >>> What are your php.ini (memory related) settings? >>> >>> run: >>> >>> /usr/local/bin/php --ini >>> >>> and get the location of the php.ini file that is getting used. Check >>> our the memory settings in that f

Re: [PHP] function array problem

2009-02-17 Thread Lewis Wright
What about: function addEvent($values='') { !is_array($values) && $values = Array('name' => '', 'venue' => '', 'description' =>'', 'errors' => Array()); //rest of the code } It's nice and sort. 2009/2/17 Ashley Sheridan : > On Tue, 2009-02-17 at 15:21 -0500, Andrew Ballard wrote: >> On Tue,

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Lewis Wright
But that's where mistakes are often made. It also means you need to maintain a different live version to that of your development version. If find it much easier to have relative paths and then there's no build process needed to go live, I can just upload it. 2009/2/17 Michael A. Peters : > Virgil

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Lewis Wright
I don't think you can unfortunately. 2009/2/16 Brian Dunning : > And an equally important question: How do you prevent your servers from > showing up in searches like this? > > On Feb 16, 2009, at 7:51 AM, Lewis Wright wrote: > >> This may be a little more accurate: >

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-16 Thread Lewis Wright
I'd personally say that PHP was originally intended to essentially be a framework for the web, but has since evolved in to its own language. It's just my opinion though... 2009/2/16 Thodoris : > >> Hello list. >> >> Recently we had some serious discussion on local boards. >> >> I prefer calling PH

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Lewis Wright
This may be a little more accurate: http://www.domaintools.com/reverse-ip/ But I think you have to pay if you want to use it a lot. 2009/2/16 Jonesy : > On Mon, 16 Feb 2009 10:26:17 -0500, Robert Cummings wrote: >> On Mon, 2009-02-16 at 10:11 -0500, tedd wrote: >>> At 9:17 PM -0500 2/15/09, Andre