Re: Displaying files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Aug 15, 2008, at 9:57 AM, Dan Shirah wrote:

Wow, I think it finally clicked.

Sorry that took so long.

The whole point behind using PHP was to try and copy or call the file from the server side so the user does not see the path to the document. Using HTML and Javascript it is extrememly easy to just view source and see the path. Whereas using PHP it would take the regular user a bit more work to view the path which is why I wanted to go that route. But having to grant the anonymous internet account access to the server would be just as bad if
not worse.

My application retrieves a list of docments that the user can view based on search criteria. When the user clicks on the document I wanted to somehow mask the location the document is being pulled from. HTML and Javascript are so easy to circumvent, even to the everyday user that I wanted to do something with PHP since it's code is not viewable when you view source
since it is run on the server.

Have any of you attempted something like this?

What about using some type of a dispatch script? Locate all the files outside of the doc root and then just call: viewdocument.php? ID=12345678 ? Although now that I've typed that I realize that you would still be running the same issue.. Unless you used javascript in your PHP to call the file maybe?



--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
11287 James St
Holland, MI 49424
www.raoset.com
japruim@xxxxxxxxxx





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux