FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » include a php file
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
include a php file [message #26716] Fri, 05 August 2005 02:22 Go to next message
Duke is currently offline  Duke   Netherlands
Messages: 10
Registered: June 2005
Karma: 0
Junior Member
Can I include a php file say left.php in a template header & footer file, so the forum looks like http://phparch.com/discuss/
but with an actual php scripts in the included file?
When I did it ended up all weird....
Re: include a php file [message #26735 is a reply to message #26716] Mon, 08 August 2005 02:20 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to do something like this:
<?php
your php code
?>

add this into footer an you should be ok.


FUDforum Core Developer
Re: include a php file [message #26776 is a reply to message #26735] Wed, 10 August 2005 22:13 Go to previous message
Duke is currently offline  Duke   Netherlands
Messages: 10
Registered: June 2005
Karma: 0
Junior Member
Hi Ilia,

Yes I know how to include a file or php code,
but i think what happend is that the table shifted,
and the include_once file that was included uses some of the same variables because it looked really odd...

Anyway, I don't use it now.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Bulk Subscribe
Next Topic: Error when updating templates - No source for date_formats.tmpl
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 08:42:02 GMT 2024

Total time taken to generate the page: 0.04965 seconds