[thelist] Splitting Articles across multiple pages with PHP

Ben Phillips ben at inchima.com
Thu Jan 31 04:48:00 CST 2002


> Hi Mark
>
> The problem with doing it the way you want to is that it's going to look
> quite strange with sentences stopping midway though etc etc.  Rather then
> just defaulting to 200 words per page, rather go to the 150ish word mark,
> and scan forward until the next double line break, then split the document
> there.

You're right, I did a quick search on the web and the following thread on
phpbuilder has some sort of solution. Again, I haven't tested this so I
can't vouch for it!

http://www.phpbuilder.com/forum/read.php3?num=2&id=154847&loc=0&thread=15484
7

<tip type="php security" author="benji">
When connecting to your database, put the username and password in an
include file, and include it on every page.

If the php parser throws a paddy and displays the source code, then your
username and password will still be unavailable to view. Make sure the
include file is kept outside of the public tree as well, so it can't be
downloaded by unscrupulous types.
</tip>

Benji.
inchima.com




More information about the thelist mailing list