What I am trying to do:
Example:
Page1 http://www.smartmindmedia.com/jokes/index.html
has a link to
http://www.smartmindmedia.com/jokes/index.php?id=test.txt

Click the "test link"
So now your at page
http://www.smartmindmedia.com/jokes/index.php?id=test.txt
In the main section of this page where it says DISPLAY HERE
I want to have the info in the test.txt to display.

would I use
<? echo [http://www.smartmindmedia.com/jokes/"$id"] ?>

This test.txt file is in the directory:
http://www.smartmindmedia.com/jokes/

I really have no idea what I am doing as far as PHP goes, but it seems simple enough so I'm trying to figure it out.

    Well I think this is what you need :

    fopen - open text file
    fpassthru - get text from file and redirect it to output

    Consult php manual for exactly how to use these 2 functions . I think it should work but just in case it doesn't check the See Also and read the user notes .

      Write a Reply...