troubleshooting Question

Include Many Classes in One PHP File

Avatar of SevenAteAnthony
SevenAteAnthonyFlag for United States of America asked on
PHP
12 Comments1 Solution430 ViewsLast Modified:
Hi Experts,

Thanks for reading. How can I include many classes in my PHP files without many include statements?

<?php

include('db/connect.php');
include('lib/login_check.php');
include('lib/a.class.php');
include('lib/b.class.php');
include('lib/c.class.php');
include('lib/d.class.php');
include('lib/e.class.php');
include('lib/f.class.php');
include('lib/g.class.php');
include('lib/h.class.php');
include('lib/i.class.php');
include('lib/j.class.php');
include('lib/k.class.php');
include('lib/l.class.php');

Thanks!
ASKER CERTIFIED SOLUTION
SevenAteAnthony

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros