Thread: PHP Script help
View Single Post
Old 09-10-2003, 11:27 PM  
raster
Confirmed User
 
Join Date: Aug 2003
Posts: 784
PHP Script help

I've got a cgi script that allows me to add the output of a php script to an html page using the following line of code.

#insert : http://www.url.com/sript.php#

What I'm wondering is if someone could write me a couple of lines of code for script.php that would randomly select one line of information from a text file called text.txt.

This way, if I had the following line in my html file, the place where #insert : http://www.url.com/sript.php# is located, would be replaced by a random line of text from text.txt.

<a href="http://www.yahoo.com">#insert : http://www.url.com/sript.php#</a>

Thanks
raster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote