[PHP] Debugging

2009-04-24 Thread George Larson
Understanding that some coders are diametrically opposed to all assistance from debuggers as crutches, I offer this link for the rest of us: http://particletree.com/features/php-quick-profiler/ Mine was pointing to the wrong folder and still has some warnings so I think these guys might have hurri

Re: [PHP] Multiple return statements in a function.

2009-04-23 Thread George Larson
On Thu, Apr 23, 2009 at 8:25 AM, Per Jessen wrote: > Peter van der Does wrote: > >> I tend to put my return value in a variable and at the end of the >> function I have 1 return statement. >> I have seen others doing returns in the middle of the function. >> >> Example how I do it: >> function che

Re: [PHP] alt() - unknown function?

2009-04-15 Thread George Larson
This is someplace where NetBeans really benefits me. You can hit CTRL-B, or right-click, to take you to a definition. Holding CTRL turns darned-near everything into a hyperlink, doing the same thing. Lastly, CTRL-SHIFT-F lets you search through every file in the project for your string. Finding

Re: [PHP] extracting text - regex

2009-04-08 Thread George Larson
On Wed, Apr 8, 2009 at 9:13 AM, George Larson wrote: > I'm what you might consider rather green, myself. > I certainly wouldn't use this code for production but if you're just > debugging or something then how about something like this: > > $handle = @fo

Re: [PHP] extracting text - regex

2009-04-08 Thread George Larson
I'm what you might consider rather green, myself. I certainly wouldn't use this code for production but if you're just debugging or something then how about something like this: ") !== FALSE) { $echo_output = TRUE; } if (strpos($eos,"<\div>") !== FALSE) { $echo_output = FALSE; }

Re: [PHP] [php] scheduled task in php

2009-04-02 Thread George Larson
On Thu, Apr 2, 2009 at 10:12 AM, Kyle Smith wrote: > There's no need for third party software, windows has a scheduled task > system. > > Make a scheduled task and for the application select the php executable > (Maybe C:\PHP\bin\php.exe, or some such.). Once the wizard is complete > select the c

Re: [PHP] Workflow app for software

2009-04-01 Thread George Larson
Please quit side-posting. Thanks. On Wed, Apr 1, 2009 at 2:58 PM, Robert Cummings wrote: > I for one don't find you very | On Wed, 2009-04-01 at 11:46 -0700, > funny Bruce. It's common knowledge | bruce wrote: so haliphax... > that it's very difficult to follow | > > side posts. If not alre

[PHP] PHP task manager

2009-03-31 Thread George Larson
We've got a homebrew ToDo list (task & project) manager / mailer that we're thinking about replacing with something a little more robust. Any suggestions? I saw TaskFreak! on Google but I am curious if there are any personal recommendations out there. Thanks! G

Re: [PHP] So called "PHP Expert"

2009-03-23 Thread George Larson
OMGBBQ I didn't even catch that! He truly is the c0d1ng g0d! On Mon, Mar 23, 2009 at 12:45 PM, haliphax wrote: > On Fri, Mar 20, 2009 at 5:27 PM, דניאל דנון wrote: > > ---8<--- > > > ### > > function h3x($envar){ > >$hax3d = bin2hex($envar); > >

Re: [PHP] Proper code formatting

2009-03-23 Thread George Larson
like lower case variable names with underscores for spaces while the next guy likes each letter of a new word in uppercase. However, I can imagine it getting out of control as the code continues to grow. On Mon, Mar 23, 2009 at 8:48 AM, Jason Pruim wrote: > George Larson wrote: > >&g

Re: [PHP] Proper code formatting

2009-03-23 Thread George Larson
On Mon, Mar 23, 2009 at 8:23 AM, Shawn McKenzie wrote: > Bob McConnell wrote: > > From: Michael A. Peters > >> Angus Mann wrote: > >>> Hi all, I'm fairly new to PHP so I don't have too many bad habits > > yet. > >>> I'm keen to make my code easy to read for me in the future, and for > >>> others a

Re: [PHP] Web Development/Application Analysis

2009-03-22 Thread George Larson
2009/3/22 OOzy Pal > On Sat, Mar 21, 2009 at 6:33 PM, tedd wrote: > > At 6:15 PM +0300 3/21/09, OOzy Pal wrote: > >> > >> Tedd, > >> > >> You wrote a long story about a client hiring a programmer which not > >> what I am asking. > >> > >> Anyhow, thank you for your post. I learned from it. > >>

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread George Larson
**On Sat, Mar 21, 2009 at 10:27 AM, Hans Schultz wrote: > Hi Virgilio, > Thanks for that last link, I just know need to figure out why my Netbeans > doesn't work > like that (although I am using latest version) > > On Sat, 21 Mar 2009 10:56:46 +0100, Virgilio Quilario < > virgilio.quila...@gmail.c

Re: [PHP] Web Development/Application Analysis

2009-03-21 Thread George Larson
On Sat, Mar 21, 2009 at 9:40 AM, tedd wrote: > At 11:45 PM +0300 3/20/09, OOzy Pal wrote: > >> I guess I did not make it clear. Sorry guys/gals. I forgot to tell you >> that I own a web development/design company. >> >> Thank you >> >> -- >> OOzy >> > > What does that have to do with your questio

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread George Larson
On Sat, Mar 21, 2009 at 8:58 AM, tedd wrote: > At 1:03 PM -0500 3/20/09, Lists wrote: > >> tedd wrote: >> >>> Now, can you show me how to pull data from a mysql database so that the >>> input statements can be created dynamically? >>> >> >> >> Sure, >> On the WebDNA side, it's something like this

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-20 Thread George Larson
Ooops! Those were v5.5 videos.. A little newer stuff is here: http://www.netbeans.org/kb/docs/screencasts.html On Fri, Mar 20, 2009 at 7:44 PM, George Larson wrote: > Netbeans does have some sick fanciness... Auto-suggest, leaving your > cursor over a variable momentarily highlig

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-20 Thread George Larson
Netbeans does have some sick fanciness... Auto-suggest, leaving your cursor over a variable momentarily highlights it everywhere in the code and define labeled folding points. You can press CTRL-R to rename that variable everywhere it is used in the code. If you can figure out how to set it up w

Re: [PHP] PHP blogs?

2009-03-20 Thread George Larson
Got it! Thanks! On Fri, Mar 20, 2009 at 2:53 PM, Stuart wrote: > 2009/3/20 George Larson : > > I'm reorganizing my reader. Anybody suggest any good PHP feeds? > > http://www.planet-php.net/ is an aggregator of some of the good stuff > that's out there. > > -Stuart > > -- > http://stut.net/ >

Re: [PHP] PHP blogs?

2009-03-20 Thread George Larson
Fantastic! No, I had somehow managed to overlook that one. Thanks! On Fri, Mar 20, 2009 at 2:49 PM, Daniel Brown wrote: > On Fri, Mar 20, 2009 at 14:37, George Larson > wrote: > > I'm reorganizing my reader. Anybody suggest any good PHP feeds? > > Are you already

Re: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-20 Thread George Larson
it. > > You're funny!!! > > :0) > > Now get to work! > > > > -Original Message- > From: George Larson [mailto:george.g.lar...@gmail.com] > Sent: Friday, March 20, 2009 11:42 AM > To: webdes...@ginkga.com > Cc: Thiago H. Pojda; php-general@lists.php.n

Re: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-20 Thread George Larson
pretty > good guy when he isn't being so defensive. > > > Anyway, nice meeting you all, even it was on such terms. > > God Bless. > > XOXOXOXO > > > > > -Original Message- > From: George Larson [mailto:george.g.lar...@gmail.com] > Sent: Friday,

[PHP] PHP blogs?

2009-03-20 Thread George Larson
I'm reorganizing my reader. Anybody suggest any good PHP feeds?

Re: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-20 Thread George Larson
Oh, good; I look forward to polishing your nails... spammer. On Fri, Mar 20, 2009 at 2:29 PM, Thiago H. Pojda wrote: > On Fri, Mar 20, 2009 at 3:23 PM, Ginkga Studio, LLC >wrote: > > > > > IF YOU WERE MY HUSBAND I WOULD SPANK YOUR ASS SO HAR YOU'D NEVER TALK > BACK > > ANY WOMAN EVER AGAIN !!! >

Re: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-20 Thread George Larson
I believe that I read somewhere that she designs all web sites in a French maid uniform. On Fri, Mar 20, 2009 at 1:21 PM, Jay Blanchard wrote: > [snip]"hey, everyone, my name is Samantha[/snip] > > This thread is worthless without pictures. >

Re: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-20 Thread George Larson
Not only that but, judging from the phone number, Samantha cleans also cleans houses: http://betterthancleanmaidandmaintenanceservices.com/choose-us/contact-us-mainmenu-3/12-contacts/1-name.html On Fri, Mar 20, 2009 at 10:57 AM, Jochem Maas wrote: > Ginkga Studio LLC schreef: > > Today's Date: M

Re: [PHP] Re: Problems with exec() on windows

2009-03-20 Thread George Larson
I've skimmed some of thread, but I have not been following closely so please disregard if I'm just rambling. However, I've worked with lots of software on DOS boxen that couldn't handle long file names. If they also choke on the tildes then I usually just write a batch file that calls the full pa

Re: [PHP] Form to pdf

2009-03-18 Thread George Larson
I'm going to print one to 'Fork and Zombies' and hang it in my office. I really mean that. On Wed, Mar 18, 2009 at 10:17 AM, Gary wrote: > I'm going to frame that and call my ma > > Can you direct me to how I can learn that? > > Thanks for your help. > > Gary > "Sperling Institute of Techno

Re: [PHP] "/home/{user}/directory"

2009-03-18 Thread George Larson
all kinds of interesting stuff with a var_dump($GLOBALS), however. :) As always, thanks everybody! On Wed, Mar 18, 2009 at 5:16 AM, Waynn Lue wrote: > bash also has $HOME, which maps to /home/USERNAME, just in case you wanted > another way. :) > > > On Tue, Mar 17, 2009 at 6:47

Re: [PHP] Re: Fork and zombies

2009-03-17 Thread George Larson
If "Fork and Zombies" was a diner... I would totally eat there. On Tue, Mar 17, 2009 at 5:00 PM, Jochem Maas wrote: > Per Jessen schreef: > > Waynn Lue wrote: > > > >> (Apologies for topposting, I'm on my blackberry). Hm, so you think > >> exiting from the child thread causes the db resource to

Re: [PHP] "/home/{user}/directory"

2009-03-17 Thread George Larson
That is correct. PHP on CLI. Thanks! On Tue, Mar 17, 2009 at 9:51 AM, Thiago H. Pojda wrote: > On Tue, Mar 17, 2009 at 10:42 AM, George Larson > wrote: > >> In my scripts, I usually define a boolean constant DEBUG. True looks for >> local copies of includes and echoes qu

Re: [PHP] "/home/{user}/directory"

2009-03-17 Thread George Larson
Thanks! On Tue, Mar 17, 2009 at 9:46 AM, Stuart wrote: > 2009/3/17 George Larson > > In my scripts, I usually define a boolean constant DEBUG. True looks for >> local copies of includes and echoes queries as they're used. >> >> My question is: >> >

[PHP] "/home/{user}/directory"

2009-03-17 Thread George Larson
In my scripts, I usually define a boolean constant DEBUG. True looks for local copies of includes and echoes queries as they're used. My question is: Is there any way for me to reflect the actual home folder of the person running the script? So it will be "/home/george/foo" when I run it but, f

Re: [PHP] Opendir on site root directory?

2009-03-09 Thread George Larson
"but it had become lost in the detritus at the back of my mind" Inappropriate as this is for _the_ PHP list -- that was a beautiful phrase, friend. On Mon, Mar 9, 2009 at 8:05 PM, Clancy wrote: > On Mon, 9 Mar 2009 10:07:33 +, stut...@gmail.com (Stuart) wrote: > > ... > >As in the examp

Re: [PHP] Script execution

2009-03-09 Thread George Larson
That's funny! I've been watching this and a few other lists (MySQL, local Linux Users' Group) for a few days - weeks and I had wondered why the PHP list seemed more hostile. :) On Mon, Mar 9, 2009 at 5:28 PM, Daniel Brown wrote: > On Mon, Mar 9, 2009 at 17:21, Daniel Brown wrote: > > > >R

Re: [PHP] Script execution

2009-03-09 Thread George Larson
I need to. Again, that's for the rapid and thorough help! G On Mon, Mar 9, 2009 at 5:17 PM, haliphax wrote: > On Mon, Mar 9, 2009 at 4:04 PM, Daniel Brown wrote: > > On Mon, Mar 9, 2009 at 16:59, George Larson > wrote: > >> > >> Am I imagining things? If not,

[PHP] Script execution

2009-03-09 Thread George Larson
Hi everybody. The "problem" that I'm having is probably because I've got more of a Windows background -- and it isn't so much a problem as a point of curiosity. I've recently noticed that when I write a script that they seem to have different permissions when executed at the command line. Two th

Re: [PHP] verify data in fields

2009-03-08 Thread George Larson
Ash certainly does raise an interesting point. :) Couldn't you just use DESCRIBE or EXPLAIN the tables through MySQL? On Sun, Mar 8, 2009 at 4:35 PM, Ashley Sheridan wrote: > On Sun, 2009-03-08 at 10:25 -0500, PJ wrote: > > My mysql table contains data. But I don't know how to verify what > >

Re: [PHP] web refreshing problem

2009-03-08 Thread George Larson
Maybe you could use a javascript refresh? But that would still mean resubmitting the form. On Sun, Mar 8, 2009 at 11:35 AM, Andrew Williams wrote: > Hi, > > my php program does not display current result of submitted form > instead the previous content is shown until you refresh manually > (which

Re: [PHP] PHP includes

2009-03-08 Thread George Larson
Right. There are several advantages to using included files. You can write routines that you're going to use repeatedly and just include the file with the code, instead of re-inventing the wheel, as they say. Consistency is another advantage. So, if you design your header, sidebar and footer a

Re: [PHP] Backend autodatabase update

2009-03-08 Thread George Larson
still running. On Sun, Mar 8, 2009 at 4:42 AM, Andrew Williams wrote: > *I want to check that the job is still running and start, if it stopped > because the program is meant to consistently update for the global market? > * > > On Sat, Mar 7, 2009 at 11:19 PM, George Larson > w

Re: [PHP] Backend autodatabase update

2009-03-07 Thread George Larson
I'm new to the list, so maybe I've missed something. Please disregard if I'm blathering idiotically. What OS are you using? Do you mean that you want to run the job repetitively (again and again) or do you mean that you want to check that the job is still running and start, if it stopped? On Sa