Is using multiple php includes a bad idea?

I am creating a PHP website . It uses several PHP classes that are currently in the same PHP.

However, I am using the Aptana IDE , and the file now crashes (about 400 lines). Therefore, I was wondering if there would be any negative impact on the inclusion of all files separately.

Current:

main file:

include("includes.php");

includes.php:

contains php classes

Recommended:

mainfile: main file:

include("includes.php");

includes.php:

include("class1.php");
include("class2.php")
+3
source share
7 answers

Multiple PHP applications are good, and 400 lines should not matter much. My concern would be with the Aptana IDE before I even consider my code as a problem.

PHP - . .

+6

IDE - 400- ? IDE.

. , , .

+3

; ... , , - " , ?"

- " "; " "

, - , ; , , APC (. PHP-), ( 2 ^^)

, : Aptana 400 , IDE ^^ (Eclipse PDT , 2 - , Aptana, "" )

+2

. , , , , , , ..

0

, -. - , .

, . , , .

0

, , - . , , - , , "include_once" "require_once", .

0

- , , ( ) , , ,

0

Source: https://habr.com/ru/post/1712887/


All Articles