- PhpStorm Cookbook
- Mukund Chaudhary Ankur Kumar
- 204字
- 2021-08-06 19:43:17
Adding an include path
One of the software engineering principles says that components should be reusable, that is, the structure of the software should be modular. This is a practice accepted worldwide, but this adds an overhead to the translation (interpreter or compiler) to link the modules together by first finding them. PHP is no different.
Getting ready
The PHP interpreter has to search for the required files/folders/resources every time the script is run. PhpStorm can, however, decrease the time required to search for the files/folders by allowing you to set the include path. The include path is the base directory under your operating system that contains all the files and folders to the dependencies.
How to do it...
You have the freedom to set this in PhpStorm. Go to Settings | PHP | Include Path. Select the new path. Click on Apply. Done! Take a look at the following screenshot, which illlustrates this point:

- HTML5+CSS3+JavaScript從入門到精通:上冊(微課精編版·第2版)
- Designing Machine Learning Systems with Python
- HTML5移動Web開發技術
- Microsoft Dynamics 365 Extensions Cookbook
- C語言程序設計
- Cassandra Design Patterns(Second Edition)
- Python數據可視化之Matplotlib與Pyecharts實戰
- VMware虛擬化技術
- JavaScript入門經典
- C/C++程序員面試指南
- 軟件測試實用教程
- 從零開始學Linux編程
- Python語言實用教程
- 遠方:兩位持續創業者的點滴思考
- 多媒體技術及應用