SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard
    Join Date
    Mar 2004
    Posts
    1,647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    hiding a directory with php

    hi!
    how can i hide the source in location bar of the download of one pdf document which is downloaded in explorer...
    couse explorer shopws the source in location bar when opens the pdf in browser....
    what can i do to hide this source in location bar?
    any suggestion appreciated...
    thanx in advance!!!

  2. #2
    SitePoint Evangelist ldivinag's Avatar
    Join Date
    Jan 2005
    Location
    N37 33* W122 3*
    Posts
    414
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    make it dynamic (sample type URL):

    hxxp://mysite.com/sendfile.php?file=mypdf.pdf

    then click and read this:

    http://us3.php.net/manual/en/function.header.php

    read the section right above the user comments is a sample of how to send a header with a pdf (and other types).

    your "sendfile.php" will just grab the location of the pdf somehwere buried in your server...
    leo d.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •