[SOLVED] PHP Include help
Posted: Sat Apr 18, 2009 4:06 am
I am trying to include a simple PHP script that will pull data from an HTML file located in another directory on my server.
If I could pull the data from the HTML file directly, that would work also.
I am trying to get this code to work in the CMSMS dir (public_html)
view.php is located at public_html/feedback/view.php so I changed it to
Which I thought would work.
I don't know how to get how to do the PHP Includes to work. I tried doing the UDT as followed:
but I get this error on my page:
What am I doing wrong?
If I could pull the data from the HTML file directly, that would work also.
I am trying to get this code to work in the CMSMS dir (public_html)
Code: Select all
<?php $page_id="feedback"; include('view.php'); ?>
Code: Select all
<?php $page_id="feedback"; include('/feedback/view.php'); ?>
I don't know how to get how to do the PHP Includes to work. I tried doing the UDT as followed:
Code: Select all
$page_id ="feedback";
include('view.php');
Code: Select all
Warning: include(view.php) [function.include]: failed to open stream: No such file or directory in /home/stranget/public_html/lib/content.functions.php(857) : eval()'d code on line 2
Warning: include(view.php) [function.include]: failed to open stream: No such file or directory in /home/stranget/public_html/lib/content.functions.php(857) : eval()'d code on line 2
Warning: include() [function.include]: Failed opening 'view.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/var/cpanel/3rdparty/lib/php') in /home/stranget/public_html/lib/content.functions.php(857) : eval()'d code on line 2