我看了不少文章,说php适合用来开发中小型网站,而不适合用来开发大型网站,因为PHP网站在部署集群等方面存在瓶颈。但BAIDU、GOOGLE、SINA等不就是用PHP开发的吗?这究竟是怎么回事?请大侠指教。谢谢!
回复讨论(解决方案)
既然事实不是如此,那还需要什么理由呢?
我的意思是,PHP真的不能用于开发大型网站吗? BAIDU 是如何利用PHP实现大型应用的?
啥叫大型网站?
例如,类似BAIDU的
有谁看过百度的后台么?
google不是, 但是facebook是
facebook。
百度新浪腾讯。。。这些门户网站都包含了PHP,虽然不全是PHP。
腾讯家居频道用了thinkPHP.
成功不在于语言的选择,而是如何最大程度优化代码和如何分配各个服务器的作用。
PHP网站在部署集群等方面有瓶颈吗?
PHP网站在部署集群等方面有瓶颈吗?
为啥我觉得这个和php关系不大,主要是web server的问题吧
大型网站不单纯使用一种技术(或语言)。
啥叫大型网站?
估计他说的是访问量巨大。
国外很多大型网站就是PHP做的,中国人特爱微软的东西,所以.NET占了大部分了。
全靠了微软的免费平台和高额培训。
引用 3 楼 luciferstar 的回复:
啥叫大型网站?
估计他说的是访问量巨大。
国外很多大型网站就是PHP做的,中国人特爱微软的东西,所以.NET占了大部分了。
php我看行
做大网站,更在意的是服务器,负载均衡等。
重要选择合适的编写方式,处理方式,数据库。
什么语言都可以开发所谓的大型网站。
JSP,PHP,ASP基本都可以的。
百度的不单纯是一门技术吧,后台肯定有很多强大程序在支撑着,只不过表现给用户看到的是PHP而已
php充其量是一种前端应用的脚本语言,在某些大公司里,写php的和js的一样,都属于前端开发,真正的业务支持撑是需要很多后台的分布式架构的应用,如:memcache、Hadoop或一些云存储、专业索引程序等应用在后面支持
真正的大网站应该是包含多种语言或者技术的,尤其看重负载,数据库等方面,如果只是一般意义上比较大型的网站,php是绝对可以胜任的。
百度的不单纯是一门技术吧,后台肯定有很多强大程序在支撑着,只不过表现给用户看到的是PHP而已
赞同,对不同的应用应该选择适合的技术,而不会单一地在所有应用中采取同一技术
facebook也不全是用php
我最爱Facebook...
怎么样的网站算大型的啊
绝对可以。主要看php的水平。
baidu,google这些前台页面都是php这没错,但是后台运算是c,java或者其他的。
现在很多无聊的人就是老说这不好那不好,我还是劝你们要学就先把一门语言学好,在实际应用中来体会他们的优势和缺点。
百度,新浪,腾讯,暴风正在招,我已经很长没去过智联了。以前看过金山,当当。139
大公司就一家我没见它招过-网易
赞同16楼,绝对不全是PHP,只是体现PHP地方比较多而已
肯定能。
肯定可以呀。 PHP现在不都是用来开发大型网站了么? 虽然 很多JS NET 。毕竟net属于中端和高端的。 唉,总之一句话, 那些大人物说啥好,后面就必定有一群不懂装懂的跟风。。。
支持,没有那种语言是可以一统天下的,关进是怎么部署应用,选择合适的语言
单纯用PHP做一般的网站足够了,当然综合应用系统,单单用php一门语言肯定不够的,php内核早期是用c语言来写的,如果你技术够牛,也可以继续用c语言去扩充php内核,这完全可能的,毕竟php是开源项目
PHP部署轻巧,反应快,这个是真的
肯定行的。。。看你怎么去用了。
楼上的!貌似你喜欢把老帖子挖出来!
PHP能用来开发操作系统吗?
看看,不说话。。
我爸又不是李刚,我怎么知道
facebook。
百度新浪腾讯。。。这些门户网站都包含了PHP,虽然不全是PHP。
腾讯家居频道用了thinkPHP.
成功不在于语言的选择,而是如何最大程度优化代码和如何分配各个服务器的作用。
说得不错
不能!
PHP只是展示层,主要的还是要靠后台强大的服务支撑,包括C++、JAVA等很多服务
语言只是表达方式。
什么语言都能用来开发大型网站的。
PHP很好用。
facebook。
百度新浪腾讯。。。这些门户网站都包含了PHP,虽然不全是PHP。
腾讯家居频道用了thinkPHP.
成功不在于语言的选择,而是如何最大程度优化代码和如何分配各个服务器的作用。
腾讯用thinkphp??
php也是c/c++写的。
如果我有自己的服务器,前台纯HTML,后台用C处理
后台能用C写,长见识了
不知道,反正像我们10几W数据就足够了
引用 7 楼 hero0524 的回复:
facebook。
百度新浪腾讯。。。这些门户网站都包含了PHP,虽然不全是PHP。
腾讯家居频道用了thinkPHP.
成功不在于语言的选择,而是如何最大程度优化代码和如何分配各个服务器的作用。
腾讯用thinkphp??
何止THINKPHP,腾讯连WORDPRESS都用
PHP做前台开发不错的,像百度,Google,等很多大站的前台系统都用了PHP,这些大站用了很多语言,C语言、C++、Java、PHP都有使用,所以PHP只是其中一种被使用的语言,一般地,中小型企业用纯PHP开发是没问题的,可以用框架或CMS系统,大型企业有很多使用Java开发,像银行系统,安全性较高的,使用Java不错。
你可以看看 FaceBook 的架构是怎么解决问题的!不过是英文版的!我还没找到中文版的……

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

PHP makes it easy to create interactive web content. 1) Dynamically generate content by embedding HTML and display it in real time based on user input or database data. 2) Process form submission and generate dynamic output to ensure that htmlspecialchars is used to prevent XSS. 3) Use MySQL to create a user registration system, and use password_hash and preprocessing statements to enhance security. Mastering these techniques will improve the efficiency of web development.

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

PHP remains important in modern web development, especially in content management and e-commerce platforms. 1) PHP has a rich ecosystem and strong framework support, such as Laravel and Symfony. 2) Performance optimization can be achieved through OPcache and Nginx. 3) PHP8.0 introduces JIT compiler to improve performance. 4) Cloud-native applications are deployed through Docker and Kubernetes to improve flexibility and scalability.

PHP is suitable for web development, especially in rapid development and processing dynamic content, but is not good at data science and enterprise-level applications. Compared with Python, PHP has more advantages in web development, but is not as good as Python in the field of data science; compared with Java, PHP performs worse in enterprise-level applications, but is more flexible in web development; compared with JavaScript, PHP is more concise in back-end development, but is not as good as JavaScript in front-end development.

PHP and Python each have their own advantages and are suitable for different scenarios. 1.PHP is suitable for web development and provides built-in web servers and rich function libraries. 2. Python is suitable for data science and machine learning, with concise syntax and a powerful standard library. When choosing, it should be decided based on project requirements.

PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver CS6
Visual web development tools