Gossamer Forum
Home : Products : DBMan : Customization :

breaking html.pi into smaller files

Quote Reply
breaking html.pi into smaller files
I'm using phpnuke for my website and would like to embed the html.pl in phpnuke.
What I would to do is to break html.pl into smaller html files so that I could easily embed them in phpnuke.
I saw a modification for breaking the html.pl about 2 or 3 years ago, but couldn't find in the resource center.
Pls. help.

mikan
Quote Reply
Re: [mikan] breaking html.pi into smaller files In reply to
You can break the html.pl file up into as many files as you want. Just keep each subroutine intact.

Here's what I would do. Leave one file named html.pl. That will be the main file, with any global variable definitions and such. Move the subroutines you wish to other files, keeping track of the names of those files. Probably all of them should be named something.pl. Let's say you name them html1.pl, html2.pl and html3.pl. Back in your main html.pl file, right at the beginning, add

Code:

require html1.pl
require html2.pl
require html3.pl


That will load all of the code into memory the same as if it was all in one file.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] breaking html.pi into smaller files In reply to
Hello JPDeni,
Thanks for your help.