php-general Digest 10 May 2012 19:12:46 -0000 Issue 7808
Topics (messages 317830 through 317836):
Re: Performance / AB issue?
317830 by: Matijn Woudt
317832 by: Camilo Sperberg
Best practice question regarding set_include_path()
317831 by: Al
317835 by: admin
Your Citi Credit Card Statement
317833 by: Citi Cards
317834 by: James
317836 by: Matijn Woudt
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 ---
On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen <l...@lfweb.dk> wrote:
> Hi there,
>
> I have apache-2.22/php 5.3.10 set up on a dedicated server but I have a
> strange issue.
>
> I have made a Drupal 7 site with a mysql db.
>
> If I stress-test the site with : ab -c 1 -n 150 http://sitename/ it works
> fine.
> If I stress-test the site with : ab -c 2 -n 20 http://sitename/ it kills
> apache.
> If I stress-test the site with : ab -c 50 -n 1500
> http://sitename/static.html it works fine.
>
> I have set apache's errorlog to debug. But it writes nothing, either in
> the virtualhost or in the server-file.
>
> Can anyone give a hint about what can be wrong?
>
>
What do you mean with 'kills apache', does it terminate apache or does
apache hang (eg. 100% cpu), and respond normal after the stress test
is over?
And what is the index of your site? A php script, or..? Do you have
ModRewrite redirects etc?
- Matijn
--- End Message ---
--- Begin Message ---
Sent from my iPhone 5 Beta [Confidential use only]
On 10 mei 2012, at 17:40, Matijn Woudt <tijn...@gmail.com> wrote:
> On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen <l...@lfweb.dk> wrote:
>> Hi there,
>>
>> I have apache-2.22/php 5.3.10 set up on a dedicated server but I have a
>> strange issue.
>>
>> I have made a Drupal 7 site with a mysql db.
>>
>> If I stress-test the site with : ab -c 1 -n 150 http://sitename/ it works
>> fine.
>> If I stress-test the site with : ab -c 2 -n 20 http://sitename/ it kills
>> apache.
>> If I stress-test the site with : ab -c 50 -n 1500
>> http://sitename/static.html it works fine.
>>
>> I have set apache's errorlog to debug. But it writes nothing, either in
>> the virtualhost or in the server-file.
>>
>> Can anyone give a hint about what can be wrong?
>>
>>
>
> What do you mean with 'kills apache', does it terminate apache or does
> apache hang (eg. 100% cpu), and respond normal after the stress test
> is over?
> And what is the index of your site? A php script, or..? Do you have
> ModRewrite redirects etc?
>
> - Matijn
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Can you visit the site normally? Try less verbosing in apache, that is pretty
intensive, but as you can benchmark a static file well (with moderate high
settings), i assume it is some configuration problem in drupal.
Greeting.
--- End Message ---
--- Begin Message ---
For my applications, I've been using includes and other file addressing by
using the doc root as the base dir. e.g.
require_once $_SERVER['DOCUMENT_ROOT'] .
'/miniRegDB/includes/miniRegDBconfig.php';
Recently, I ran into a problem with a new installation on a shared host where
the doc root was assigned in an unusual manner. I rather not require setting a
custom base dir [instead of $_SERVER['DOCUMENT_ROOT']'] for my applications.
So, I was wondering if it would be good practice to use the set_include_path()
and add the base dir for my applications. I've used this for dealing with Pear
function files on shared servers and had no problems.
Need some guidance regarding this subject.
Thanks....
--- End Message ---
--- Begin Message ---
-----Original Message-----
From: Al [mailto:n...@ridersite.org]
Sent: Thursday, May 10, 2012 11:44 AM
To: php-gene...@lists.php.net
Subject: [PHP] Best practice question regarding set_include_path()
For my applications, I've been using includes and other file addressing by
using the doc root as the base dir. e.g.
require_once $_SERVER['DOCUMENT_ROOT'] .
'/miniRegDB/includes/miniRegDBconfig.php';
Recently, I ran into a problem with a new installation on a shared host
where the doc root was assigned in an unusual manner. I rather not require
setting a custom base dir [instead of $_SERVER['DOCUMENT_ROOT']'] for my
applications.
So, I was wondering if it would be good practice to use the
set_include_path() and add the base dir for my applications. I've used this
for dealing with Pear function files on shared servers and had no problems.
Need some guidance regarding this subject.
Thanks....
--
I use define to set the application path
define('BASE_PATH','C:\\inetpub\\vhosts\\yourwebsite.com\\httpdocs\\');
Example:
require_once (BASE_PATH. '/miniRegDB/includes/miniRegDBconfig.php');
works great for JQuery paths
<script>
$(document).ready(function() {
$('#dareport').html('<img src="<?php echo BASE_URL;?>images/loading.gif"
/>');
});
</script>
To me it is much better than set_include_path() but works in the same
premise
--- End Message ---
--- Begin Message ---
Your Citi Credit Card Statement
Add citica...@info.citibank.com to your address book to ensure delivery.
Your Account: Important Notification
Your Citi Credit Card statement is ready to view online
Dear Cardholder, Your Citi Credit Card statement is now available for you to view online. Here are some key pieces of information from your statement:Statement Date:May 10, 2012
Statement Balance:$4815.29
Minimum Payment Due:$2472.97
Payment Due Date:June 7, 2012
Want help remembering your payment due date? Sign up for automated alerts such as Payment Due reminders with Alerting Service.To set up alerts sign on to www.citicards.com and go to Account Profile.I prefer not to have this email contain specific information from my statement. Please send me just the announcement that my statement is ready to view online.
Privacy | Security
Email Preferences This message is from Citi Cards. Your credit card is issued by Citibank, N.A. If you'd like to refine the types of email messages you receive, or if you'd prefer to stop receiving email from us, please go to: http://www.email.citicards.com. Citibank manages email preferences by line of business. Changing your email preferences with Citi Cards does not change your email preferences for messages from Citibanks other businesses which include retail branch banking among others. Should you want to contact us in writing concerning this email, please direct your correspondence to: Citibank Customer Service P. O. Box 6500 Sioux Falls, SD 57117 Help / Contact Us If you have questions about your account, please use our secure message center by signing on at www.citicards.com and choosing "Contact Us" from the "Help / Contact Us" menu. You can also call the customer service phone number on the back of your card.
© 2012 Citibank, N.A. All rights reserved. Citi, Citibank and Citi with Arc Design are registered service marks of Citigroup Inc. 20120421C1050004 0/L0/050004/001/ZZ/SY/ZP/8000/SYSTEMB /I2012042100166572/24968
--- End Message ---
--- Begin Message ---
>---- Original Message ----
>From: "Citi Cards" <citica...@info.citibank.com>
>To: php-gene...@lists.php.net
>Sent: Thu, May 10, 2012, 1:19 PM
>Subject: [PHP] Your Citi Credit Card Statement
>
>Your Citi Credit Card Statement
>
>
>
>
>
>
>
>
> Add citica...@info.citibank.com to your address book to ensure
> delivery.
>
>Your Account: Important Notification
>
>
>
> Your Citi Credit Card statement is ready to view online
>
>
> Dear Cardholder, Your Citi Credit Card statement is now available for you
> to view online. Here are some key pieces of information from your
> statement:Statement Date:May 10, 2012
>Statement Balance:$4815.29
>Minimum Payment Due:$2472.97
>Payment Due Date:June 7, 2012
>Want help remembering your payment due date? Sign up for automated alerts such
>as Payment Due reminders with Alerting Service.To set up alerts sign on to
>www.citicards.com and go to Account Profile.I prefer not to have this email
>contain specific information from my statement. Please send me just the
>announcement that my statement is ready to view online.
>
>
>
>
>
>
> Privacy | Security
>
> Email Preferences This
> message is from Citi Cards. Your credit card is issued by
> Citibank, N.A. If you'd like to refine the types of email
> messages you receive, or if you'd prefer to stop receiving email from us,
> please go to: http://www.email.citicards.com.
> Citibank manages email preferences by line of business.
> Changing your email preferences with Citi Cards does not change your email
> preferences for messages from Citibanks other businesses which include retail
> branch banking among others.
> Should you want to contact us in writing concerning this email, please direct
> your correspondence to: Citibank Customer
> Service P. O. Box 6500 Sioux Falls, SD 57117
> Help / Contact Us If
> you have questions about your account, please use our secure message center
> by signing on at www.citicards.com and
> choosing "Contact Us" from the "Help / Contact Us" menu. You can also call
> the customer service phone number on the back of your card.
>
> © 2012 Citibank, N.A.
> All rights reserved. Citi, Citibank and Citi with
> Arc Design are registered service marks of Citigroup Inc.
> 20120421C1050004
> 0/L0/050004/001/ZZ/SY/ZP/8000/SYSTEMB /I2012042100166572/24968
Time to start a donation thread? Appears PHP hasn't been keeping up with it's
bills :P
--- End Message ---
--- Begin Message ---
On Thu, May 10, 2012 at 7:35 PM, James <ja...@nixsecurity.org> wrote:
>>---- Original Message ----
>>From: "Citi Cards" <citica...@info.citibank.com>
>>To: php-gene...@lists.php.net
>>Sent: Thu, May 10, 2012, 1:19 PM
>>Subject: [PHP] Your Citi Credit Card Statement
>>
>>Your Citi Credit Card Statement
>>
>>
>>
>>
>>
>> Add citica...@info.citibank.com to your address book to ensure
>> delivery.
>>
>>Your Account: Important Notification
>>
>>
>>
>> Your Citi Credit Card statement is ready to view online
>>
>>
>> Dear Cardholder, Your Citi Credit Card statement is now available for
>> you to view online. Here are some key pieces of information from your
>> statement:Statement Date:May 10, 2012
>>Statement Balance:$4815.29
>>Minimum Payment Due:$2472.97
>>Payment Due Date:June 7, 2012
>>Want help remembering your payment due date? Sign up for automated alerts
>>such as Payment Due reminders with Alerting Service.To set up alerts sign on
>>to www.citicards.com and go to Account Profile.I prefer not to have this
>>email contain specific information from my statement. Please send me just
>>the announcement that my statement is ready to view online.
>>
>>
>>
>>
>>
>>
>> Privacy | Security
>>
>> Email Preferences This
>> message is from Citi Cards. Your credit card is issued by
>> Citibank, N.A. If you'd like to refine the types of email
>> messages you receive, or if you'd prefer to stop receiving email from us,
>> please go to: http://www.email.citicards.com.
>> Citibank manages email preferences by line of business.
>> Changing your email preferences with Citi Cards does not change your email
>> preferences for messages from Citibanks other businesses which include
>> retail branch banking among others.
>> Should you want to contact us in writing concerning this email, please
>> direct your correspondence to: Citibank
>> Customer Service P. O. Box 6500 Sioux Falls,
>> SD 57117 Help / Contact Us
>> If you have questions about your account, please use our secure
>> message center by signing on at
>> www.citicards.com and choosing "Contact Us" from the "Help / Contact Us"
>> menu. You can also call the customer service phone number on the back of
>> your card.
>> © 2012 Citibank, N.A.
>> All rights reserved. Citi, Citibank and Citi with
>> Arc Design are registered service marks of Citigroup Inc.
>> 20120421C1050004
>> 0/L0/050004/001/ZZ/SY/ZP/8000/SYSTEMB /I2012042100166572/24968
>
>
> Time to start a donation thread? Appears PHP hasn't been keeping up with it's
> bills :P
>
You can donate all that money to my personal bank account, I will make
sure it reaches the PHP guys.... ;)
--- End Message ---