TinyPortal

Development => Support => Topic started by: cralor on May 16, 2010, 04:19:47 AM

Title: PHP Article - Include function
Post by: cralor on May 16, 2010, 04:19:47 AM
Hello.

I'd like to take an existing PHP script and use TinyPortal as the "shell". This fits the direct description of a PHP page. The problem is, I cannot simply copy and paste the PHP. This is a large script which connects to many other PHP pages. So, I thought I would 'include' the index.php, but this does not work.

What other choices do I have and how can this be done?

Thank you,
cralor
Title: Re: PHP Article - Include function
Post by: ZarPrime on May 16, 2010, 04:49:27 AM
You could try using an iframe.  Both of these articles on my test site use one to display a particular website inside the frame of the article ...
http://talesofthehavenexpanse.com/smf2test/index.php?page=talent
http://talesofthehavenexpanse.com/smf2test/index.php?page=pumpkin

ZarPrime
Title: Re: PHP Article - Include function
Post by: cralor on May 16, 2010, 05:01:56 AM
Great Thanks!!