Adding Random Text Generator to Webpage

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
AlphaSoulja
Forum Newbie
Posts: 2
Joined: Wed Nov 05, 2003 7:28 pm

Adding Random Text Generator to Webpage

Post 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?
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post 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.
AlphaSoulja
Forum Newbie
Posts: 2
Joined: Wed Nov 05, 2003 7:28 pm

Post by AlphaSoulja »

Thanx a lot.
Works perfectly now!
Post Reply