Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_href_link and flatfile


Guest

Recommended Posts

Posted

Is it possible to store tep_href_links in a flatfile and read them with a random function?

 

Example:

 

" <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath/x_y', 'NONSSL'); ?>"><IMG SRC="images/infobox/relax.jpg" WIDTH="150" HEIGHT="300" BORDER="0" ALT=" "></a> "

 

This is the random funktion:

 

$quotes = file("$textfile");

$quote = rand(0, sizeof($quotes)-1);

echo $quotes[$quote];

 

 

Please help...

 

Best wishes

 

Torsten

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...