Forum Moderators: coopster

Message Too Old, No Replies

Opening docs outside of the www root

help with commands

         

epsd

2:24 pm on Jun 22, 2005 (gmt 0)

10+ Year Member



I'm trying to find a way to make links with php that will open up files I have stored outside of my web root (i.e., when someone clicks on the link, php opens up a PDF file that is outside of the public folders).

I've been scouring the PHP manual to find a command that will do this easily but most of them are more in depth than I need. Any tips, help? Thanks in adavance!

John

gliff

2:54 pm on Jun 22, 2005 (gmt 0)

10+ Year Member



You want the readfile [us2.php.net] function.