Jump to content

Andarian

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Andarian's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i've pinpointed the problem to the apache logging. once i turned off logging completly the problem stopped
  2. Hello, I have a very busy machine serving about 1-2 million page views every day. The machine is a VPS that has 20ghz of CPU and 12GB of RAM assigned to it. each page view consists of a php script & a connection to mysql, the apache version is 2.2.3 the server gradually runs out of memory after about 10 hours of operation, (but the amount of clients per second doesn't change). I have tweaked the prefork settings quite a lot to try and deal with this. the values might look high, but if I lower them then the server starts dropping incoming http requets, here are my prefork settings: <IfModule prefork.c> StartServers 8 MinSpareServers 10 MaxSpareServers 50 ServerLimit 4096 MaxClients 4096 MaxRequestsPerChild 6000 </IfModule> I realize it might be way better to use the worker mpm, but as far as I know this will require recompiling apache and cause a downtime. Thanks a lot for anyone looking into this, I will owe you a lot! Amir
  3. yup i made a very clear syntax error
  4. hey everyone I have a production server in which I want error reporting but only on some pages I have ini_set('display_errors', 1); ini_set('log_errors', 1); ini_set('error_log', 'error_log.txt'); ini_set('error_reporting', E_ALL ^ E_NOTICE); error_reporting(E_ALL); and what not at the start, but still I see no errors... please help
  5. Hey everyone, as always, I searched first before posting this, but with no luck. I notice that some users access my site without the www. in the url, which will also give them access. The only small bug here is that the cookie no longer applies as it is a different URL. I noticed facebook for example will always redirect you to www.facebook.com if you try to access facebook.com what do you guys think? should I always redirect to www.mydomain.com? if yes, anyone has a snippet for it?
  6. hey everyone I've a popup menu that pops when you want to register to my site, (you can try it at www.grumper.org, hit the join button). I want to use JS to make the rest of the page dark so the focus is on the popup. I've NO idea how to do it
  7. I see they have an html entity translation, is there a PHP command that does this? something that translates ’ into ‘
  8. I have a function that, among other things, does htmlentities on user input. It all works fine until someone enters a char like ’ (this is not a quote). It happens when users first write their input in a word document then copy paste it to the text field and send the form. I guess I can do preg_replace('`','\'',$input) but I will probably be missing some other annoying characters too...
  9. Hey everyone I'm sorry in advanced if this has been answered before, but I couldn't find an answer. I've a website with sessions (www.grumper.org). I've a specific situation in which the client looses the session, only in the following situation 1) the user is using IE 2) the user is coming to the site from a facebook share link (http://www.facebook.com/ext/share.php?sid=79547091765&h=Vaeuf&u=qjWCh&ref=nf for example), this opens the site under the facebook toolbar It doesnt happen in firefox, but in IE the user won't be able to have a session, he will just it on every pageview. I don't even know how to tackle this. Is this IE fault? facebook? my site? what's going on? Please help
  10. effigy, yea I am But hey, mb_convert_encoding worked perfectly, need to check how much processing time it added to the program though
  11. now that sounds like the right direction... I've tried those MB functions for different things in the past, but how can they help me here? and which one of them?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.