Include problem... :(
Posted: Wed Mar 17, 2010 12:24 am
Hi guys i've been trying to solve this problem for a week now and I haven't got any closer to solving it. Basically I have a website called ' thetop10women.com' and I would like to have a poll for every category (which is set up and working) however the problem is for some reason I cannot include it into my pages.
I will give you an example page... http://thetop10women.com/index2.php?page=wags
At the very bottom of this page I would like to include a poll but it just doesnt want to appear. The code for the poll is:
If I use this code word for word it just show the text on the website part from the <? php tags. So I tried to include it another way. I saved this code to a seperate page tried to include it another way... See below.
I created this file, 'http://thetop10women.com/poll_wags.php' and used the following code to include it into my page.
It doesn't show the code on the website any longer, in fact it doesn't show anything at all.
What am I doing wrong?
Is it not allowed to include something on an included page?? (?page=wags)
Any help is much appreciated!
I will give you an example page... http://thetop10women.com/index2.php?page=wags
At the very bottom of this page I would like to include a poll but it just doesnt want to appear. The code for the poll is:
Code: Select all
<?php
// Important! You have to include it before your html code
include_once "/home/bidding2/public_html/thetop10women.com/polls/poll_cookie.php";
?>
<html>
<body>
<?php
include_once "/home/bidding2/public_html/thetop10women.com/polls/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>I created this file, 'http://thetop10women.com/poll_wags.php' and used the following code to include it into my page.
Code: Select all
<?php include("poll_wags.php"); ?>What am I doing wrong?
Is it not allowed to include something on an included page?? (?page=wags)
Any help is much appreciated!