Re: [PHP] PHP vs JAVA

2013-08-20 Thread Andy McKenzie
of that bug, you get knocked down, but the vast majority of software will keep running. Java doesn't seem to work that way, at least from an IT worker's perspective. Andy McKenzie On Tue, Aug 20, 2013 at 10:00 AM, Tedd Sperling t...@sperling.com wrote: Hi guys: A teacher at my college made

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Andy McKenzie
On Tue, Aug 20, 2013 at 3:18 PM, Dan Munro d...@danmunro.com wrote: 1. There are no statement terminators. Lose your indentation for ANY reason and your program is well and truly screwed, in ways you can't imagine. 2. Python programs fail in the most ungraceful way I've ever seen in an

Re: [PHP] Web dev, DB and proper db design.

2013-07-04 Thread Andy McKenzie
I think it depends on the application. A lot of small web apps simply don't need any kind of normalization, and it really does make sense to put everything in one table, or a couple of unlinked tables. Therefore, on those apps, there's no need for foreign keys. For instance: I used one

Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread Andy McKenzie
it... I'm unemployed right now, and a project to work on this week (or next... this week is kind of busy) might be a good thing. -Andy McKenzie On Mon, Apr 1, 2013 at 6:49 PM, Mark mark...@gmail.com wrote: On Tue, Apr 2, 2013 at 12:27 AM, Sorin Badea sorin.bade...@gmail.com wrote: Hi Mark, I

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Andy McKenzie
On Thu, Feb 14, 2013 at 2:52 PM, Daniel Brown danbr...@php.net wrote: Remember to hit reply-all, Andy, so it goes to the list as well as the previous author. On Thu, Feb 14, 2013 at 2:49 PM, Andy McKenzie amckenz...@gmail.com wrote: On Thu, Feb 14, 2013 at 2:29 PM, Daniel Brown danbr

Re: [PHP] Random 404 screens

2013-02-10 Thread Andy McKenzie
On Sat, Feb 9, 2013 at 11:51 AM, Geoff Shang ge...@quitelikely.com wrote: On Sat, 9 Feb 2013, Jim Giner wrote: Lately, my web pages are giving me some problems. Once a day or so one or more of my pages/scripts will give me a 404 error page saying my web page has timed out. Problem is that

Re: [PHP] Random 404 screens

2013-02-09 Thread Andy McKenzie
On Sat, Feb 9, 2013 at 10:41 AM, Jim Giner jim.gi...@albanyhandball.com wrote: This is a tough one. Lately, my web pages are giving me some problems. Once a day or so one or more of my pages/scripts will give me a 404 error page saying my web page has timed out. Problem is that the page was

Re: [PHP] Re: limiting

2012-10-10 Thread Andy McKenzie
! -Andy McKenzie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is this list less busy than it used to be?

2012-07-04 Thread Andy McKenzie
On Wed, Jul 4, 2012 at 6:04 AM, RGraph.net support supp...@rgraph.net wrote: Hi, https://docs.google.com/spreadsheet/ccc?key=0Ak1QF0ijPYbedDNvb19SQl80MHcxUWhhbTZOYm5FUlE Yikes. That's a littled bit worrying. Or does it really mean that everyone is getting much better with PHP? :-) --

Re: [PHP] book quest

2011-09-29 Thread Andy McKenzie
Is there something wrong with the PHP.net manual?  Or you just want something physical to be able read any where and stay unplugged?  If the latter and there's nothing wrong with the official manual, try downloading the chm or single html file and print as you go.  No need to lug around thick

Re: [PHP] book quest

2011-09-28 Thread Andy McKenzie
On Wed, Sep 28, 2011 at 6:20 PM, Kirk Bailey kbai...@howlermonkey.net wrote: The best book for a beginner? No, don't tell me php.net, I hear that one already, and while it is indeed good, I want something in a dead tree edition I can canny around and smoke as needed. -- end Very Truly

Re: [PHP] Upgrade or Die?

2011-06-24 Thread Andy McKenzie
On Fri, Jun 24, 2011 at 1:30 PM, ja...@nixsecurity.org wrote: Chrome. Enough said. Now, if we can only convince the rest of the world ... Ugh. I can't stand Chrome. Of course, I gave up on Firefox years ago and went back to Opera, so it doesn't bother me when Firefox does something weird

Re: [PHP] the best 1 book for php

2011-04-07 Thread Andy McKenzie
On Thu, Apr 7, 2011 at 12:15 AM, Kirk Bailey kbai...@howlermonkey.net wrote: If I only had 1 book on php, what would it be? -- end Very Truly yours,                 - Kirk Bailey,                   Largo Florida My most common reference is, as other people have said, www.php.net. But

Re: [PHP] Question about directory permissions

2011-03-21 Thread Andy McKenzie
Sure. The script runs with the permissions of whoever is running it. In general, a PHP script that's a web page in linux will run by a user called something like apache, apache2, www-user, or something similar. If you give that user permissions -- either directly or through their group, often

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Andy McKenzie
On Mon, Mar 14, 2011 at 11:39 PM, Adam Richardson simples...@gmail.com wrote: This one's got me stumped.  I have the following line in a script: $this-bc = ($this-network | (~$this-netmask)) 4294967295; $this-network and $this-netmask should both be of type long, and I should wind up with

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Andy McKenzie
On Tue, Mar 15, 2011 at 8:07 AM, Andy McKenzie amckenz...@gmail.com wrote: On Mon, Mar 14, 2011 at 11:39 PM, Adam Richardson simples...@gmail.com wrote: This one's got me stumped.  I have the following line in a script: $this-bc = ($this-network | (~$this-netmask)) 4294967295

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Andy McKenzie
Now:  I did a little more looking around this morning, and it looks like I may well run into problems here given that I'm moving from a 32-bit architecture to a 64-bit architecture.  Bitwise math is still fairly obscure to me, so it's likely that I'm overlooking something obvious, but maybe

[PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-14 Thread Andy McKenzie
Greetings, I'm moving some scripts from an older server (SuSE who-knows-what, running PHP 5.2.5) to a newer one (Ubuntu 10.10, running PHP 5.3.2). For the most part there haven't been any problems, or they've been things that I was able to fix easily. This one's got me stumped. I have the

Re: [PHP] How to write code: how wrong am I?

2011-02-22 Thread Andy McKenzie
On Tue, Feb 22, 2011 at 6:29 AM, Dotan Cohen dotanco...@gmail.com wrote: I wrote a short page on how to actually type of code that one writes, it can be found here: http://dotancohen.com/howto/write_code.html The point that I stress on the page is that first you close an element, then you

[PHP] Cross-platform IDE

2011-01-26 Thread Andy McKenzie
Hey folks, Hopefully this is enough on-topic not to annoy anyone. Up until now I've mostly written small one-off scripts -- a web page that needs a few things dynamically generated, a shell script to do a small job, things like that -- and vim has been more than adequate. I'm currently

Re: [PHP] Cross-platform IDE

2011-01-26 Thread Andy McKenzie
On Wed, Jan 26, 2011 at 8:51 AM, Lester Caine les...@lsces.co.uk wrote: Andy McKenzie wrote: So:  does anyone have a recommendation for an IDE that works in Windows, Mac, and Linux?  I spend roughly equal time in all three, and I haven't found a tool I like yet that works in all of them

Re: [PHP] Command line PHP

2011-01-07 Thread Andy McKenzie
On Fri, Jan 7, 2011 at 11:55 AM, la...@garfieldtech.com la...@garfieldtech.com wrote: Hi folks.  I have a project coming up that will involve writing a non-trivial command line PHP application.  Most of it will be nice and abstracted and standalone and all of that jazz, but it will need to do

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Andy McKenzie
PHP is basically the only language I deal with any more - and it's the only language I -want- to deal with. I hate to see basic semantics such as top post you asshole scare off fresh blood and create a hostile or otherwise discriminatory environment. Keep PHP alive and well, at least until I

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Andy McKenzie
On Fri, Oct 22, 2010 at 9:22 AM, Jay Blanchard jblanch...@pocket.com wrote: [snip] really makes me question remaining a member...it's been a close thing a few times in the last week. [/snip] $door = new door(large, heavy, swift); $door-open(); $door-hitArse(); $door-close(); C'mon, the

Re: [PHP] which one is faster

2010-10-06 Thread Andy McKenzie
On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings rob...@interjinn.com wrote: On 10-10-06 08:52 AM, Peter Lind wrote: Where exactly do you get the part about double quotes from? Can't seem to locate it in the any of the relevant specs (xhtml or xml). Also, never seen an xml or xhtml validator

Re: [PHP] which one is faster

2010-10-06 Thread Andy McKenzie
On Wed, Oct 6, 2010 at 9:25 AM, Peter Lind peter.e.l...@gmail.com wrote: On 6 October 2010 15:21, Andy McKenzie amckenz...@gmail.com wrote: On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings rob...@interjinn.com wrote: On 10-10-06 08:52 AM, Peter Lind wrote: Where exactly do you get the part

[PHP] if/elseif being treated as if/if

2010-09-24 Thread Andy McKenzie
Hey folks, Here's the deal. I have the following code: if($col_vals[$i][$val['column']] == $search_result[0][$col]) { echo ' selected=selected'; } elseif($val['default'] == $col_vals[$i][$val['column']]) { echo ' selected=selected'; } It's supposed to check whether

Re: [PHP] if/elseif being treated as if/if

2010-09-24 Thread Andy McKenzie
fire; unless this block of code gets executed multiple times.  can we see more of the code? Chris H. On Fri, Sep 24, 2010 at 1:50 PM, Andy McKenzie amckenz...@gmail.com wrote: Hey folks,  Here's the deal.  I have the following code: if($col_vals[$i][$val['column']] == $search_result[0

Re: [PHP] Auto-generating HTML

2010-09-21 Thread Andy McKenzie
On Tue, Sep 21, 2010 at 3:32 AM, Simcha Younger simcha.youn...@gmail.com wrote: On Sep 20, 2010, at 2:56 PM, Andy McKenzie wrote: Hey folks,  Here's the problem.  I'm writing a lot of pages, and I hate going in and out of PHP.  At the same time, I want my HTML to be legible.  When you look

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:47 PM, Steve Staples sstap...@mnsi.net wrote: On Mon, 2010-09-20 at 14:56 -0400, Andy McKenzie wrote: Hey folks,   I have the feeling this is a stupid question, but I can't even find anything about it.  Maybe I'm just not searching for the right things.   Here's

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto r...@niof.net wrote: On Mon, Sep 20, 2010 at 03:02:35PM -0400, TR Shaw wrote: On Sep 20, 2010, at 2:56 PM, Andy McKenzie wrote: Hey folks,  I have the feeling this is a stupid question, but I can't even find anything about it.  Maybe I'm

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:59 PM, Peter Lind peter.e.l...@gmail.com wrote: On 20 September 2010 21:56, Andy McKenzie amckenz...@gmail.com wrote: On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto r...@niof.net wrote: On Mon, Sep 20, 2010 at 03:02:35PM -0400, TR Shaw wrote: On Sep 20, 2010, at 2:56

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
Here's a related question maybe one of you can answer: is there any place in HTML (not PHP, but actually in HTML) where there's a difference between a single quote and a double quote? As nearly as I can tell, it shouldn't ever matter. If that's the case, using double-quotes to enclose an echo

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Andy McKenzie
On Mon, Sep 13, 2010 at 8:11 PM, Micky Hulse mickyhulse.li...@gmail.com wrote: On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown danbr...@php.net wrote:    It would be cheaper to employ the same method used on some lawnmowers and required on Jet Skis and Skidoos: a cable with a clip worn by the

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread Andy McKenzie
A question, to clarify my fuzzy thinking about such things: Can a business have a server connected to the Internet but limit access to just their employees? I don't mean a password protected scheme, but rather the server being totally closed to the outside world other than to their internal

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread Andy McKenzie
On Sun, Sep 12, 2010 at 1:51 PM, tedd tedd.sperl...@gmail.com wrote: At 1:18 PM -0400 9/12/10, Andy McKenzie wrote:    A question, to clarify my fuzzy thinking about such things:  Can a business have a server connected to the Internet but limit access to  just their employees? I don't

Re: [PHP] Re: Bitwise NOT operator?

2010-08-25 Thread Andy McKenzie
On Wed, Aug 25, 2010 at 9:46 AM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Andy McKenzie at 24/08/10 21:42 did gyre and gimble: Even if I'd thought about it in terms of the architecture, I would have assumed that PHP would treat a two-bit number as a two-bit number You two

Re: [PHP] Bitwise NOT operator?

2010-08-24 Thread Andy McKenzie
On Tue, Aug 24, 2010 at 11:06 AM, Richard Quadling rquadl...@gmail.com wrote: On 20 August 2010 17:00, Andy McKenzie amckenz...@gmail.com wrote:  Thanks to everyone who responded.  I've dealt with binary math before, but it never occurred to me (and doesn't seem to be anywhere in the document

Re: [PHP] Bitwise NOT operator?

2010-08-24 Thread Andy McKenzie
On Tue, Aug 24, 2010 at 3:55 PM, Ford, Mike m.f...@leedsmet.ac.uk wrote: -Original Message- From: Andy McKenzie [mailto:amckenz...@gmail.com] Sent: 24 August 2010 17:24 To: php-general@lists.php.net Subject: Re: [PHP] Bitwise NOT operator? From your example, this would have shown

[PHP] Bitwise NOT operator?

2010-08-20 Thread Andy McKenzie
Hey everyone, I'm really not sure what's going on here: basically, the bitwise NOT operator seems to simply not work. Here's an example of what I see. Script $ cat bintest2.php ?php $bin = 2; $notbin = ~$bin; echo Bin: . decbin($bin) . !bin: . decbin($notbin)

Re: [PHP] Bitwise NOT operator?

2010-08-20 Thread Andy McKenzie
August 2010 17:41, Peter Lind peter.e.l...@gmail.com wrote: On 20 August 2010 17:10, Andy McKenzie amckenz...@gmail.com wrote: Hey everyone,  I'm really not sure what's going on here:  basically, the bitwise NOT operator seems to simply not work.  Here's an example of what I see