[PHP] user password managment

2004-12-10 Thread Josh Howe
Does anybody have any tips or links for creating a system for managing user's passwords. I want to make it so that when a user is created, an email is sent with a link that allows them to set their password. The link should only work for a set amount of time. I have ideas for implementing someth

[PHP] session question

2004-12-07 Thread Josh Howe
Hi, I've looked at the php session documentation, and it doesn't look like there's any way to run code when a session expires. I'd like to do some cleanup when a user's session expires, is there any way to trap this? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

[PHP] getting the phsyical path

2004-12-03 Thread Josh Howe
Hi, Sorry if this is a dumb question. Is there a way in php to get the physical path the document root of my website? I want to open a file in the root of my web server, i.e. "/", but I won't always know what the physical path to the web root is, and it will vary depending on the machine the

[PHP] classes and variable scope

2004-12-01 Thread Josh Howe
Hi all, If I have the following code: $some_global_variable; Class foo { Function test() { set_global(); echo $some_global_variable; } Function set_global () { $some_global_variable = "abcd"; echo $some_global_variable; } } The first echo state

[PHP] bubble sort crashing apache

2004-11-16 Thread Josh Howe
I've implemented my own bubble sort function that is crashing apache. Can somebody either help me out with the bubble sort or help me figure out a way to solve my problem with php's built in sorting functions? This is my problem. I'm writing my own class for displaying html tables. Right now, the

RE: [PHP] http response

2004-11-13 Thread Josh Howe
That's perfect, thanks Rob. -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Saturday, November 13, 2004 10:48 AM To: Josh Howe Cc: PHP-General Subject: Re: [PHP] http response On Sat, 2004-11-13 at 10:38, Josh Howe wrote: > > Is it possible in p

[PHP] http response

2004-11-13 Thread Josh Howe
Is it possible in php to get a hold of the response stream and see what has been sent already? I have a global php function, but it can't be called inside html elements, because it creates its own form, and when you nest html forms things get weird. In this function, I want to check if there is

RE: [PHP] Re: sending mail -- nullmailer

2004-10-08 Thread Josh Howe
hanks -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: Friday, October 08, 2004 12:59 PM To: Josh Howe Cc: [EMAIL PROTECTED] Subject: [PHP] Re: sending mail -- nullmailer Hello, On 10/08/2004 01:35 PM, Josh Howe wrote: > Ok, so I came across nullmailer, which seems to do exac

[PHP] sending mail -- nullmailer

2004-10-08 Thread Josh Howe
Ok, so I came across nullmailer, which seems to do exactly what I want - forward mail to an existing smtp server. But it isn't working. I'm using the mail() php function, and the mails aren't arriving. The same code works fine on a windows machine pointing to the same smtp server. Does anybody h

RE: [PHP] sending mail

2004-10-07 Thread Josh Howe
I'm sorry, I don't know what and MTA is. Can I configure PHP to use any smtp server? -Original Message- From: Matthew Sims [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 5:58 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] sending mail > > > Do I need to have sendmail configur

[PHP] sending mail

2004-10-07 Thread Josh Howe
Do I need to have sendmail configured on my linux box to send mail via PHP? Thanks!