i2-Services, Inc. Forums

Full Version: Include File
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am attempting to use the php include command however it doesn't seem to work with this script.

<?php include("http://www.mck-tech.com/inc-menu.htm"); ?>

I've inlcuded this in the file html_form.php --- am I missing something???
Try:

{php}
<include("http://www.mck-tech.com/inc-menu.htm");

{/php}
Thanks for the reply - unfortuantley that didn't work either. In fact I get an error (Parse error: syntax error, unexpected '<' in /home/mcktech/public_html/f2e/templates_c/%%4B^4B4^4B427C28%%html_form.php.php on line 180)

When I look at the file http://www.mcktech.com/html_form.php the include files appear just as they should. However, when I look at the form via the admin screen (i.e. http://www.mck-tech.com/f2e/forms.php?form=5&begin=1) I don't see the items in the include file.

(Please note these files have been changed - see note below)

The temp workaround (because I have to deliver this to my client) is to hard code the menu items. The downside is that everytime I change the menu structure I have to remember to change it on this page also.

Since I have a developers version of this software it would be great if we can discover a solution since I'm using it on multiple sites.

gilman01 Wrote:
Thanks for the reply - unfortuantley that didn't work either. In fact I get an error (Parse error: syntax error, unexpected '<' in /home/mcktech/public_html/f2e/templates_c/%%4B^4B4^4B427C28%%html_form.php.php on line 180)


Try doing that mod again, before you run it to check it via forms.php clear out your /templates_c/ (cache) folder.

Let me know on that.

Reference URL's