php-general Digest 4 Jun 2011 06:55:03 -0000 Issue 7343
Topics (messages 313353 through 313361):
Odd Apache2/PHP Problem
313353 by: Floyd Resler
313356 by: Daniel P. Brown
Re: php causes HTTP 500, but results in blank page in apache
313354 by: Tamara Temple
Re: phpsadness
313355 by: Peter Lind
313357 by: David Harkness
313358 by: Haig Dedeyan
313360 by: Daevid Vincent
Re: phpsadness - P.C. shmee seee.
313359 by: Daevid Vincent
Re: Announcing New PHP Extension: System Detonation Library (was: phpsadness)
313361 by: xucheng
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
I am having a really odd Apache2/PHP problem. My employer set up a new Web
server to migrate our Web sites to. One site requires a log in and I have the
ability to log in a someone else. However, when I do this, Apache throws a
Segmentation fault error. It's happening when it tries to get user information
from the database of the user I'm logged in as. The data is stored in a FoxPro
database and is retrieved through ODBC. What is really odd is that the same
functions work fine until I log in as someone. All this does is swap my id with
the person I'm logging in as in the session variable. I have no idea why this
is happening. So, I'm hoping someone may have some ideas or point in the right
direction to find answers.
Thanks!
Floyd
--- End Message ---
--- Begin Message ---
On Fri, Jun 3, 2011 at 15:12, Floyd Resler <[email protected]> wrote:
> I am having a really odd Apache2/PHP problem. My employer set up a new Web
> server to migrate our Web sites to. One site requires a log in and I have
> the ability to log in a someone else. However, when I do this, Apache throws
> a Segmentation fault error. It's happening when it tries to get user
> information from the database of the user I'm logged in as. The data is
> stored in a FoxPro database and is retrieved through ODBC. What is really
> odd is that the same functions work fine until I log in as someone. All this
> does is swap my id with the person I'm logging in as in the session variable.
> I have no idea why this is happening. So, I'm hoping someone may have some
> ideas or point in the right direction to find answers.
A lot of times, this happens because of a bad module,
poorly-compiled core or extension, missing dependencies, or even
mismatched architecture (for example, trying to run x86_64 code on an
i386 platform). Do you have the capability to recompile PHP and the
extensions?
Also, presuming the logs strictly show "segmentation fault" (which
is less than helpful, I know), are there any filesystem logs that
might give a hint, such as bad blocks on the drive? Have you tried
running an fsck on the drive?
Finally, you may want to check your core dumps and see if you can
glean any hints from there. The file sizes themselves may even be
helpful --- for example, are you running out of disk space or memory
on that box when the code is executing?
--
</Daniel P. Brown>
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/
--- End Message ---
--- Begin Message ---
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
<[email protected]> 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" <[email protected]> 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
<[email protected]> 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.
--- End Message ---
--- Begin Message ---
On 3 June 2011 20:42, tedd <[email protected]> wrote:
> At 4:23 PM +0200 6/3/11, Peter Lind wrote:
>>
>> On Jun 3, 2011 3:48 PM, "tedd"
>> <<mailto:[email protected]>[email protected]> wrote:
>> >> That's correct. If it causes too much userland confusion, we can
>> >> alias it as detonate() as well.
>>>
>> > Yes, to be preceded with:
>>>
>> > echo('Alaho Akbar');
>> >
>>
>> Nice ... any idea how many people you just insulted there?
>
> Nope, and I don't think you do either.
>
> Instead, I think you saw an opportunity to be "politically correct" and rise
> to the occasion in righteous indignation.
I think you'll do anything to avoid facing the fact that you might
indeed have done some morally wrong. Or maybe I don't. It doesn't
matter - the question is whether or not you actually insulted a large
group of people by suggesting that detonate() should be prefixed with
echo "Alaho akbar";
> That's Okay, but the problem with "politically correctness" is that it often
> suppresses the truth in favor of meaningless sensitivity.
We agree here, but unfortunately for you that's not the point being discussed.
> Unfortunately, the inconvenient truth is that phrase *IS* being spoken
> before killing innocent men, women, and children supposedly in the name of
> God. If anyone should be insulted, it should be those families who's that
> practice has killed, maimed, and injured -- as well -- as the followers of
> that religion who allow such practices to continue.
Do you feel better knowing you may have insulted even more people?
Does that thought even occur to you?
> My stupid little joke has no meaning in the overall scheme of things as does
> your righteous indignation -- so, with all due respect, blow it out your
> shorts. :-)
No, see, there's the problem. Your stupid little joke just makes it a
little bit harder to actually cross the gap between the different
cultures. And while that may be fine for you, I'd prefer actually
being able to speak to people from other cultures about the problems
we face. Having someone suggest that bombs go "Alaho akbar" before
they detonate don't help in any way, as that just promotes two
stereotypes: that suicide bombers are muslims, and that westerners are
stupid jerks that think all muslims are terrorists.
Anyway, I won't bother you with my "political correctness" any more -
the list has reached a too high noise-and-bs-to-signal ratio for me.
Peter
--
<hype>
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
</hype>
--- End Message ---
--- Begin Message ---
The original PHP Sadness page didn't actually make me sad. This thread,
however, *is*. Can we all agree that we have different opinions on what
makes an appropriate joke and move on?
Here's to less sadness in the world . . .
David
--- End Message ---
--- Begin Message ---
On 11-06-03 04:47 PM, David Harkness wrote:
The original PHP Sadness page didn't actually make me sad. This thread,
however, *is*. Can we all agree that we have different opinions on what
makes an appropriate joke and move on?
Here's to less sadness in the world . . .
David
Here's some joy for all of us
http://damnyouautocorrect.com/
warning - do not read with kids near the monitor
--- End Message ---
--- Begin Message ---
Damn. Ironically, I wanted to write something short and succinct like that
... then I got all worked up and started to rant. Well said 'guy with my
same name'. :)
> -----Original Message-----
> From: David Harkness [mailto:[email protected]]
> Sent: Friday, June 03, 2011 1:47 PM
> To: PHP General
> Subject: Re: [PHP] phpsadness
>
> The original PHP Sadness page didn't actually make me sad. This thread,
> however, *is*. Can we all agree that we have different opinions on what
> makes an appropriate joke and move on?
>
> Here's to less sadness in the world . . .
>
> David
--- End Message ---
--- Begin Message ---
> >> 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
:)
--- End Message ---
--- Begin Message ---
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 <[email protected]>:
> 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 P. Brown>
> 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 !
--- End Message ---