Author Topic: HOW I CAN SHOW .TXT FILES ??  (Read 12347 times)

0 Members and 1 Guest are viewing this topic.

Offline sasuke

  • Newbie
  • *
  • Posts: 32
    • View Profile
HOW I CAN SHOW .TXT FILES ??
« on: June 09, 2002, 03:53:01 PM »
How I can show .TXT files ??
.......

I can upload & download but i want see in the web.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
HOW I CAN SHOW .TXT FILES ??
« Reply #1 on: June 09, 2002, 04:25:05 PM »
Add "txt" to the "Valid file extensions" in your settings.

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline sasuke

  • Newbie
  • *
  • Posts: 32
    • View Profile
HOW I CAN SHOW .TXT FILES ??
« Reply #2 on: June 09, 2002, 04:31:49 PM »
Thanks but only show the name of the archive. I likeŽd show the text.

Do you understand me ?? Sorry for my english because iŽm spanish.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
HOW I CAN SHOW .TXT FILES ??
« Reply #3 on: June 09, 2002, 07:54:19 PM »
Try in your txt template (templates/default/media/txt.html)
Code: [Select]
<?php
readfile
&#40;"&#123;media_src&#125;"&#41;;
?>


Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline sasuke

  • Newbie
  • *
  • Posts: 32
    • View Profile
HOW I CAN SHOW .TXT FILES ??
« Reply #4 on: June 09, 2002, 09:35:21 PM »
YOU ARE THE BEST JAN !!!!
 THANKS THANKS THANKS  !!!!

Code: [Select]
<!-- Template file for ZIP Files -->
<?php
include&#40;"&#123;media_src&#125;"&#41;;
?>

<br />

 <- The code is this !!