请高手谈谈关于php
请教高手,现在的计算机发展到多核时代,云计算、多线程编程、手机和平板电脑的应用开发已经到了高速发展的阶段,对于php来说,他的前景或者说出路在哪里了??请高手谈谈。
------解决方案--------------------
我不是高手,只是进来说两句闲话而已。
楼主提的那几点,除了多线程貌似跟 PHP 关系不大以外,其它的几点对于 PHP 来说,都不是什么负面的事情,也许还能起到促进作用。当然,它们对所有 web 应用、web 开发技术也都一样会起到促进作用。
――――――――――――――――――――――――――――――――
基于CSDN论坛提供的插件扩展功能,自己做了个签名档工具,分享给大家,欢迎技术交流 :)
------解决方案--------------------
只要网站还存在,php就还有用武之处
------解决方案--------------------
php 的出路应该让php的开发者思考,我们嘛,根据项目的不同需求,选择不同的开发场景。事实上php已经能够胜任大多数的场景.不行就换嘛,不要纠结一个语言,我们都只是操纵键盘的苦劳力.
------解决方案--------------------
只谈下个人感觉。
首先,无论什么应用,都要有web.
移动应用也要html5了,还是web.
多核时代,多线程编程、手机和平板电脑的应用开发已经到了高速发展的阶段, 这个和底层相关吧。php一般不用考虑。
云计算的问题, 这个要看什么样的应用适合云? 有了云以外,还要不要有中央服务器?
最实的去要算bt了,然后电驴 (所以在下载和分享领域, 云比较多)
360的云查杀(同样也是分享下载),他不可能把你的文件,传到别人的服务器上查杀,网速没有到那个份)
苹果的icloud 和网易笔记,可能也是比较新的一种云,侧重与云存储(国外已有相关获风投的网站),实际上是中央存储,但实现云终端应用。
所以目前有两种云: 一是中央存储,但终端实现云; 二是相互云; 三是计算云(这个也有两种,一种是少参数模型计算; 另一种是大数据分析--这个估计要切片,目前不多见)
------解决方案--------------------
总有人担心php.....看起来php很让人担心的样子....
但是其实,到别的论坛看看,都一样,啥都让人担心.....
这么说吧,你这一辈子,就算你一直搞开发,也一定会在N种不同的技术中转换,
想让php的命长过你的命是不现实的,别的任何技术也都差不多,
所以,永远不要吊死在一棵树上....
php(或其它任何语言)的前景都不是谁能预测的,
这和php本身的发展,web的发展,计算机技术的发展都相关,
偶然因素太多了
------解决方案--------------------
有discuz、有phpwind、有dedecms...
只要有这些,至少PHP在中国不会死
------解决方案--------------------
不用担心,只要HTTP协议不变,PHP就不会变化,即使变化也是向好的方向改善。
PHP的处理是WEB后端的操作,而WEB前端无论怎么变,前后端的必经之路就是HTTP协议,只要这个协议没有变化,就算前端变得天花乱坠也不影响后端的PHP一根汗毛的。
------解决方案--------------------
多核,分布那是erlang天生的优势,你可以去研究,手机方面android是java,ios是object-c..你该不会想着学了php就可以四处逢源了吧?

Thedifferencebetweenunset()andsession_destroy()isthatunset()clearsspecificsessionvariableswhilekeepingthesessionactive,whereassession_destroy()terminatestheentiresession.1)Useunset()toremovespecificsessionvariableswithoutaffectingthesession'soveralls

Stickysessionsensureuserrequestsareroutedtothesameserverforsessiondataconsistency.1)SessionIdentificationassignsuserstoserversusingcookiesorURLmodifications.2)ConsistentRoutingdirectssubsequentrequeststothesameserver.3)LoadBalancingdistributesnewuser

PHPoffersvarioussessionsavehandlers:1)Files:Default,simplebutmaybottleneckonhigh-trafficsites.2)Memcached:High-performance,idealforspeed-criticalapplications.3)Redis:SimilartoMemcached,withaddedpersistence.4)Databases:Offerscontrol,usefulforintegrati

Session in PHP is a mechanism for saving user data on the server side to maintain state between multiple requests. Specifically, 1) the session is started by the session_start() function, and data is stored and read through the $_SESSION super global array; 2) the session data is stored in the server's temporary files by default, but can be optimized through database or memory storage; 3) the session can be used to realize user login status tracking and shopping cart management functions; 4) Pay attention to the secure transmission and performance optimization of the session to ensure the security and efficiency of the application.

PHPsessionsstartwithsession_start(),whichgeneratesauniqueIDandcreatesaserverfile;theypersistacrossrequestsandcanbemanuallyendedwithsession_destroy().1)Sessionsbeginwhensession_start()iscalled,creatingauniqueIDandserverfile.2)Theycontinueasdataisloade

Absolute session timeout starts at the time of session creation, while an idle session timeout starts at the time of user's no operation. Absolute session timeout is suitable for scenarios where strict control of the session life cycle is required, such as financial applications; idle session timeout is suitable for applications that want users to keep their session active for a long time, such as social media.

The server session failure can be solved through the following steps: 1. Check the server configuration to ensure that the session is set correctly. 2. Verify client cookies, confirm that the browser supports it and send it correctly. 3. Check session storage services, such as Redis, to ensure that they are running normally. 4. Review the application code to ensure the correct session logic. Through these steps, conversation problems can be effectively diagnosed and repaired and user experience can be improved.

session_start()iscrucialinPHPformanagingusersessions.1)Itinitiatesanewsessionifnoneexists,2)resumesanexistingsession,and3)setsasessioncookieforcontinuityacrossrequests,enablingapplicationslikeuserauthenticationandpersonalizedcontent.


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

SublimeText3 Linux new version
SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

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

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
