include question

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
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

include question

Post by pinehead18 »

If i include functions.inc.php on my html.inc page and then include html.inc on all my oither pages, i should be able to call a function from function.inc.php correct?

Thank you
Anthony
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

how long will it take you to test it out? :roll:
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

Post by pinehead18 »

well i did and it is not working. I just wanted to see if anybody had better ideas?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

include() from x.php to html.inc, which in turn includes y.php.. the path used inside html.inc is relative to x.php, not html.inc.
Last edited by feyd on Wed Jun 16, 2004 4:29 pm, edited 1 time in total.
PAW Projects
Forum Commoner
Posts: 30
Joined: Tue Jun 15, 2004 7:43 am
Contact:

Post by PAW Projects »

Another reason always to include using the full path to the file.
Post Reply