search
HomeBackend DevelopmentPHP Tutorial 唯有PHP最适合做网站吗

只有PHP最适合做网站吗?
目前主流的Web开发技术,ASP.NET JSP PHP
好像大部分网站都是PHP开发的,是不是PHP是这三种技术中最适合开发互联网网站的?为什么?

------解决方案--------------------
不能这样说,不过PHP页面对像,有它们几个的优点...


------解决方案--------------------
当然不是,PHP流行只是因为它简单,容易上手.作大项目的时候PHP写起来很不爽.
------解决方案--------------------
都一样了.

不过要根据实际情况进行选择了.

举个简单的例子,知名企业要建站,总不能用盗版操作系统和相关软件吧.为了节约成本,就用php吧,要知道lamp环境都是免费的哦.那就选择php吧.

如果系统需求比较高,如某政府办公平台,就会选择jsp+oracle


------解决方案--------------------
PHP适合中小型项目
------解决方案--------------------
世界上60%动态网站是php做的 呵呵 其余40% ASP.NET JSP PHP 
各有优缺点吧。。。。

------解决方案--------------------

门槛低,入门简单
------解决方案--------------------
快速开发,而且PHP越来越成熟了。。
------解决方案--------------------
支持php
------解决方案--------------------
好像没一个说到正点上的
门槛低,免费,很老套的说法了
PHP是这么流行起来的
但是不单单是这些而已
------解决方案--------------------
跟JSP相比:门槛低
跟ASP.NET相比:门槛低、免费、安全性好、稳定性好

缺点:
1.OO指向支持不够
2.对大型系统所需的功能支持不够
3.周边支持工具相对匮乏


虽然有以上缺点,但是完全可以应付大多数网站的需求。
同时,保证了PHP门槛低的优点。
门槛低,是PHP的最大魅力,这保证了PHP下低成本高效率的开发。

虽然PHP不善于后台处理,但是,很多大型网站的前台程序都是PHP。
------解决方案--------------------
JSP ASP都是模仿PHP的, PHP是它们的先驱者.
大项目还是JAVA用的多,这是不变的事实.
------解决方案--------------------
php 比较适合中小型的开发

大型的网站 用jsp的比较多啊


php的能实现功能是有限的 


------解决方案--------------------
安全性也很出色的!!
------解决方案--------------------
php适合轻量级开发...不过有例外wiki,wordpress等等

同样是做web,相较java,项目会快捷很多...

当然,开发进度和水平也有关系
------解决方案--------------------
还有就是上手比较快...短时间内就可以进行开发...
------解决方案--------------------
其实php只是几年前才兴起的
那时候asp、jsp等已经比较成熟了
而php的灵活性,书写起来很随意
特别是php5以后既支持面向对象由支持面向过程的开发
得到很多人的喜爱
另外php+mysql+apache都是免费的
------解决方案--------------------
免费,好学,功能强大,为什么不用。

不过现在的选择太多了,而且不比php差,python, ror...







中国软件人论坛
------解决方案--------------------
主要是因为代码开源不会涉及版权问题。
------解决方案--------------------
部署性高可也原因之一:特别是LAmP组合

apache工业级服务器,linux和mysql也很强大,最佳组合

支持跨平台

与此相比:ASP.net不知能否跨平台

jsp没用过,部署成本不清,java同样如此?

相反,另一种敏捷开发ruby-on-rails 的开发速度更快,但部署风险也不确定

还有一种就是PHP稳定,开发上更自由
------解决方案--------------------
PHP太自由,易上手,但是一旦规模变大就容易结构混乱。

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What data can be stored in a PHP session?What data can be stored in a PHP session?May 02, 2025 am 12:17 AM

PHPsessionscanstorestrings,numbers,arrays,andobjects.1.Strings:textdatalikeusernames.2.Numbers:integersorfloatsforcounters.3.Arrays:listslikeshoppingcarts.4.Objects:complexstructuresthatareserialized.

How do you start a PHP session?How do you start a PHP session?May 02, 2025 am 12:16 AM

TostartaPHPsession,usesession_start()atthescript'sbeginning.1)Placeitbeforeanyoutputtosetthesessioncookie.2)Usesessionsforuserdatalikeloginstatusorshoppingcarts.3)RegeneratesessionIDstopreventfixationattacks.4)Considerusingadatabaseforsessionstoragei

What is session regeneration, and how does it improve security?What is session regeneration, and how does it improve security?May 02, 2025 am 12:15 AM

Session regeneration refers to generating a new session ID and invalidating the old ID when the user performs sensitive operations in case of session fixed attacks. The implementation steps include: 1. Detect sensitive operations, 2. Generate new session ID, 3. Destroy old session ID, 4. Update user-side session information.

What are some performance considerations when using PHP sessions?What are some performance considerations when using PHP sessions?May 02, 2025 am 12:11 AM

PHP sessions have a significant impact on application performance. Optimization methods include: 1. Use a database to store session data to improve response speed; 2. Reduce the use of session data and only store necessary information; 3. Use a non-blocking session processor to improve concurrency capabilities; 4. Adjust the session expiration time to balance user experience and server burden; 5. Use persistent sessions to reduce the number of data read and write times.

How do PHP sessions differ from cookies?How do PHP sessions differ from cookies?May 02, 2025 am 12:03 AM

PHPsessionsareserver-side,whilecookiesareclient-side.1)Sessionsstoredataontheserver,aremoresecure,andhandlelargerdata.2)Cookiesstoredataontheclient,arelesssecure,andlimitedinsize.Usesessionsforsensitivedataandcookiesfornon-sensitive,client-sidedata.

How does PHP identify a user's session?How does PHP identify a user's session?May 01, 2025 am 12:23 AM

PHPidentifiesauser'ssessionusingsessioncookiesandsessionIDs.1)Whensession_start()iscalled,PHPgeneratesauniquesessionIDstoredinacookienamedPHPSESSIDontheuser'sbrowser.2)ThisIDallowsPHPtoretrievesessiondatafromtheserver.

What are some best practices for securing PHP sessions?What are some best practices for securing PHP sessions?May 01, 2025 am 12:22 AM

The security of PHP sessions can be achieved through the following measures: 1. Use session_regenerate_id() to regenerate the session ID when the user logs in or is an important operation. 2. Encrypt the transmission session ID through the HTTPS protocol. 3. Use session_save_path() to specify the secure directory to store session data and set permissions correctly.

Where are PHP session files stored by default?Where are PHP session files stored by default?May 01, 2025 am 12:15 AM

PHPsessionfilesarestoredinthedirectoryspecifiedbysession.save_path,typically/tmponUnix-likesystemsorC:\Windows\TemponWindows.Tocustomizethis:1)Usesession_save_path()tosetacustomdirectory,ensuringit'swritable;2)Verifythecustomdirectoryexistsandiswrita

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.