How do I work include ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
asd2791
Forum Newbie
Posts: 2
Joined: Mon Feb 24, 2014 5:32 am

How do I work include ?

Post by asd2791 »

This problem is puzzled me, and all my attempts failed.
Look at the picture:

Image

Now:
1- How do I work include for "file2" from "file1"?
1- How do I work include for "file1" from "file2"?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How do I work include ?

Post by Celauran »

Why is it structured like that? You could potentially use an autoloader. Alternately, define the full path to the included file.
asd2791
Forum Newbie
Posts: 2
Joined: Mon Feb 24, 2014 5:32 am

Re: How do I work include ?

Post by asd2791 »

How to use an autoloader ?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How do I work include ?

Post by Celauran »

Post Reply