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
=
Output
$ php bintest2.php
Bin: 1
20 August 2010 17:41, Peter Lind wrote:
>> On 20 August 2010 17:10, Andy McKenzie 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 exa
On Tue, Aug 24, 2010 at 11:06 AM, Richard Quadling wrote:
> On 20 August 2010 17:00, Andy McKenzie 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
On Tue, Aug 24, 2010 at 3:55 PM, Ford, Mike 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 y
On Wed, Aug 25, 2010 at 9:46 AM, Colin Guthrie 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
Jordan,
Bostjan hit the main points, but if you're trying to run a secure
server, you probably ought to know more about it than you do now.
It's pretty easy to arrange a secure connection that isn't actually
secure if you don't know what you're doing. I'd recommend a good
Apache book -- I have
>
> 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
> in
On Sun, Sep 12, 2010 at 1:51 PM, tedd 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
On Mon, Sep 13, 2010 at 8:11 PM, Micky Hulse wrote:
> On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown 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 rider. The rider falls off, the cable
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 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
On Mon, Sep 20, 2010 at 3:47 PM, Steve Staples 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
On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto 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
On Mon, Sep 20, 2010 at 3:59 PM, Peter Lind wrote:
> On 20 September 2010 21:56, Andy McKenzie wrote:
>> On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto wrote:
>>> On Mon, Sep 20, 2010 at 03:02:35PM -0400, TR Shaw wrote:
>>>>
>>>> On Sep 20, 2010, at 2:5
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 ge
On Tue, Sep 21, 2010 at 3:32 AM, Simcha Younger
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
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 t
rote:
> Andy I see no reason why both echo's would 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 wrote:
>>
>> Hey folks,
>>
>&g
On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings 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 choke on sing
On Wed, Oct 6, 2010 at 9:25 AM, Peter Lind wrote:
> On 6 October 2010 15:21, Andy McKenzie wrote:
>> On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings wrote:
>>> On 10-10-06 08:52 AM, Peter Lind wrote:
>>>>
>>>> Where exactly do you get the part about dou
> 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 un
On Fri, Oct 22, 2010 at 9:22 AM, Jay Blanchard 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 ru
On Wed, Jul 4, 2012 at 6:04 AM, RGraph.net support 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? :-)
>
> --
> Richard, RGra
, and I've now
scrapped the entire project and rebuilt it. Why? Because I did just
about everything wrong. It just plain wasn't practical to try to fix
it. I'd never learned the basics, I just threw myself at a big
project to see what would happen.
Good luck!
-Andy McKenzie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, Feb 9, 2013 at 10:41 AM, Jim Giner 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 just displayed. I clic
On Sat, Feb 9, 2013 at 11:51 AM, Geoff Shang 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 the page was ju
On Thu, Feb 14, 2013 at 2:52 PM, Daniel Brown 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 wrote:
>> On Thu, Feb 14, 2013 at 2:29 PM, Daniel Brown wrote:
>>> O
... 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 wrote:
> On Tue, Apr 2, 2013 at 12:27 AM, Sorin Badea
> wrote:
> > Hi Mark,
> > I think a sim
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 in-house
was supposed to,
so we fixed it" kind of way. If you were taking advantage 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
On Tue, Aug 20, 2013 at 3:18 PM, Dan Munro 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
> > inte
On Fri, Jan 7, 2011 at 11:55 AM, 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
> command line intera
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 worki
On Wed, Jan 26, 2011 at 8:51 AM, Lester Caine 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 w
On Tue, Feb 22, 2011 at 6:29 AM, Dotan Cohen 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 fill it's content
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 fol
On Mon, Mar 14, 2011 at 11:39 PM, Adam Richardson 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 wit
On Tue, Mar 15, 2011 at 8:07 AM, Andy McKenzie wrote:
> On Mon, Mar 14, 2011 at 11:39 PM, Adam Richardson
> wrote:
>>>
>>> This one's got me stumped. I
>>> have the following line in a script:
>>>
>>> $this->bc = ($this->network
> 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 may
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 of
On Thu, Apr 7, 2011 at 12:15 AM, Kirk Bailey 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 when I reach for a
On Fri, Jun 24, 2011 at 1:30 PM, 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 like this...
-Andy
--
On Wed, Sep 28, 2011 at 6:20 PM, Kirk Bailey 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 yours,
>
> 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
> t
43 matches
Mail list logo