[thelist] Fortune in Linux
Ritwik Patra
patra at vsnl.com
Tue Feb 5 09:47:00 CST 2002
Dear Anthony,
We could solve the problem of getting fortune quotes in webpage. We
could do it through this by a php script:
echo exec("/usr/games/./fortune");
We have also added it in our Nuke based homepage of INTRANET by adding
the following in the message function of mainfile.php (as "Quote For
The Moment"):
echo passthru("/usr/games/./fortune");
Thank you all for your help.
Ritwik Patra
On 2 Feb 2002 at 17:27, Anthony Baratta wrote:
> Which language do you want to do this in? I think you might be able to do
> it with SSI, but you'll better luck with Perl or PHP, IMHO.
> ---
> Anthony Baratta
> President
> Keyboard Jockeys
More information about the thelist
mailing list