Welcome Guest [Log In] [Register]
Add Reply
PHP include not working
Topic Started: Mar 25 2009, 12:55 AM (184 Views)
The Keith
Member Avatar

I use php includes for my site, and they usually work flawlessly, but when trying to implement a shoutbox code, it cuts off the code of the page.

Code:
 

<?php
$number = 10;
include('/home/vol5/byethost8.com/b8_2870689/htdocs/shoutbox/show_posts.php');
?>



The path is valid; I'm pretty sure of that.
Websites are cool; click here to get one so people will know how cool you are
Offline Profile Quote Post Goto Top
 
GhettoFish
Member Avatar
Awesomeness FTW!
Where in that is the file you are including to located?
To include from root should work but it might also be the problem.
If you have it in htdocs do

include './shoutbox/show_posts.php';
If you are having problem check this for info.
http://no2.php.net/include/
I'm not young enough to know everything.
- J.M. Barrie
http://www.cixz.org/
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Web-Based Programming Support · Next Topic »
Add Reply

Banner and Logo by TheKeith