Page 1 of 1

include question

Posted: Wed Jun 16, 2004 1:41 pm
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

Posted: Wed Jun 16, 2004 1:43 pm
by qads
how long will it take you to test it out? :roll:

Posted: Wed Jun 16, 2004 1:51 pm
by pinehead18
well i did and it is not working. I just wanted to see if anybody had better ideas?

Posted: Wed Jun 16, 2004 1:56 pm
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.

Posted: Wed Jun 16, 2004 4:18 pm
by PAW Projects
Another reason always to include using the full path to the file.