1
billyvision
remote php and xoops

hi there.

ok here is what i am trying to achieve..

i have got php scripts not related to XOOPS that i want to work in XOOPS wrap... how may i achive this

to explain what i m trying to say:

say i have a php script in folder a

hxxp://www.mysite/a

and my XOOPS folder is

hxxp://www.mysite/xoops

now i want this "a" script being wrapped in the XOOPS environment * not integrated though *

i dont know much about php one way of doing this will be using IFRAMES js what other options do i have ?

thanks

2
prophecy100
Re: remote php and xoops

You can wrap anything into XOOPS using two simple bits of PHP code, (shown below)

Put this at the top of your PHP file.

<?php
include("../../mainfile.php");
include("../../header.php");
include("header.php");
OpenTable();
?>

Put this at the bottom of your php file

<?
CloseTable();
include ("../../footer.php");
?>

Make sure you adjust the paths to header.php and footer.php as needed for your site (they are in the top XOOPS directory).

Jonathan

3
billyvision
Re: remote php and xoops

hi !

thanks alot i find the above mentioned codes very useful ! have solved my problems!
thanks again !

Login

Who's Online

222 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 222


more...

Donat-O-Meter

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

Latest GitHub Commits