Page 1 of 1

Adding Random Text Generator to Webpage

Posted: Wed Nov 05, 2003 7:28 pm
by AlphaSoulja
I have this html page:

http://alphasoldier.kicks-ass.net/T_/Quotes.html

and this .php document:

http://alphasoldier.kicks-ass.net/randomquotes.php

How would I insert what the .php file displays into the html document?

They say insert <?php include "/randomquotes.php"; ?>
but that doesn't work. Any ideas why?

Posted: Wed Nov 05, 2003 7:44 pm
by scorphus
For <?php include "/randomquotes.php"; ?> works you'll have to call it from a .php page. So change the Quotes.html to Quotes.php, and it should work.

Cheers,
Scorphus.

Posted: Wed Nov 05, 2003 7:47 pm
by AlphaSoulja
Thanx a lot.
Works perfectly now!