Frequently Asked Questions: script questions: nl converttophp
Below are all the frequently asked questions added to the site. Please read through them before asking a question in the forums!
Latest
-
1
404 message with NL-ConvertToPHP?
How can I add a 404 message when using NL-ConvertToPHP?
If you’d like to display a message when someone has hit a dead link or a page that you haven’t yet created, simply add a final else statement at the end of your main index page, just before your footer tag. It should look something like this:
<? } elseif ($_SERVER['QUERY_STRING'] == "extra") { ?> //Paste here your HTML code on the Extra page (without the header and footer code, obviously). <? } else { ?> //Paste here any HTML code that you want on the 404 page (without the header and footer code, obviously - eg. <h2>Oh no! This is a 404 - page not found!!</h2> <? } include(’footer.inc’); ?>
January 9, 2005 |
By Vixx |
Filed under FAQ, NL-ConvertToPHP, Scripts
-
2
Will this script work when I’m using a sidebar for navigation on my pages? How would I put that into the script?
You can find instructions on how to do this at the forum.
May 22, 2004 |
By Sasha |
Filed under FAQ, NL-ConvertToPHP, Scripts
-
3
Why won’t PHPFanBase work if I try to convert it to PHP using NL-ConvertToPHP?
Because PHPFanBase is already using that script. Trying to apply it twice to the .php pages will cause them to break and give you errors. Leave the join and member pages alone, and just link them as join.php and members.php, do not try to include them anywhere else.
May 21, 2004 |
By Sasha |
Filed under FAQ, NL-ConvertToPHP, PHPFanBase: Customize, Scripts
-
4
Skinning using NL-ConvertToPHP?
Can I skin my site if I use NL-ConvertToPHP?
Yes. Simply add this to the top of index.php:
<?php include '/home/site/public_html/cookiecheck.php'; ?>
And then change:
include 'header.inc';
To:
include $headervar . $skin . $extension;
And
include 'footer.inc';
To:
include $footervar . $skin . $extension;

May 21, 2004 |
By Sasha |
Filed under FAQ, NL-ConvertToPHP, PHP, Scripts
-
5
How large can the PHP page that has multiple sections to it be? 50 kb, 150kb, 200kb or something only under 20kb?
Large PHP pages wouldn’t take a long time to load on the user’s browser, because the server won’t send any HTML code or images to the browser for other webpages - if you check view source on one of your pages, that’s all it will return to the user’s browser. So don’t worry about having pages with lots of pictures.
However, all PHP files must be parsed by the server before they can return HTML to the browser. If the PHP files are large, this will take longer to do, resulting in a slight slowdown (but it won’t be noticeable unless the pages get REALLY huge). Unless we’re talking about files in the 1MB+ range, you won’t really notice any performance difference.
May 21, 2004 |
By Sasha |
Filed under FAQ, NL-ConvertToPHP, Scripts