Page 1 of 1

how to display a text file document on a php file.

Posted: Sun Feb 22, 2009 2:33 pm
by chikooo
how do i display a text file document on php using include but i want to be able to click on a link that will take me to the next page and will show the rest of the text document

Re: how to display a text file document on a php file.

Posted: Sun Feb 22, 2009 3:08 pm
by alex.barylski
file_get_contents

Re: how to display a text file document on a php file.

Posted: Sun Feb 22, 2009 3:29 pm
by chikooo
what is that? where i can get the script?
or could you write me the complete code?

Re: how to display a text file document on a php file.

Posted: Sun Feb 22, 2009 3:55 pm
by alex.barylski
php.net search for that function...

Re: how to display a text file document on a php file.

Posted: Sun Feb 22, 2009 4:07 pm
by chikooo
yeah but where do i put the function?

Re: how to display a text file document on a php file.

Posted: Sun Feb 22, 2009 4:19 pm
by alex.barylski
I have no idea...post some code and/or give an example of what your trying to do... :)