1
beagle
php includes
  • 2005/4/3 5:21

  • beagle

  • Just popping in

  • Posts: 43

  • Since: 2005/3/24


Sorry if this is posted somewhere else, I couldn't find anything on the search, and being a complete beginner...

I have some PHP files that I wish to wrap with Xoops. Can I use the method described in the following FAQ?

How can I easily create a module with HTML content without any PHP and MySQL. Is there some Module generator or something?

But instead of inserting the HTML just insert my php code? Or is there an easier way to wrap php?

Thanks.

2
tjnemez
Re: php includes
  • 2005/4/3 5:37

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


not sure what you are looking for, but to simply add static content create a php file myhtml.php or whatever:

<?php
include("mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 0;
?>
add your html here
<?
include(XOOPS_ROOT_PATH.'/footer.php');
?>

you will need to link to this of course.

Login

Who's Online

223 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 223


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits