search
HomeBackend DevelopmentPHP Tutorial学习PHP,然后学习C, 深入Linux的, 如果想往底层发展, 应该是如何的一个学习过程?

回复内容:

问题驱动, PHP有着和C一样的(或者说类似的)库函数定义, 这些基本上都是对C库函数的包装, 另外在LAMP下开发的话, 会遇到各种问题, 这些问题深挖下去, 就会学习到不少的底层知识. 时间久了, 就自然可以很容易的写C了. 当然, 你在LAMP下开发, 自然也就会被动的学习到Linux相关的知识. 一切都是那么润物细无声式的形成的 :) 我见到好多人都在说底层,可究竟什么是底层,却从来没有人说过。底层是好大的一片东西,我们甚至可以把我们看不见的内部都称作底层。

对于你提到的学习PHP、C,或者Linux,然后往底层,你所指的底层是什么呢?

如果是php或者c,是不是指的是代码编译的过程,php如何做垃圾回收,堆栈空间如何分配这类的问题?

如果是Linux,是指的内核是底层,还是驱动是底层?是想了解操作系统的调度,还是磁盘文件的管理,还是网络IO的控制。

同@惠新宸 的观点,你遇到的问题往下深挖、思考的时候,就会学习到不少底层的知识了。王国维把做学问分为三个境界,我们应当先把握总体的各个方向,即“昨夜西风凋碧树,独上高楼,望尽天涯路”,然后便“衣带渐宽终不悔,为伊消得人憔悴”。然后,所谓的底层,都是一些自然而然的东西,随着你的经验和阅历慢慢积累。 这个问题的定位就不准确,因为那么对于网络前端而言,那么Linux就是底层;对于Linux而言,那么驱动层就是底层,然而对于驱动层而言,FPGA和CPLD就是底层,所以到底你想要学什么呢?
建议LZ,还是把整个系统结构搞清楚以后再根据需要好好研究,不然真是东打一耙西打一耙。。。

你到底层想干嘛?做嵌入式开发 还是 写个操作系统 还是写一门语言?还是先通过 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
PHP Performance Tuning for High Traffic WebsitesPHP Performance Tuning for High Traffic WebsitesMay 14, 2025 am 12:13 AM

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

Dependency Injection in PHP: Code Examples for BeginnersDependency Injection in PHP: Code Examples for BeginnersMay 14, 2025 am 12:08 AM

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.

PHP Performance: is it possible to optimize the application?PHP Performance: is it possible to optimize the application?May 14, 2025 am 12:04 AM

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

PHP Performance Optimization: The Ultimate GuidePHP Performance Optimization: The Ultimate GuideMay 14, 2025 am 12:02 AM

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

PHP Dependency Injection Container: A Quick StartPHP Dependency Injection Container: A Quick StartMay 13, 2025 am 12:11 AM

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

Dependency Injection vs. Service Locator in PHPDependency Injection vs. Service Locator in PHPMay 13, 2025 am 12:10 AM

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.

PHP performance optimization strategies.PHP performance optimization strategies.May 13, 2025 am 12:06 AM

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

PHP Email Validation: Ensuring Emails Are Sent CorrectlyPHP Email Validation: Ensuring Emails Are Sent CorrectlyMay 13, 2025 am 12:06 AM

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

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 Article

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools