Using UDT to include() an external php file in content page
Posted: Fri Mar 09, 2007 6:41 pm
Okay... I've tried every combination imaginable, searched and researched the forum, found some possible solutions, guidelines, none of them worked, so....
I have large php script that I want to include in a content page. It has more than one function so I can't just copy/paste into a UDT. So, after reading up, I uploaded the php file to the uploads directory. Then I created a UDT tag called "formmailer" with the following function call:
I create the content page and there I simply put {formmailer}. When I try to open that page, I get this is the content area:
I've tried several path differences and it all comes out the same. I'm stumped! Help! What am I doing wrong?
I have large php script that I want to include in a content page. It has more than one function so I can't just copy/paste into a UDT. So, after reading up, I uploaded the php file to the uploads directory. Then I created a UDT tag called "formmailer" with the following function call:
Code: Select all
include(uploads/formmailer.php);Code: Select all
Warning: Division by zero in /home/faith/public_html/lib/content.functions.php(669) : eval()'d code on line 1
Warning: cms_tmp_formmailer_userplugin_function(php): failed to open stream: No such file or directory in /home/faith/public_html/lib/content.functions.php(669) : eval()'d code on line 1
Warning: cms_tmp_formmailer_userplugin_function(php): failed to open stream: No such file or directory in /home/faith/public_html/lib/content.functions.php(669) : eval()'d code on line 1
Warning: cms_tmp_formmailer_userplugin_function(): Failed opening 'php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/faith/public_html/lib/content.functions.php(669) : eval()'d code on line 1