|
|
|
|
Joined: Oct 2007
Posts: 22
stranger
|
|
stranger
Joined: Oct 2007
Posts: 22 |
I would like to include a php script inside a forum. I tried putting the include (shown below) inside the forum introduction body where it says you can use PHP, but all it shows is the html search box at the beginning of the script. The script I want to include is in the same directory as my ubbthreads.php file. Does anyone know a better way to include an entire php script inside the forums? <?PHP
include('easynichestore.php');
?>
|
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 2
Veteran
|
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 2 |
Strange, I use includes for my header, and that works fine.
Maybe an error in your include file?
Last edited by blaaskaak; 11/29/2007 4:25 PM.
|
|
|
|
|
Joined: Dec 2006
Posts: 1,235
veteran
|
|
veteran
Joined: Dec 2006
Posts: 1,235 |
Have you tried using the full path? Example:
<?PHP include('/home/mywebsite/public_html/forum/easynichestore.php'); ?>
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
I use includes on my header with no problems, I also use the full path to link to files.
|
|
|
|
|
Joined: Oct 2007
Posts: 22
stranger
|
|
stranger
Joined: Oct 2007
Posts: 22 |
Using the complete path solved the problem. Thanks.
If you're 20 and not a Liberal, you have no heart. But if you're 40 and still a Liberal, you have no brain.
|
|
|
|
|
Joined: Aug 2006
Posts: 1,360 Likes: 2
Veteran
|
|
Veteran
Joined: Aug 2006
Posts: 1,360 Likes: 2 |
I don't use a full path, but the include I call from the header is in the same path as the header.
|
|
|
|
1 members (1 invisible),
304
guests, and
96
robots. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|
|