Posted by Chris Ianson on 03/11/06 13:02
"Toby Inkster" <usenet200603@tobyinkster.co.uk> wrote in message
news:00mae3-ipc.ln1@ophelia.g5n.co.uk...
> Chris Ianson wrote:
>
>> Hi, I'm looking for a simple newbie way to put quotes into HTML code, and
>> have them randomise each time the page is refreshed. What's the easy
>> solution?
>
> If your server supports PHP...
>
> <?php
> $cmd = '/usr/games/fortune';
> printf("<blockquote><p>%s</p></blockquote>",
> nl2br(htmlspecialchars(system($cmd))));
> ?>
Thanks. What if it doesn't support PHP (it doesn't)?
>
> --
> Toby A Inkster BSc (Hons) ARCS
> Contact Me ~ http://tobyinkster.co.uk/contact
>
Navigation:
[Reply to this message]
|