Re: [PHP] Newbie Question

2011-01-05 Thread Daniel Brown
On Wed, Jan 5, 2011 at 19:45, David Harkness wrote: [snip!] > > Most companies will gladly give their product away to put it in the hands of > soon-to-be-professionals. :) Tedd had his chance to be professional back in the forties (the eighteen-forties, I believe). Now he teaches others who

Re: [PHP] Global or include?

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 3:27 PM, Nathan Nobbe wrote: > if($cachedConfig !== null) > { >// load file and store value(s) in $cachedConfig > } > "No config for you ... one year!" Sorry, couldn't resist. :p To expand on Nathan's excellent strategy, you could go one further and add functions

Re: [PHP] Newbie Question

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 3:05 PM, tedd wrote: > I spent a couple of hours reviewing PHPStorm and it looks *very* promising! Thank you for sharing your thoughts on PHPStorm. My main performance gripe with NetBeans has lessened in the year I've been using it, so I'm less inclined to go up yet anoth

Re: [PHP] Global or include?

2011-01-05 Thread Nathan Nobbe
On Wed, Jan 5, 2011 at 4:27 PM, Nathan Nobbe wrote: > On Wed, Jan 5, 2011 at 3:40 PM, Paul Halliday wrote: > >> Say you have 10 or so scripts and a single config file. If you have >> main.php, functions1.php, functions2.php, functions3.php.. >> >> Does is hurt to do an include of the config file

Re: [PHP] Global or include?

2011-01-05 Thread Nathan Nobbe
On Wed, Jan 5, 2011 at 3:40 PM, Paul Halliday wrote: > Say you have 10 or so scripts and a single config file. If you have > main.php, functions1.php, functions2.php, functions3.php.. > > Does is hurt to do an include of the config file in each separate > script, even if you only need a few things

Re: [PHP] Newbie Question

2011-01-05 Thread tedd
At 8:32 AM -0800 1/5/11, David Harkness wrote: On Wed, Jan 5, 2011 at 8:20 AM, tedd <tedd.sperl...@gmail.com> wrote: I teach using NetBeans, because it generally sucks less than Eclipse. Eclipse is simply too complicated and NetBeans tries to be less, but it's

Re: [PHP] Global or include?

2011-01-05 Thread Nicholas Kell
On Jan 5, 2011, at 4:40 PM, Paul Halliday wrote: > Say you have 10 or so scripts and a single config file. If you have > main.php, functions1.php, functions2.php, functions3.php.. > > Does is hurt to do an include of the config file in each separate > script, even if you only need a few things

[PHP] Global or include?

2011-01-05 Thread Paul Halliday
Say you have 10 or so scripts and a single config file. If you have main.php, functions1.php, functions2.php, functions3.php.. Does is hurt to do an include of the config file in each separate script, even if you only need a few things from it, or should you just specify what you want with a 'glo

Re: [PHP] Newbie Question

2011-01-05 Thread sono-io
On Jan 4, 2011, at 5:27 AM, Steve Staples wrote: > I now use Komodo (the free version) on my ubuntu workstation, and I love > it... I dont know how I managed before. I use Komodo Edit on OS X and I love it as well, except for the compare files feature. It's the worst one I've ever used

Re: [PHP] Newbie Question

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 10:35 AM, Daniel Brown wrote: > On Wed, Jan 5, 2011 at 11:32, David Harkness > wrote: > > I do have to say that NetBeans more than Eclipse will randomly become > > unusable for unknown reasons: disk and CPU activity spike, > code-completion > > lags, whatever. Eclipse seem

[PHP] [security] PHP has DoS vuln with large decimal points

2011-01-05 Thread Daevid Vincent
The error in the way floating-point and double-precision numbers are handled sends 32-bit systems running Linux, Windows, and FreeBSD into an infinite loop that consumes 100 percent of their CPU's resources. Developers are still investigating, but they say the bug appears to affect versions 5.2 and

Re: [PHP] Newbie Question

2011-01-05 Thread Robert Cummings
On 11-01-05 01:35 PM, Daniel Brown wrote: On Wed, Jan 5, 2011 at 11:32, David Harkness wrote: I do have to say that NetBeans more than Eclipse will randomly become unusable for unknown reasons: disk and CPU activity spike, code-completion lags, whatever. Eclipse seems more solid in this regard

Re: [PHP] Newbie Question

2011-01-05 Thread Daniel Brown
On Wed, Jan 5, 2011 at 11:32, David Harkness wrote: > > I do have to say that NetBeans more than Eclipse will randomly become > unusable for unknown reasons: disk and CPU activity spike, code-completion > lags, whatever. Eclipse seems more solid in this regard. Whereas, on Linux, I've found t

Re: [PHP] Hot Topics

2011-01-05 Thread Richard Quadling
On 5 January 2011 16:35, Bastien Koert wrote: > On Wed, Jan 5, 2011 at 11:31 AM, tedd wrote: >> At 2:16 AM -0500 12/30/10, Robert Cummings wrote: >>> >>> On 10-12-30 12:36 AM, Daniel Brown wrote:     Yeah, that was in for a few weeks, but I believe it was Robert Cummings who w

Re: [PHP] Unload/reload included class

2011-01-05 Thread David Harkness
On Tue, Jan 4, 2011 at 4:44 PM, Patrik Pomichal wrote: > Loading plugin is easy, when my app found new file in plugins dir, > include and register it. But if i change the plugin source i must restart > the app to reload it. If you don't mind the resource burn (memory) of loading a lot of code ov

Re: [PHP] File-Upload per Drag-N-Drop?

2011-01-05 Thread tedd
At 7:23 PM +0100 12/29/10, Michelle Konzack wrote: Hello, my users have an Online-File-Store with nearly anything they need but one feature is missing: Drag-D-Drop. I like to implement Drag-D-Drop so users can Drag a file from a File- Manager and Drop it on the Upload-Icon in my Webinter

Re: [PHP] Hot Topics

2011-01-05 Thread Bastien Koert
On Wed, Jan 5, 2011 at 11:31 AM, tedd wrote: > At 2:16 AM -0500 12/30/10, Robert Cummings wrote: >> >> On 10-12-30 12:36 AM, Daniel Brown wrote: >>> >>>     Yeah, that was in for a few weeks, but I believe it was Robert >>> Cummings >>> who went out of his way to show its imperfections. Maybe we s

Re: [PHP] Newbie Question

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 8:20 AM, tedd wrote: > I teach using NetBeans, because it generally sucks less than Eclipse. > Eclipse is simply too complicated and NetBeans tries to be less, but it's > still too much. > Have you tried PHPStorm? I installed it but haven't had a chance to play with it yet

Re: [PHP] Hot Topics

2011-01-05 Thread tedd
At 2:16 AM -0500 12/30/10, Robert Cummings wrote: On 10-12-30 12:36 AM, Daniel Brown wrote: Yeah, that was in for a few weeks, but I believe it was Robert Cummings who went out of his way to show its imperfections. Maybe we should incorporate a syntax checker to show parse errors for the we

Re: [PHP] Hot Topics

2011-01-05 Thread tedd
At 11:48 PM -0500 12/29/10, Jason Pruim wrote: And as someone who is married as well I agree with what you said. Sometimes it's easier to just say you're sorry then fighting even when you know you're right. Jason Pruim It's much easier when you realize you are never right. Cheers, tedd --

Re: [PHP] Hot Topics

2011-01-05 Thread tedd
At 9:22 PM -0500 12/29/10, Daniel Brown wrote: I'm particularly interested in the opinions of folks who recall the old system, but any opinions and ideas are more than welcome. Hi Daniel: I think it was a good idea and practice -- look forward to seeing it again. +1 Cheers, tedd PS: Also,

Re: [PHP] Newbie Question

2011-01-05 Thread tedd
At 7:43 PM -0600 1/2/11, Larry Garfield wrote: On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating vim

Re: [PHP] Newbie Question

2011-01-05 Thread tedd
At 9:36 PM -0300 1/1/11, Adolfo Olivera wrote: Hi, I'm new for php. Just trying to get my hello world going on godaddy hosting. Can't getting to work. I think sintax it's ok. I was understanding that my shared hosting plan had php installed. Any suggestions. Thanks, Happy 2011!! PS: Please