php-general Digest 5 Jun 2011 12:38:31 -0000 Issue 7345

Topics (messages 313371 through 313379):

Re: php causes HTTP 500, but results in blank page in apache
        313371 by: Sean Greenslade

Re: phpsadness - P.C. shmee seee.
        313372 by: Sean Greenslade
        313377 by: Tamara Temple
        313378 by: Tim Streater

Found this and I thought of you.
        313373 by: Richard Quadling
        313375 by: Joshua Kehn
        313376 by: admin.buskirkgraphics.com

Re: Best authentication system
        313374 by: Eric Butera
        313379 by: Richard Quadling

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
That's what I was thinking, thanks for  confirming it.
On Jun 3, 2011 3:49 PM, "Tamara Temple" <tamouse.li...@gmail.com> 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
>> <zootboys...@gmail.com> 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" <step...@gmail.com> wrote:
>> > All 403, 404, 500.html are static html pages like:
>> >
>> > <div>
>> > 500 error happens
>> > </div>
>> >
>> > On Wed, Jun 1, 2011 at 14:10, Tamara Temple
>> <tamouse.li...@gmail.com> 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/"
>> >>> <Directory "/usr/local/www/apache22/errorpage/">
>> >>> AllowOverride None
>> >>> Options -Indexes FollowSymLinks MultiViews
>> >>> Order allow,deny
>> >>> Allow from all
>> >>> </Directory>
>> >>> #
>> >>> 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:
>
> <?php
> 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
>

--- End Message ---
--- Begin Message ---
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" <dae...@daevid.com> 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
>

--- End Message ---
--- Begin Message ---

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.



--- End Message ---
--- Begin Message ---
On 05 Jun 2011 at 06:08, Tamara Temple <tamouse.li...@gmail.com> wrote: 

> 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.

Anyone whose site says that sort of crap needs a good smack.

--
Cheers  --  Tim

--- End Message ---
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
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 <rquadl...@gmail.com> 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
> 

--- End Message ---
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
On Sat, Jun 4, 2011 at 2:44 PM, Adam Tong <adam.to...@gmail.com> 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

--- End Message ---
--- Begin Message ---
On 4 June 2011 23:21, Sean Greenslade <zootboys...@gmail.com> wrote:
> IIRC, there is a google code project for a php login system. You might want
> to check it out.

http://code.google.com/p/loginsystem-rd/

"Login system to prevent XSS, SQL Injection and CSRF"


May be of interest.

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

--- End Message ---

Reply via email to