instead a absolute path
(may by on development the path is diferent than on production)
look at $DOCUMENT_ROOT variable...
(a phpinfo() should tell you that value)
and do:
include $DOCUMENT_ROOT.'path/to/formhead.inc';
for example in my code I have something like
include $DOCUMENT_ROOT.'lib/UploadImage.inc';
if you use: include $DOCUMENT_ROOT.'path/to/formhead.inc';
within a function you should declare $DOCUMENT_ROOT as global.
Hint(s):
- you dont need (')' as long as `include' is a statement not a function.
- use ' instead ", if you don't need to expand variables (should be little faster)
PM