我也来发一个关于PHP行不行的月经帖
以前经常碰到有人问:
php怎么样?
php还行不行?
有哪些大站在用php?
.net比php好吗?
java呢?
每次看到这样的帖子,我都蛋碎了……
其实这个问题早就有了明确的答案,因为现在逐渐开始流行云计算,而在国内几家门户(新浪sae,百度bce,腾讯open,阿里ace)搞的云计算平台上面,无一例外的是,PHP做为默认支持的程序语言。
除此之外,就是java了,而.net压根儿就看不到,以后能不能看到,谁来分析分析
------解决方案--------------------
杀鸡焉用牛刀
做做网站 php 足矣
------解决方案--------------------
语言只是语言而已
------解决方案--------------------
有很多人在看这个问题的时候,可能不是宏观的去看
而是仅仅局限在国内有多少招聘以及工作后有多少薪水的角度去看这个问题
毕竟php行不行可能不是他们要关心的,更关心的是php能不能给他们带来高收入.即使 php超级流行,可是工资还是1500,他们心里也是会很黯淡,觉得没有前途,也就滋生了php不行的想法。
除非有什么东西比php更具有革命性,或者php不再更新,php才有可能不行了.
可能我们可以探讨一下php的从业者相对其他码农薪酬是不是偏低了?
------解决方案--------------------
语言有前途
一直觉得php像竖着中指
------解决方案--------------------
------解决方案--------------------
------解决方案--------------------
------解决方案--------------------
这个和语言有毛关系,哪个同学不是会2,3门语言才能吃口饭啊。
公司有评级,什么级别拿什么钱,就会个php感觉就像培训班出来的一样,没有说服力。
------解决方案--------------------
我认为PHP从今后10年内都是一个铁饭碗
------解决方案--------------------
支持多语言技术,如今只会PHP行不通,兼学Java、#C比较好
------解决方案--------------------
为什么都会有这样的争论呢?
行或不行很要紧么
------解决方案--------------------
为什么不一直去学习呢
谁知道几十年后 PHP就不会被淘汰呢
那倒不如有时间 学习其他 的语言了呢
------解决方案--------------------
感觉做网站的要赚外快(创业初期)更容易一些
------解决方案--------------------
大家用了多久学的PHP啊
------解决方案--------------------
大家学了多久找到的工作啊
------解决方案--------------------
主要是各个空间基本都支持php
------解决方案--------------------
据我所知。net只能在windows,干用windows做服务器的,没几个。除非人傻钱多
php开发高效,开发效率太高了,“所见即所得”。这就是天然的优势。
单从时间是来说。一个项目,工期紧了。用php还是很不错的。
------解决方案--------------------
学一门技术只会死路一条。
------解决方案--------------------
生活而已 何必那么较真。
------解决方案--------------------
搞系统开发,肯定用C和汇编;搞系统维护,似乎得用Shell脚本,搞网站开发,还是用php或者jsp吧。所以做不同的事,要用不同语言。因为他们都有自己的强项。

ThesecrettokeepingaPHP-poweredwebsiterunningsmoothlyunderheavyloadinvolvesseveralkeystrategies:1)ImplementopcodecachingwithOPcachetoreducescriptexecutiontime,2)UsedatabasequerycachingwithRedistolessendatabaseload,3)LeverageCDNslikeCloudflareforservin

You should care about DependencyInjection(DI) because it makes your code clearer and easier to maintain. 1) DI makes it more modular by decoupling classes, 2) improves the convenience of testing and code flexibility, 3) Use DI containers to manage complex dependencies, but pay attention to performance impact and circular dependencies, 4) The best practice is to rely on abstract interfaces to achieve loose coupling.

Yes,optimizingaPHPapplicationispossibleandessential.1)ImplementcachingusingAPCutoreducedatabaseload.2)Optimizedatabaseswithindexing,efficientqueries,andconnectionpooling.3)Enhancecodewithbuilt-infunctions,avoidingglobalvariables,andusingopcodecaching

ThekeystrategiestosignificantlyboostPHPapplicationperformanceare:1)UseopcodecachinglikeOPcachetoreduceexecutiontime,2)Optimizedatabaseinteractionswithpreparedstatementsandproperindexing,3)ConfigurewebserverslikeNginxwithPHP-FPMforbetterperformance,4)

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl


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

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

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Chinese version
Chinese version, very easy to use

WebStorm Mac version
Useful JavaScript development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver Mac version
Visual web development tools
