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...
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 =...
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
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...
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.
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...
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...
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...
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...
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...
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...
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...
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
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
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.