Re: [PHP] Delivery reports about your e-mail

2005-06-10 Thread Dan Brow
On Fri, 2005-06-10 at 12:11 -0400, Returned mail wrote:
> ALERT!
> 
> This e-mail, in its original form, contained one or more attached files that 
> were infected with a virus, worm, or other type of security threat. This 
> e-mail was sent from a Road Runner IP address. As part of our continuing 
> initiative to stop the spread of malicious viruses, Road Runner scans all 
> outbound e-mail attachments. If a virus, worm, or other security threat is 
> found, Road Runner cleans or deletes the infected attachments as necessary, 
> but continues to send the original message content to the recipient. Further 
> information on this initiative can be found at 
> http://help.rr.com/faqs/e_mgsp.html.
> Please be advised that Road Runner does not contact the original sender of 
> the e-mail as part of the scanning process. Road Runner recommends that if 
> the sender is known to you, you contact them directly and advise them of 
> their issue. If you do not know the sender, we advise you to forward this 
> message in its entirety (including full headers) to the Road Runner Abuse 
> Department, at [EMAIL PROTECTED]
> 
> The original message was received at Fri, 10 Jun 2005 12:11:55 -0400
> from [110.69.210.40]
> 
> - The following addresses had permanent fatal errors -
> 


Can someone stop these e-mails from coming to the list?

Dan.

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



[PHP] mktime

2005-09-12 Thread Dan Brow
A little confused with mktime, I'm trying to get how many days are in a
year.

$year = "2006";
$epoch = mktime(0, 0, 0, 1, 0, $year); // I have to have 1 for month or
I get which day it is now. Which sucks.
$date = date("z Y", $epoch); 
print($date); // here is the problem, I get 365 days, but the year is
2005, not 2006, same goes for any year I put in.

What am I doing wrong?

Thanks,
Dan.

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



Re: [PHP] mktime

2005-09-12 Thread Dan Brow
On Tue, 2005-09-13 at 11:13 +1200, Jasper Bryant-Greene wrote:
> Dan Brow wrote:
> > A little confused with mktime, I'm trying to get how many days are in a
> > year.
> 
> How about doing it differently. I'd tackle this problem like this:
> 
>  $year = '2005';
> $time = strtotime("1 January $year");
> $isLeapYear = date('L', $time);
> 
> if($isLeapYear == '1') {
>   $days = 366;
> } else {
>   $days = 365;
> }
> ?>



Thanks.

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



Re: [PHP] mktime

2005-09-12 Thread Dan Brow
snip
> 
> I'd shorten it up even more:
> 
>  $daysinyear = 365 + date("L", strtotime("jan 1 " . $year));
> ?>

Thanks works perfect.

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



[PHP] storing passwords in $_SESSION

2005-10-10 Thread Dan Brow
How secure is it to save a password in $_SESSION.

i.e. $_SESSION['password'] 

is it safe and is it practical?

Thanks,
Dan.

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



Re: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Dan Brow
Thanks, figured that would be the case. Can't for life of me think why I
wanted to do that, must have had a brain infarction. I want to have an
expired session prompt so people can log back in with out having to
start at the login page. Would having the users login saved in $_SESSION
be alright? prompt them for their password and compare it with the
password in the DB be fine? I want to reduce the amount of typing
someone has to do when a session expires.

Thanks.

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



RE: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Dan Brow
Well, um. ya. Back to the drawing board.  Save it in a cookie?

On Mon, 2005-10-10 at 14:59 -0400, Kilbride, James wrote:
> If the session expired.. how will session hold their user id?? 
> 
> > -Original Message-
> > From: Dan Brow [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, October 10, 2005 3:05 PM
> > To: PHP-Users
> > Subject: Re: [PHP] storing passwords in $_SESSION
> > 
> > Thanks, figured that would be the case. Can't for life of me 
> > think why I wanted to do that, must have had a brain 
> > infarction. I want to have an expired session prompt so 
> > people can log back in with out having to start at the login 
> > page. Would having the users login saved in $_SESSION be 
> > alright? prompt them for their password and compare it with 
> > the password in the DB be fine? I want to reduce the amount 
> > of typing someone has to do when a session expires.
> > 
> > Thanks.
> > 
> > --
> > PHP General Mailing List (http://www.php.net/) To 
> > unsubscribe, visit: http://www.php.net/unsub.php
> > 
> > 

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



Re: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Dan Brow
I was meaning just the username, not the password, still the same issue?

On Mon, 2005-10-10 at 21:35 +0200, Emil Novak wrote:
> Yet another unsafe way... You can try to write a program that reads
> stored cookies in Temporary Internet Files - it's peace of cake for
> somebody that is advanced programmer. The best way is to "eliminate"
> lazy users - you simply do not implement "auto login". It's the
> fastest, safest and the easiest way to solve the problem.
> 
> Emil NOVAK
> LAMP Developer
> 
> On 10/10/05, Dan Brow <[EMAIL PROTECTED]> wrote:
> > Well, um. ya. Back to the drawing board.  Save it in a cookie?
> >
> > On Mon, 2005-10-10 at 14:59 -0400, Kilbride, James wrote:
> > > If the session expired.. how will session hold their user id??
> > >
> > > > -Original Message-
> > > > From: Dan Brow [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, October 10, 2005 3:05 PM
> > > > To: PHP-Users
> > > > Subject: Re: [PHP] storing passwords in $_SESSION
> > > >
> > > > Thanks, figured that would be the case. Can't for life of me
> > > > think why I wanted to do that, must have had a brain
> > > > infarction. I want to have an expired session prompt so
> > > > people can log back in with out having to start at the login
> > > > page. Would having the users login saved in $_SESSION be
> > > > alright? prompt them for their password and compare it with
> > > > the password in the DB be fine? I want to reduce the amount
> > > > of typing someone has to do when a session expires.
> > > >
> > > > Thanks.
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/) To
> > > > unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 

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



Re: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Dan Brow
Sorry for the confusion, I should have changed the subject line to
reflect my new idea.

Thanks.

On Mon, 2005-10-10 at 22:03 +0200, Emil Novak wrote:
> Oh, just username... That's good idea.
> 
> Emil NOVAK
> LAMP Developer
> 
> On 10/10/05, Dan Brow <[EMAIL PROTECTED]> wrote:
> > I was meaning just the username, not the password, still the same issue?
> >
> > On Mon, 2005-10-10 at 21:35 +0200, Emil Novak wrote:
> > > Yet another unsafe way... You can try to write a program that reads
> > > stored cookies in Temporary Internet Files - it's peace of cake for
> > > somebody that is advanced programmer. The best way is to "eliminate"
> > > lazy users - you simply do not implement "auto login". It's the
> > > fastest, safest and the easiest way to solve the problem.
> > >
> > > Emil NOVAK
> > > LAMP Developer
> > >
> > > On 10/10/05, Dan Brow <[EMAIL PROTECTED]> wrote:
> > > > Well, um. ya. Back to the drawing board.  Save it in a cookie?
> > > >
> > > > On Mon, 2005-10-10 at 14:59 -0400, Kilbride, James wrote:
> > > > > If the session expired.. how will session hold their user id??
> > > > >
> > > > > > -Original Message-
> > > > > > From: Dan Brow [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Monday, October 10, 2005 3:05 PM
> > > > > > To: PHP-Users
> > > > > > Subject: Re: [PHP] storing passwords in $_SESSION
> > > > > >
> > > > > > Thanks, figured that would be the case. Can't for life of me
> > > > > > think why I wanted to do that, must have had a brain
> > > > > > infarction. I want to have an expired session prompt so
> > > > > > people can log back in with out having to start at the login
> > > > > > page. Would having the users login saved in $_SESSION be
> > > > > > alright? prompt them for their password and compare it with
> > > > > > the password in the DB be fine? I want to reduce the amount
> > > > > > of typing someone has to do when a session expires.
> > > > > >
> > > > > > Thanks.
> > > > > >
> > > > > > --
> > > > > > PHP General Mailing List (http://www.php.net/) To
> > > > > > unsubscribe, visit: http://www.php.net/unsub.php
> > > > > >
> > > > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> 
> --
> Emil NOVAK, razvijalec distribucije Slonix
> 

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



Re: [PHP] storing passwords in $_SESSION

2005-10-12 Thread Dan Brow
On Tue, 2005-10-11 at 00:25 +0200, Oliver Grätz wrote:
> Dan Brow schrieb:
> > Thanks, figured that would be the case. Can't for life of me think why I
> > wanted to do that, must have had a brain infarction. I want to have an
> > expired session prompt so people can log back in with out having to
> > start at the login page. Would having the users login saved in $_SESSION
> > be alright? prompt them for their password and compare it with the
> > password in the DB be fine? I want to reduce the amount of typing
> > someone has to do when a session expires.
> 
> Why don't you leave the decision if they want to type to the user?
> My browser keeps track of what I entered into every login form I ever
> visited...

This app is going to be in a Doctors office I don't want people storing
passwords on systems that have patient records.

Dan.

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