Forum Moderators: coopster

Message Too Old, No Replies

Random Links Script

Adding random links to php generated pages

         

erika1959

8:56 am on Jul 9, 2003 (gmt 0)

10+ Year Member



I want to have random links from a text file appear on my dynamically generated (PHP) pages.

I'm already using a php script to produce these pages; ideally I'd like to be able to make an addition to the script that would allow me to call the links via php. If necessary, I can use the php script to call a cgi random link script.

My list of links in the text file will be pretty long - at least 1000. I'd like to call 1-5 links on each of my pages. I also want each link to appear as normal in the source code i.e if the link appears as "Books" in the viewer's browser, I want the source code and the search engine spider to see;

<a href="books.html">Books</a>

rather than

<a href="random_link.php">Books</a> ...(or something similar).

Anyone have any ideas about the best way to achieve this, or what ready-made script to use?

Many thanks.

Nick_W

3:25 pm on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



These 2 functions could be just what you need ;)

Nick

erika1959

10:33 am on Jul 11, 2003 (gmt 0)

10+ Year Member



Thanks Nick.