Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

file name from folder code help


Genius

Recommended Posts

Posted

HI

 

I would like to show the file name from a specific folder on my site.. eg

 

in my catalog folder i have a folder called docs , in that i have a file called test.doc

 

In my products info i have managed to get a link to the file but i cannot get the name test.doc to show. can someone please help me.. this is what i have so far..

 

 echo '<a href="' . tep_href_link(DIR_WS_DOCS . $product_info['products_docs']) . '">' . TEXT_DOC . '</a>';

 

the TEXT_DOC is set in my langages/english/product_info.php as

 

define('TEXT_DOC', 'name');

 

Instead of name i need to show the actual file name and it's extention.. test.doc

 

 

Any help would be great.

thanks

Posted

check in admin/backups.php how the files in the backups folder are displayed ...

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted

HI all

 

I have managed to solve it , for those who may wonder... all i did was instead of TEXT_DOC i changed that to $product_info['products_docs']) in the products_info page.

Archived

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

×
×
  • Create New...