三层PHP系统 [英] Three tier PHP system

查看:79
本文介绍了三层PHP系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人在三层编码PHP?


如果你对此有所了解,可以给我发一些教程的链接吗?


我的表现不佳使用简单的过程编码风格,所以需要将代码更改为三层(虽然它不会是一周的工作)。



谢谢

Is there anyone who codes PHP in three tier?

If you know anything about that, can you please send me links of some tutorials?

I''m not able get good performance with the simple procedural coding style, so need to change the code to three tier (although its not going to be a week''s job).


Thanks

推荐答案

一个有趣的问题,我期待着阅读回复。


但我很好奇你的意思是什么意思不好性能。你能详细说说吗?您认为您的瓶颈在哪里?
An interesting question, I look forward to reading the replies.

But I am curious what you mean by not achieving good performance. Can you elaborate? Where do you think your bottlenecks are?



一个有趣的问题,我期待阅读回复。

但我很好奇你没有取得好成绩的意思。你能详细说说吗?您认为您的瓶颈在哪里?
An interesting question, I look forward to reading the replies.

But I am curious what you mean by not achieving good performance. Can you elaborate? Where do you think your bottlenecks are?



嗯,主要的问题是可扩展性,自我开始测试以来,这在我的案例中一直是个大问题。然后是有限数量的mysql连接。我收到错误警告:连接太多很常见,50-100个用户同时测试它。经过一些研究,我发现对于可能拥有多个并发用户的站点,建议采用三层设计。

Well, the major problem is scalability, which have been a big issue in my case since I started testing. And then the limited number of mysql connections. I get the error "Warning: Too many connections" quite frequently, when 50-100 users test it concurrently. And after some research, I have come to know that for the sites which could have many number of concurrent users, its recommended to adopt the three tier design.



嗯,主要的问题是可扩展性,自从我开始测试以来,这在我的案例中一直是个大问题。然后是有限数量的mysql连接。我收到错误警告:连接太多很常见,50-100个用户同时测试它。经过一些研究,我发现对于可能拥有大量并发用户的网站,建议采用三层设计。
Well, the major problem is scalability, which have been a big issue in my case since I started testing. And then the limited number of mysql connections. I get the error "Warning: Too many connections" quite frequently, when 50-100 users test it concurrently. And after some research, I have come to know that for the sites which could have many number of concurrent users, its recommended to adopt the three tier design.



我一定很无知,我认为3层设计只是html / php / mysql的组合?但听起来你正在使用mysql,你可能有html和php,所以,我有点迷路了。我知道我没有为解决方案做出贡献,但我可以自己研究一下。


问候

I must be quite ignorant, I thought 3 tier design was just html/php/mysql combination? But it sounds like you are using mysql, and you probably have html and php with that so, I''m a little lost. I know I''m not contributing to the solution, but I might be able to if I can research it myself.

Regards


这篇关于三层PHP系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆