RE: [PHP] PHP vs JAVA

2013-08-20 Thread Steven Staples
> My recent question was simply an attempt to get documentation to support > which server-side Web Language is the most popular. Both PHP and Java can > be used server-side. > > I also realize that Java is used for native Android because I also teach > Mobile Application Development (MAD -- I even

RE: [PHP]

2013-05-08 Thread Steven Staples
> So you're just lucky I didn't acronymize it as the Pretty House of > Princesses or something. And yes, I just made up the word > acronymize. It may be Wednesday, but it feels more like a Friday. > Why does this feel like a new function/feature for PHP now? Function acronymize($acronym) {

RE: [PHP] A relative date puzzle

2013-04-01 Thread Steven Staples
> Thanks for this - I'll experiment and see if I have it. Basically I never > read the strtotime doc close enough to get past the word "now" in the > syntax. Obviously it is EXACTLY what I needed. $var = strtotime('now'); Is the same as $var = time(); Unless of course, I didn't understand wha

RE: [PHP] Date weirdness

2013-03-28 Thread Steven Staples
> I think I am losing my mind. I have some time zone converting code, and I > just don't understand what I am seeing. Also my system seems to return the > wrong time after I do some date operations on unrelated objects. > > This is from a machine that is in eastern time. I want to convert to, for

RE: [PHP] Sorry bout that...

2012-12-21 Thread Steven Staples
> You couldn't prove that by me -- I'll ask my wife. She knows everything. > > Cheers, > > tedd And this will be the last we hear of Tedd... LOL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sorry bout that...

2012-12-21 Thread Steven Staples
I would like to let everyone know that the world didn't end this morning like it was supposed too. Sorry, carry on about your business. And HAPPY FRIDAY!!! Steven Staples

RE: [PHP] foreach

2012-10-16 Thread Steven Staples
> -Original Message- > From: Matijn Woudt [mailto:tijn...@gmail.com] > Steve, > > Please watch your language on this list. > > - Matijn > My apologies, I guess using $foo == $bar would have been a better choice... I forget sometimes, I am used to chatting with my close friends, where s

RE: [PHP] foreach

2012-10-16 Thread Steven Staples
> Here's what I ended up with after you gave me the advise: > $result = mysql_query("SELECT * FROM items"); > $rows = array(); > while($row = mysql_fetch_array($result)) >$rows[] = $row; > foreach($rows as $row){ > $product = $row['product']; > $price = $row['price']; > echo "$pro

RE: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Steven Staples
> Subject: [PHP] Friday - Return of Brain Teasers > > About five-and-a-half years ago, we had a brainteasers thread going > on[1]. Last year it was briefly resurrected[2], and both times got some > good content and dialogue going. So I'd like to reprise the thread in > 2012, as well. Those

RE: [PHP] Programmers and developers needed

2012-09-13 Thread Steven Staples
> From: Tim Dunphy [mailto:bluethu...@gmail.com] > Sent: September 13, 2012 7:26 AM > > > We are looking for programmers and developers to create a world wide > system. > > Is it bigger than a bread box? Will it blend? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

RE: [PHP] What's happened to our newsgroup?

2012-06-26 Thread Steven Staples
; > Maybe they joined the British mailing list? Steven Staples -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Function size

2012-05-30 Thread Steven Staples
> Paul, > > Are you stating here that compression is a bad thing? > > That means you consider this nice: > > if ( action == A ) > { > doA(); > } > else if (action == B ) > { > doB(); > } > else > { > doC(); > } > > Or perhaps flooded with comments that merely say the same as the cod

RE: [PHP] Function size

2012-05-24 Thread Steven Staples
> My monitor can also display about 55 lines of code, my functions are, on > average, just a few lines of code though -- a maximum of about 20, with an > average of around 5 or so. > > This is because the rule of thumb I follow is that a function should do one > thing, and should be named well. Th

RE: [PHP] SqLite INSERT want not write

2012-04-19 Thread Steven Staples
> -Original Message- > From: siefke_lis...@web.de [mailto:siefke_lis...@web.de] > Sent: April 19, 2012 3:40 PM > To: php-general@lists.php.net > Subject: Re: [PHP] SqLite INSERT want not write > > Hello, > > On Thu, 19 Apr 2012 15:17:06 -040

RE: [PHP] SqLite INSERT want not write

2012-04-19 Thread Steven Staples
> -Original Message- > From: Silvio Siefke [mailto:siefke_lis...@web.de] > Sent: April 19, 2012 3:11 PM > To: php-general@lists.php.net > Subject: Re: [PHP] SqLite INSERT want not write > > On Thu, 19 Apr 2012 14:57:04 -0400 > "Steven Staples" wrote: &g

RE: [PHP] SqLite INSERT want not write

2012-04-19 Thread Steven Staples
> -Original Message- > From: Silvio Siefke [mailto:siefke_lis...@web.de] > Sent: April 19, 2012 2:53 PM > To: php-general@lists.php.net > Subject: Re: [PHP] SqLite INSERT want not write > > Hello, > > On Thu, 19 Apr 2012 13:21:46 -0500 > tamouse mailing lists wrote: > > > Maybe this wil

RE: [PHP] Re: Email Antispam

2012-04-17 Thread Steven Staples
> -Original Message- > From: Jim Giner [mailto:jim.gi...@albanyhandball.com] > Sent: April 17, 2012 4:33 PM > To: php-general@lists.php.net > Subject: [PHP] Re: Email Antispam > > > "David Mehler" wrote in message > news:CAPORhP5Cuzd0Hb9gBFLESNe5LofDODN64S2UOAuMWCb=zoh...@mail.gmail.com.

RE: [PHP] Re: php in windows

2012-04-16 Thread Steven Staples
re) Just in case you're not sure where it is, on my XP machine, I just right click on "My Computer", click "Properties" and then on the "Advanced" tab, there is a button labelled "Environment Variables" and then add the path to the PHP exe... Hope that this helps! Steven Staples -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: php in windows

2012-04-11 Thread Steven Staples
> -Original Message- > From: Kirk Bailey [mailto:kbai...@howlermonkey.net] > Sent: April 11, 2012 1:02 AM > To: php-general@lists.php.net > Subject: Re: [PHP] Re: php in windows > > ok, there is a copy of index.php ion the cgibin, and this got WAY different > results. > It puked an error.

RE: [PHP] Re: Got HTML5 History API + caching LICKED, I think,

2012-03-23 Thread Steven Staples
> -Original Message- > From: rene7705 [mailto:rene7...@gmail.com] > Sent: March 23, 2012 7:40 AM > To: php-general > Subject: Re: [PHP] Re: Got HTML5 History API + caching LICKED, I think, > > > On Fri, Mar 23, 2012 at 12:39 PM, rene7705 wrote: > > > > > > > On Fri, Mar 23, 2012 at 12:3

RE: [PHP] Printing

2012-01-05 Thread Steven Staples
did notice that you started a new thread about printing from PDF's, and if you're trying to create a document to print on your client machine, then creating a PDF is much easier. http://fpdf.org Steven Staples > -Original Message- > From: Jim Giner [mailto:jim.gi...@alba

RE: [PHP] Sniping on the List

2011-11-18 Thread Steven Staples
o be a part of, in my subconscious? Besides, are we not just all part of "The Matrix" ? (what's even more funny, is that I drive a Toyota Matrix... WEIRD) Steven Staples Web Application Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Sniping on the List

2011-11-15 Thread Steven Staples
d have thought Thursday should be NULL, but that's > > just me. And Thursday.) > > Actually, It *is* Thursday if you use UTC: > > $ TZ=UTC php -r 'echo date("r",NULL),"\n";' > Thu, 01 Jan 1970 00:00:00 + > > :P Perfect example of Tedd's last comment about being proven wrong (even though TECHNICALLY it isn't) Good job :) Steven Staples Web Application Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Steven Staples
he clients preferred to have their own IP's... long story, not my call, I just program it :P Steven Staples > -Original Message- > From: Peter Lind [mailto:peter.e.l...@gmail.com] > Sent: August 25, 2010 3:01 PM > To: a...@ashleysheridan.co.uk > Cc: Tim Martens; php-gener

[PHP] Unstoppable Script Execution

2010-08-25 Thread Steven Staples
Y, it will at least not run forever? Any help? Ideas? Is this a good idea? Steven Staples -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php