Re: [PHP] Need Some Direction

2004-08-09 Thread Aaron Todd
When you say outside of the webroot do you mean. Can you give me an example. The root of my web is in /var/www/html/. Thats where you are taken when you punch in my domain. Currently I have a directory called /test/ which is protected by .htaccess but it is inder the

Re: [PHP] Need Some Direction

2004-08-09 Thread Jason Davidson
if you have /var/www/html/ defined as documentroot, as you mentioend then outside is anything outside the directory html/ so /var/www/php/ could hold all your php files, and be outside the docroot. JAson Aaron Todd [EMAIL PROTECTED] wrote: When you say outside of the webroot do you mean.

Re: [PHP] Need Some Direction

2004-08-09 Thread Jason Wong
On Tuesday 10 August 2004 03:29, Aaron Todd wrote: When you say outside of the webroot do you mean. Can you give me an example. The root of my web is in /var/www/html/. Thats where you are taken when you punch in my domain. Currently I have a directory called /test/ which is protected by

Re: [PHP] Need Some Direction

2004-08-07 Thread Torsten Roehr
Aaron Todd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do you recomend the same for downloading of a file. I have a few zip files that need to be protected too. Do I have to open the file using fopen and then write it to the users machine using fwrite? Thanks, Aaron You can

Re: [PHP] Need Some Direction

2004-08-06 Thread Aaron Todd
I hate to sound ignorant, but how do I get a file out of a .htaccess protected directory without logging in again? You cant use the normal syntax of http://username:[EMAIL PROTECTED] anymore. Microsoft fixed that bug. Thanks, Aaron Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Need Some Direction

2004-08-06 Thread Torsten Roehr
Aaron Todd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I hate to sound ignorant, but how do I get a file out of a .htaccess protected directory without logging in again? You cant use the normal syntax of http://username:[EMAIL PROTECTED] anymore. Microsoft fixed that bug.

Re: [PHP] Need Some Direction

2004-08-06 Thread Miles Thompson
At 05:42 PM 8/5/2004, Aaron Todd wrote: So far I have made this work. But now I have to ask...what about a pdf file? I cant add php code to it so what do I do. I need to be able to restrict the pdf so a user can only get to it during a current session. Thanks again for all the previous posts.

RE: [PHP] Need Some Direction

2004-08-06 Thread Ed Lazor
Adding to what Miles says, use the fopen and fread commands (see manual on the PHP site) for accessing the PDF files so that you can send copies of them to the user. Examples are in the user comments of the manual. -Original Message- At 05:42 PM 8/5/2004, Aaron Todd wrote: So far I

Re: [PHP] Need Some Direction

2004-08-06 Thread Aaron Todd
Do you recomend the same for downloading of a file. I have a few zip files that need to be protected too. Do I have to open the file using fopen and then write it to the users machine using fwrite? Thanks, Aaron Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Adding to

[PHP] Need Some Direction

2004-08-05 Thread Aaron Todd
Hello, I am trying to build up a members only site, but I need some direction. So far I have written a page that will let a user register for access. That script emails me their info so I can validate it, sends them a thankyou email and then sends the data to a temporary MySQL database table.

Re: [PHP] Need Some Direction

2004-08-05 Thread Jason Davidson
I created a simpleAuth script that handles authentication, then sets up a session, there is a method that i called requireAuth(); i call this method on any page i want restricted to the members, it checks the for the valid sessoin, and also checks the time of login, and calls my destoy method if

Re: [PHP] Need Some Direction

2004-08-05 Thread Miles Thompson
Aaron, The way to do it is to have an authentication page where users log in. A successful login starts the session, on each subsequent page test for the session and if it is not present, redirect to the login page. This test is just one line at the top of each page you want to protect. This

Re: [PHP] Need Some Direction

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 10:42, Aaron Todd offered up the following tid-bit of information : snip The direction I need is how do I go about restricting access to the members only pages? I have been reading up on sessions, which I think will be a cool addition to this site, but I still

Re: [PHP] Need Some Direction

2004-08-05 Thread Aaron Todd
So far I have made this work. But now I have to ask...what about a pdf file? I cant add php code to it so what do I do. I need to be able to restrict the pdf so a user can only get to it during a current session. Thanks again for all the previous posts. You all directed me to a good place.

Re: [PHP] Need Some Direction

2004-08-05 Thread Torsten Roehr
Aaron Todd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So far I have made this work. But now I have to ask...what about a pdf file? I cant add php code to it so what do I do. I need to be able to restrict the pdf so a user can only get to it during a current session. Thanks