Jump to content

call a txt file


icefire

Recommended Posts

wow.. Thanx..  :D

 

but still a small problem  :-\

 

i have a menu in my site contains txt files.

 

what i want is when a user chose a txt file from menu the path of the txt file will put automatically in code for example (path/to/file2.txt).

 

i hope you understand what i mean  ;D

 

sry for my "Broken English"  <-- nice movie  :P

 

Link to comment
Share on other sites

include/m2.php

 

<html>
<body>
<font face="verdana,arial" size="3">
<div align="center">
<form action="showcode.php" method="post" name="form123" target="iframe2">
<textarea name="msg" cols="32" rows="16"><?php echo file_get_contents('C:\xampp\htdocs\XXXX\file01.txt') ?></textarea>
<input type="submit" value="Show" />
</form>
</font>
</div>
</body>
</html>

 

menu.php

<div>
<ul>
<li><a href="file01.txt" target="form123">Getting started </a><a href="file01.html" target="iframe2">(file01)</a></li>
<li><a href="file02.txt" target="form123">Getting started </a><a href="file02.html" target="iframe2">(file02)</a></li>
<li><a href="file03.txt" target="form123">Getting started </a><a href="file03.html" target="iframe2">(file03)</a></li>
<li><a href="file04.txt" target="form123">Getting started </a><a href="file04.html" target="iframe2">(file04)</a></li>
<li><a href="file05.txt" target="form123">Getting started </a><a href="file05.html" target="iframe2">(file05)</a></li>
    </ul>

    <p> </p>
    <p> </p>
    <p> </p>
<p> </p>
    <p> </p>
    <p> </p>
</div>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.