Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. deemarcus

    Printing problem

    Hi, i am using getStyleClass('tableB').style.display = 'none'; to make table rows invisable on the screen when selecting items from a drop down menu, this works ok but when i try and print the page or even print preview it - all table rows are visible, does anyone know why and have a solution to...
  2. deemarcus

    File download...

    Hi the following code is part of my php page which displays files in a folder/s. When the user select the file it opens it automatically, can i pass the file to a download page or somthing which will open the file and prompt the user to download> chdir($path); $file_location =...
  3. deemarcus

    fetch file to download...

    Oh pants! i was hoping that i could replace the href to the file with a getfile() function or somthing. How can i browse folders / directories out side the web tree but not select them to download? Im a little confused. Dee
  4. deemarcus

    fetch file to download...

    lgarner, thanks for replying. I put the directory outside the web root which worked fine, i could browse the directory etc... but i have problems selecting the file to download as it is a hyperlink... maybe this is the correct way to do it... if i post my php code you can see what i mean...
  5. deemarcus

    fetch file to download...

    Thanks for replying, whats the best was to get users to log in with usernames / passwords kept in mysql database and using .htacess for directlry security? regards.
  6. deemarcus

    fetch file to download...

    Hi, i am currently using the following <a href=\"$file_location$value\">$value</a> to allow a user to download a file which is in an .htaccess passworded directory. If the user selects the file he/she will be prompted to enter a username and password (the same applies if he / she tries to...
  7. deemarcus

    php & htaccess

    Looks like it isn't going to be possible. Will see if i can bypass the login or somthing instead and only display it if someone tried to access the file directly... Or rather than using a hyper link to get the file, i request the file instead and do the download atomatically (as i can browse a...
  8. deemarcus

    php & htaccess

    Hmmm, it works if i pass the username:password@ in the header to the link. But this is visible and people could save it as a favorite. need to see if i can set it in the php page. dont think it will be possible though...
  9. deemarcus

    php & htaccess

    I think im getting confused! Think i best explain in detail what i am trying to do as i think i may be misleading you... I have a directory called files which is protected by an .htaccess file. page 1 (login.php) the user logs in with a username and password which a validate.php page if an...
  10. deemarcus

    php & htaccess

    Hmmm, i just need to use a test page to set the username and password that matches what is in the .htpasswd file, if it is the same i should be able to browse to a protected folder else i should get a popup to login. Will see if i can put a page together, bit new to all this so it may take some...
  11. deemarcus

    php & htaccess

    Still a bit stuck. this is what i want to do... At the top of the php page it sets the username and password... <?php ($_SERVER["PHP_AUTH_USER"] == "dee"); ($_SERVER["PHP_AUTH_PW"] == "marcus"); ?> So rather than popping up the logon dialog it uses the values already set in the php page...
  12. deemarcus

    php & htaccess

    Thanks for replying (hope your feeling better!). I am already using a mysql database to log in which works fine, but i have files that someone could browse to on the website - so i thought if i can set an htaccss up for the directory and pass a username / password to it once the user logs in. I...
  13. deemarcus

    php & htaccess

    Hi, does anyone know if it is possible to set an htaccess file for a directory with a username and password and get a php page to set the username and password? Hope this sakes any scence! Kindest thanks, Dee
  14. deemarcus

    PHP Directory Help!

    Thanks, will post my working code (when it works)!!!! Regards.
  15. deemarcus

    PHP Directory Help!

    Thanks for the example, will play with adding it to my code. Will probably post back saying i screwed everything up! Thanks, Dee
  16. deemarcus

    PHP Directory Help!

    Thanks for replying. Not sure how to do that (new to PHP!) I think that this may have somthing to do with it but i cant see any difference if i change the value to "true" from "false" $allow_parent = "false"; Regard Dee
  17. deemarcus

    PHP Directory Help!

    Hi someone has given me the following code to display all files / folders in a given directory... This works fine but how can i stop the user from going up to a directoy that is higher than a given path? i.e the directory is... home/htdocs/_files/_standard/_reports want to stop the user...
  18. deemarcus

    Log on script

    Thanks for replying, what happens if someone is trying to access a file directly (like a software upgrade file)? Regards, Dee
  19. deemarcus

    Log on script

    This is working fine now, how can i setup directory security so no-one can access files unless they have logged on via the above method. (without using .htaccess) Regards, Dee
  20. deemarcus

    Log on script

    Thanks for that, have added a validation script to the top of each page and turned them into php pages, works a treat! Kindest thanks, Dee

Part and Inventory Search

Back
Top