Posts Tagged Php

the optimization of ecshop

One game with optimization of ecshop.

We use eaccelerator as op for php code. also tested APC and Xcache. seems EA is better on ecshop. it finally turn out the speed is slow down by the session on DB part.

ecshop stores the session into DB. so there are lots of insert/update when the visit cocurrency is very high. but the DB load looks normal, that’s why we spent some time to hit the point. finally check with show processlist. found lots of operation on session table.
then we commented the code related with session. the speed of the site improved a lot.

session be stored in DB maybe better with security or load banlance. but it can be replaced with Memcache. the speed should improve a lot.

Tips from on LAMP op:
http://www.ibm.com/developerworks/linux/library/os-5waystunelamp/index.html

,

No Comments

Web Cookies

The programmers met a problem when use Typo3, the clients can’t login with IE but can login with Firefox/Opera.
After the investigation , we find the problem is the cookies. Typo3 can set the domain for the cookies. change the setting to “.domain.com” it works.

btw, close the browers and clean the cookies the most right way.
In order to do this properly, remember to close your browser first. This is because all your cookies are held in memory until you close your browser. So, if you delete the file with your browser open, it will make a new file when you close it, and your cookies will be back.

Refer of the cookies.
http://www.cookiecentral.com/faq/
http://www.howstuffworks.com/cookie.htm
http://tools.ietf.org/html/rfc2109
http://tools.ietf.org/html/rfc2965

, ,

No Comments

Drupal Optimize Tips

Drupal Optimize Tips also good for Php Optimization

http://2bits.com/articles/drupal-performance-tuning-and-optimization-for-large-web-sites.html

No Comments

php gd库的细节

今天早晨听到imagerotate()函数不能用,一查是gd库里面的东西。

phpinfo里面显示都正常,显示如下:

gd
GD Support => enabled
GD Version => 2.0 or higher
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.2.1
GIF Read Support => enabled
GIF Create Support => enabled
JPG Support => enabled
PNG Support => enabled
WBMP Support => enabled Read the rest of this entry »

1 Comment