- 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:

- Learn ECMAScript(Second Edition)
- Learning Selenium Testing Tools with Python
- Learning ArcGIS Pro 2
- R語言數據可視化實戰
- Scratch 3游戲與人工智能編程完全自學教程
- UI智能化與前端智能化:工程技術、實現方法與編程思想
- C語言程序設計實踐教程
- Mastering ROS for Robotics Programming
- Python圖形化編程(微課版)
- 區塊鏈技術進階與實戰(第2版)
- 自學Python:編程基礎、科學計算及數據分析(第2版)
- 零基礎學Python編程(少兒趣味版)
- Mastering Apache Storm
- Serverless Web Applications with React and Firebase
- Go語言從入門到精通