Re: [PHP] Announcing New PHP Extension: System Detonation Library (was: phpsadness)

2011-06-04 Thread David Robley
xucheng wrote:

> I create a script with : php -r ' detonate();' via the CLI ,
> and get this :
> 
> PHP Fatal error:  This system will self-destruct in five four
> three two one [CONNECTION TO HOST INTERRUPTED] in Command
> line code on line 1
> 
> is this an expected result ?
> 
> 2011/6/3 Daniel Brown :
>> First of all, a happy Friday to all here.  Hopefully some of you
>> will be able to pass this on to your boss and get sent home early.
>>
>> Second, as dreamed up in the previous thread, I've decided to take
>> a few moments this morning to build and release a new PHP extension,
>> which provides a single function: detonate().
>>
>> Third, you can read about it and download it here:
>> http://links.parasane.net/29nh
>>
>> That's all, folks.
>>

Did you look at the source before you compiled it?




Cheers
-- 
David Robley

Useless Invention: Open Toed Safety Shoes.
Today is Setting Orange, the 9th day of Confusion in the YOLD 3177. 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Announcing New PHP Extension: System Detonation Library (was: phpsadness)

2011-06-04 Thread admin
LOL,
That is too funny. I took the wording "System Detonation" literally.
Did it take your server offline or did it just say that in CLI.



Richard L. Buskirk


-Original Message-
From: xucheng [mailto:helloworldje...@gmail.com] 
Sent: Saturday, June 04, 2011 2:55 AM
To: Daniel Brown
Cc: PHP General
Subject: Re: [PHP] Announcing New PHP Extension: System Detonation Library 
(was: phpsadness)

I create a script with : php -r ' detonate();' via the CLI ,
and get this :

PHP Fatal error:  This system will self-destruct in five four
three two one [CONNECTION TO HOST INTERRUPTED] in Command
line code on line 1

is this an expected result ?

2011/6/3 Daniel Brown :
>First of all, a happy Friday to all here.  Hopefully some of you
> will be able to pass this on to your boss and get sent home early.
>
>Second, as dreamed up in the previous thread, I've decided to take
> a few moments this morning to build and release a new PHP extension,
> which provides a single function: detonate().
>
>Third, you can read about it and download it here:
> http://links.parasane.net/29nh
>
>That's all, folks.
>
> --
> 
> Network Infrastructure Manager
> http://www.php.net/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Just do it & follow your passion !

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Announcing New PHP Extension: System Detonation Library (was: phpsadness)

2011-06-04 Thread xucheng
NO, it did not take server offline and it did just say that in CLI .

...

2011/6/4  :
> LOL,
>        That is too funny. I took the wording "System Detonation" literally.
> Did it take your server offline or did it just say that in CLI.
>
>
>
> Richard L. Buskirk
>
>
> -Original Message-
> From: xucheng [mailto:helloworldje...@gmail.com]
> Sent: Saturday, June 04, 2011 2:55 AM
> To: Daniel Brown
> Cc: PHP General
> Subject: Re: [PHP] Announcing New PHP Extension: System Detonation Library 
> (was: phpsadness)
>
> I create a script with : php -r ' detonate();' via the CLI ,
> and get this :
>
> PHP Fatal error:  This system will self-destruct in five four
> three two one [CONNECTION TO HOST INTERRUPTED] in Command
> line code on line 1
>
> is this an expected result ?
>
> 2011/6/3 Daniel Brown :
>>    First of all, a happy Friday to all here.  Hopefully some of you
>> will be able to pass this on to your boss and get sent home early.
>>
>>    Second, as dreamed up in the previous thread, I've decided to take
>> a few moments this morning to build and release a new PHP extension,
>> which provides a single function: detonate().
>>
>>    Third, you can read about it and download it here:
>> http://links.parasane.net/29nh
>>
>>    That's all, folks.
>>
>> --
>> 
>> Network Infrastructure Manager
>> http://www.php.net/
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
> --
> Just do it & follow your passion !
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Just do it & follow your passion !

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Announcing New PHP Extension: System Detonation Library (was: phpsadness)

2011-06-04 Thread xucheng
i just follow instructions on brown's website and test it on CLI. and
got the fatal error.

2011/6/4 David Robley :
> xucheng wrote:
>
>> I create a script with : php -r ' detonate();' via the CLI ,
>> and get this :
>>
>> PHP Fatal error:  This system will self-destruct in five four
>> three two one [CONNECTION TO HOST INTERRUPTED] in Command
>> line code on line 1
>>
>> is this an expected result ?
>>
>> 2011/6/3 Daniel Brown :
>>> First of all, a happy Friday to all here.  Hopefully some of you
>>> will be able to pass this on to your boss and get sent home early.
>>>
>>> Second, as dreamed up in the previous thread, I've decided to take
>>> a few moments this morning to build and release a new PHP extension,
>>> which provides a single function: detonate().
>>>
>>> Third, you can read about it and download it here:
>>> http://links.parasane.net/29nh
>>>
>>> That's all, folks.
>>>
>
> Did you look at the source before you compiled it?
>
>
>
>
> Cheers
> --
> David Robley
>
> Useless Invention: Open Toed Safety Shoes.
> Today is Setting Orange, the 9th day of Confusion in the YOLD 3177.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Just do it & follow your passion !

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Announcing New PHP Extension: System Detonation Library (was: phpsadness)

2011-06-04 Thread David Robley
xucheng wrote:

> NO, it did not take server offline and it did just say that in CLI .
> 
> ...
> 
> 2011/6/4  :
>> LOL,
>> That is too funny. I took the wording "System Detonation" literally.
>> Did it take your server offline or did it just say that in CLI.
>>
>>
>>
>> Richard L. Buskirk
>>
>>
>> -Original Message-
>> From: xucheng [mailto:helloworldje...@gmail.com]
>> Sent: Saturday, June 04, 2011 2:55 AM
>> To: Daniel Brown
>> Cc: PHP General
>> Subject: Re: [PHP] Announcing New PHP Extension: System Detonation
>> Library (was: phpsadness)
>>
>> I create a script with : php -r ' detonate();' via the CLI ,
>> and get this :
>>
>> PHP Fatal error:  This system will self-destruct in five four
>> three two one [CONNECTION TO HOST INTERRUPTED] in Command
>> line code on line 1
>>
>> is this an expected result ?
>>
>> 2011/6/3 Daniel Brown :
>>> First of all, a happy Friday to all here.  Hopefully some of you
>>> will be able to pass this on to your boss and get sent home early.
>>>
>>> Second, as dreamed up in the previous thread, I've decided to take
>>> a few moments this morning to build and release a new PHP extension,
>>> which provides a single function: detonate().
>>>
>>> Third, you can read about it and download it here:
>>> http://links.parasane.net/29nh
>>>
>>> That's all, folks.

Daniel, your work here is done :-)

For the others, please just read the source of the extension - detonate.c is
where you need to look.





Cheers
-- 
David Robley

"I won't stand for painting," said Tom uneasily.
Today is Setting Orange, the 9th day of Confusion in the YOLD 3177. 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Announcing New PHP Extension: System Detonation Library (was: phpsadness)

2011-06-04 Thread xucheng
yeah, happy Friday.

2011/6/4 David Robley :
> xucheng wrote:
>
>> NO, it did not take server offline and it did just say that in CLI .
>>
>> ...
>>
>> 2011/6/4  :
>>> LOL,
>>> That is too funny. I took the wording "System Detonation" literally.
>>> Did it take your server offline or did it just say that in CLI.
>>>
>>>
>>>
>>> Richard L. Buskirk
>>>
>>>
>>> -Original Message-
>>> From: xucheng [mailto:helloworldje...@gmail.com]
>>> Sent: Saturday, June 04, 2011 2:55 AM
>>> To: Daniel Brown
>>> Cc: PHP General
>>> Subject: Re: [PHP] Announcing New PHP Extension: System Detonation
>>> Library (was: phpsadness)
>>>
>>> I create a script with : php -r ' detonate();' via the CLI ,
>>> and get this :
>>>
>>> PHP Fatal error:  This system will self-destruct in five four
>>> three two one [CONNECTION TO HOST INTERRUPTED] in Command
>>> line code on line 1
>>>
>>> is this an expected result ?
>>>
>>> 2011/6/3 Daniel Brown :
 First of all, a happy Friday to all here.  Hopefully some of you
 will be able to pass this on to your boss and get sent home early.

 Second, as dreamed up in the previous thread, I've decided to take
 a few moments this morning to build and release a new PHP extension,
 which provides a single function: detonate().

 Third, you can read about it and download it here:
 http://links.parasane.net/29nh

 That's all, folks.
>
> Daniel, your work here is done :-)
>
> For the others, please just read the source of the extension - detonate.c is
> where you need to look.
>
> 
>
>
>
> Cheers
> --
> David Robley
>
> "I won't stand for painting," said Tom uneasily.
> Today is Setting Orange, the 9th day of Confusion in the YOLD 3177.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Just do it & follow your passion !

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Announcing New PHP Extension: System Detonation Library (was: phpsadness)

2011-06-04 Thread Tim Streater
On 03 Jun 2011 at 16:56, Daniel Brown  wrote: 

> First of all, a happy Friday to all here.  Hopefully some of you
> will be able to pass this on to your boss and get sent home early.
>
>Second, as dreamed up in the previous thread, I've decided to take
> a few moments this morning to build and release a new PHP extension,
> which provides a single function: detonate().

No Manfred Mann though.

--
Cheers  --  Tim

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Best authentication system

2011-06-04 Thread Adam Tong
Hi,

I'm running a site for which I need an authentication system. I have
already my own (that is too simplistic and not very secure).
I want some advice here. I checked PEAR, but as there are several
options there, I was not sure which one to choose. Here are my needs:

- Some sections of the site cannot be accessed if the user does not
have an account (at least login and password)
- There are 2 type of users at this moment, depending on that type,
the user can access some sections and not the others (the ones allowed
for the other type). Maybe in the future there will be more types of
users.

Thank you

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best authentication system

2011-06-04 Thread Sean Greenslade
IIRC, there is a google code project for a php login system. You might want
to check it out.
On Jun 4, 2011 2:46 PM, "Adam Tong"  wrote:
> Hi,
>
> I'm running a site for which I need an authentication system. I have
> already my own (that is too simplistic and not very secure).
> I want some advice here. I checked PEAR, but as there are several
> options there, I was not sure which one to choose. Here are my needs:
>
> - Some sections of the site cannot be accessed if the user does not
> have an account (at least login and password)
> - There are 2 type of users at this moment, depending on that type,
> the user can access some sections and not the others (the ones allowed
> for the other type). Maybe in the future there will be more types of
> users.
>
> Thank you
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-04 Thread Sean Greenslade
That's what I was thinking, thanks for  confirming it.
On Jun 3, 2011 3:49 PM, "Tamara Temple"  wrote:
>
> On Jun 2, 2011, at 7:09 PM, Stephon Chen wrote:
>
>> Hello Sean,
>>
>> 1. while I directed connected to these error pages such as 403, 404,
>> and 500.html,
>> they works correctly, showing correct error page
>>
>> 2. but while I use something like header('HTTP/1.1 500') to trigger
>> apache 500
>> the content of 500.html does not show, but blank page only.
>> both header('HTTP/1.1 403') and header('HTTP/1.1 404') shows the
>> correct custom error page.
>>
>> Thanks a lot
>> --
>> stephon
>>
>> On Fri, Jun 3, 2011 at 07:21, Sean Greenslade
>>  wrote:
>> So do you get the contents of that page in the response? What
>> happens when you browse to that page manually?
>>
>> On Jun 1, 2011 2:14 AM, "Stephon Chen"  wrote:
>> > All 403, 404, 500.html are static html pages like:
>> >
>> > 
>> > 500 error happens
>> > 
>> >
>> > On Wed, Jun 1, 2011 at 14:10, Tamara Temple
>>  wrote:
>> >
>> >>
>> >> On May 31, 2011, at 8:14 AM, Stephon Chen wrote:
>> >>
>> >> Hello Sean,
>> >>>
>> >>> Here is my apache config for error handling.
>> >>> 403, 404 works fine, but 500 shows blank page
>> >>>
>> >>> Alias /errorpage/ "/usr/local/www/apache22/errorpage/"
>> >>> 
>> >>> AllowOverride None
>> >>> Options -Indexes FollowSymLinks MultiViews
>> >>> Order allow,deny
>> >>> Allow from all
>> >>> 
>> >>> #
>> >>> ErrorDocument 403 /errorpage/403.html
>> >>> ErrorDocument 404 /errorpage/404.html
>> >>> ErrorDocument 500 /errorpage/500.html
>> >>>
>> >>
>> >> What's in 500.html?
>> >>
>> >>
>>
>
> Stephen,
>
> This doesn't quite work how you're expecting it to.
>
> If you have a php script that emits a 500 server error header, *you*
> have to supply the document contents. Thus:
>
>  header('HTTP/1.1 500 Server Error');
> include('/path/to/error_docs/500.html');
> ?>
>
> Will get you what you want.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


Re: RE: [PHP] phpsadness - P.C. shmee seee.

2011-06-04 Thread Sean Greenslade
Well said. I agree completely with your distaste for extreme political
correctness. Like I always say, "it's not a stereotype if it's true."
 On Jun 3, 2011 4:53 PM, "Daevid Vincent"  wrote:
>> >> Reminds me (obliquely) of an entry in the index for "The C Programming
>> >> Language" for recursion, which points right back to that index page. I
>> >> about doubled over when I first discovered it.
>> >
>> > That's hilarious. I love subtle humor like that.
>
> This whole thread seems to echo the original subject recursively too...
;-)
>
> How sad this topic has devolved from what was IMHO a fairly honest page
someone created (with valid grievances) to one of religion and name calling.

>
> I tried to avoid commenting at all but I do have to agree with Tedd here:
>
>> Instead, I think you saw an opportunity to be "politically correct"
>> and rise to the occasion in righteous indignation.
>
> I personally think Politically Correctness is a load of $h!t and causes
more harm and trouble than it's worth. I'm so sick of it being dictated to
me everywhere from media to schools to work to now even a programming
language list. People need thicker skins. If you are so easily offended,
then block that person's email from your mailbox. It's called the 1st
Amendment. I may not agree with, or even like the things you say, but I'll
defend to the death your right to say it -- whatever it is! I don't agree
with radical Muslims wanting to kill me either, but I'll defend their right
to protest and say whatever they want (as long as it's true!). Same goes for
KKK or any other extremist group.
>
>
http://en.wikipedia.org/wiki/First_Amendment_to_the_United_States_Constitution
>
> Ross Perot said it best, "every time you pass a new law, you give up some
of your freedoms".
> And this P.C. crap is just an un-official "law" that is being imposed on
people.
>
> People aren't "visually impaired", they are "blind". They're not "dwarfs"
or "little people", they're "midgets". A "retard" is "handicapped" and isn't
"mentally challenged". (there, how many people did I just offend?) DEAL WITH
IT. I have a "big nose" and I'm "balding" from Alopecia -- I'm not
"olfactory gifted" or "follicly deficient" either. Didn't your mommas ever
teach you, "sticks and stones will break my bones, but names can never hurt
me"??
>
> And don’t even get me started on "stereotypes" -- because those are based
on true observations too! If you don't like your stereotype, then
collectively as a people, you need to change it. "we" didn’t make up your
stereotype, "you" did! We just noticed it and pointed it out to you --
you're welcome.
>
> ...and watch this:
> http://www.youtube.com/watch?v=iqVhtHapFW4
>
> http://www.youtube.com/watch?v=UnDIvZKs4dA
>
> http://www.metacafe.com/watch/457799/allahu_akbar/
>
>
http://nation.foxnews.com/germany-airport-shooting/2011/03/03/obama-administration-refuses-call-attack-germany-act-terrorism
>
> shoot, I wouldn't be surprised if I just got myself on some government
watch list now that I googled for those videos!
>
> ...let the ~/.procmailrc filters begin!
>
> Here use this:
>
> :0
> * ^FROM.*daevid
> | (echo "From: POSTMASTER@YOUR_NAME_HERE.com"; \
> echo "To: $FROM"; \
> echo "Subject: You have lost your email privileges to me you politically
incorrect P.O.S."; \
> echo "";\
> echo "I have banned you from emailing me and I hope you die painfully.\n"
\
> ) | $SENDMAIL -oi -t
> /dev/null
>
> ...actually, I do have some good ones here:
> http://daevid.com/content/examples/procmail.php
>
> :)
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


[PHP] Found this and I thought of you.

2011-06-04 Thread Richard Quadling
http://www.exxcire.com/login.php

If nothing more than a good "bad example".

-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best authentication system

2011-06-04 Thread Eric Butera
On Sat, Jun 4, 2011 at 2:44 PM, Adam Tong  wrote:
> Hi,
>
> I'm running a site for which I need an authentication system. I have
> already my own (that is too simplistic and not very secure).
> I want some advice here. I checked PEAR, but as there are several
> options there, I was not sure which one to choose. Here are my needs:
>
> - Some sections of the site cannot be accessed if the user does not
> have an account (at least login and password)
> - There are 2 type of users at this moment, depending on that type,
> the user can access some sections and not the others (the ones allowed
> for the other type). Maybe in the future there will be more types of
> users.
>
> Thank you
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Hello,

There is terminology in place for what you're trying describe.  First
take authentication, the ability to log into a system.  Second would
be authorization, the abilities a user has.  With these terms you can
do some further research on the subject.

For reference in a lot of projects for authentication I use
Zend_Auth[1] and for authorization I use Zend_Acl[2].  Hopefully
linking to them will not contribute to further confusion.

1. http://framework.zend.com/manual/en/zend.auth.html
2. http://framework.zend.com/manual/en/zend.acl.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Found this and I thought of you.

2011-06-04 Thread Joshua Kehn
Hah! That is an excellent example of why to turn error reporting off when 
deploying code. 

Regards,

-Josh

http:joshuakehn.com
Currently mobile

On Jun 4, 2011, at 7:34 PM, Richard Quadling  wrote:

> http://www.exxcire.com/login.php
> 
> If nothing more than a good "bad example".
> 
> -- 
> Richard Quadling
> Twitter : EE : Zend : PHPDoc
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Found this and I thought of you.

2011-06-04 Thread admin
LOL, that’s awesome.
Cough.. Cake... cough can anyone guess the DB username LOL


Richard L. Buskirk

-Original Message-
From: Richard Quadling [mailto:rquadl...@gmail.com] 
Sent: Saturday, June 04, 2011 7:35 PM
To: PHP General list
Subject: [PHP] Found this and I thought of you.

http://www.exxcire.com/login.php

If nothing more than a good "bad example".

-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] phpsadness - P.C. shmee seee.

2011-06-04 Thread Tamara Temple


On Jun 3, 2011, at 3:52 PM, Daevid Vincent wrote:

...actually, I do have some good ones here:
http://daevid.com/content/examples/procmail.php


"It appears your browser does not support some of the advanced  
features this site requires.

Please use Internet Explorer or Firefox."



ROFL. Good one.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php