RE: [PHP] Users Online?

2009-06-20 Thread David Swenson
Chris,

If it were me (and let me warn you, there's probably 100 different ways
to do this), but If I was using a table to log them into a "control
panel (CP)" of sorts, I'm sure you have other DB querries to handle the
CP stuff it self, correct?  Well if your already taking the time to
create a DB connection on each page of that CP, why not just make a
field that updates an "active" status, and/or add this to Pauls
suggestion of logged in/out times, then every page they visit updates
that time to show they are still active.  Then do something like my bank
does and set a time limit on each page, that if another page on the site
isn't visited in so many seconds, you force them to log out. (you could
even throw something in that "asks" the user if they want to stay logged
in, cuz that'd be a nice feature)  :)

Not sure if this was what you were lookin for but just an idea.

Best of luck,
David

-Original Message-
From: oxygene...@gmail.com [mailto:oxygene...@gmail.com] On Behalf Of
Chris Payne
Sent: Saturday, June 20, 2009 2:34 PM
To: php-general@lists.php.net
Subject: [PHP] Users Online?


Hi everyone,

I have a login system that allows a user to login to my control panel,
is there an easy way so that I can tell how many users / what users are
logged into my system?  What would I need to do to add this with the
minimum of hassle?  Would I just have to look at the sessions that are
currently active and if so, how?  I really want to add this feature as
it will help with creating a messaging system.

It might be simple but if you've never done it before it's the hardest
thing in the world :-)

Thank you

Chris

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

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.364 / Virus Database: 270.12.81/2189 - Release Date:
06/20/09 06:15:00



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



RE: [PHP] PHP Mail Function

2009-06-20 Thread David Swenson
Julian,

>From my understanding of PHP's mail() function, it doesn't do anything
more than send to the address you specified.

On that note, I'd check things like:
Email address typos
The email your sending to your domain, is it already being forwarded?
If so, do you get the email at your gmail account?
If it's not being forwarded, add $additionalheaders to your script and
CC: your gmail account when sending to your domain.  See if it shows up
there.

Anyway those are somethings you could try as you have supplied no code
to check syntax and/or given any other testing you've tried.

Good Luck,
David


-Original Message-
From: Julian Muscat Doublesin [mailto:opensourc...@gmail.com] 
Sent: Saturday, June 20, 2009 1:59 PM
To: php-general@lists.php.net
Subject: [PHP] PHP Mail Function


Hello Everyone,

I have written an e-mail function that sends e-mail to my domain that
forwards it to a gmail account.

When I use the gmail address directly it works fine. When I use my mail
domain i don't get anything.

Has anyone experienced this? Can anyone give me some advice?

Thanks in advance

Julian
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.364 / Virus Database: 270.12.81/2189 - Release Date:
06/20/09 06:15:00



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



RE: [PHP] Re: [PHP-QA] problem code

2009-02-01 Thread David Swenson
~CODE~~~
> $x_Message = $x_fname." ".$x_lname." ".$_practice." just registered 
> for ".$x_nevent."Method of payment ".$x_payment." Email address 
> is".$x_email." Telephone number".$x_tele. "Question is ".$x_qanda.";
~/CODE~~

Recheck your code for syntax error.  Appears you have one to few/many
quotes (").

Good Luck
David

>On Sun, Feb 1, 2009 at 14:08, Chris Ives  wrote:
>
> What is wrong with this code?
>
>
>
> $x_Message = $x_fname." ".$x_lname." ".$_practice." just registered 
> for ".$x_nevent."Method of payment ".$x_payment." Email address 
> is".$x_email." Telephone number".$x_tele. "Question is ".$x_qanda.";
>
>
>
> $message =  $x_Message;
>
> $from = $x_email;
>
> $to = "nci...@gmail.com";
>
> $subject = "Panorama Registration";
>
> $headers = "From: $from";
>
> /* Now we are ready to send the email so we call php's mail() function
>
> with the appropriate variables from above included in the brackets */
>
> mail($to,$subject,$message,$headers);
>
>
>
> --
> PHP Quality Assurance Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 

daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/
|| http://www.pilotpig.net/ Unadvertised dedicated server deals, too low
to print - email me to find out!

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


No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.552 / Virus Database: 270.10.16/1928 - Release Date:
1/31/2009 8:03 PM
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.552 / Virus Database: 270.10.16/1928 - Release Date:
1/31/2009 8:03 PM
 


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



RE: [PHP] Matching

2009-01-30 Thread David Swenson
>How do I determine the value of tx from this string?
>
>
>page/words_from_the_well_checkout/?tx=8UM53005HH344951T&st=Completed&amt=0.01
>
>My desired answer is: 8UM53005HH344951T
>
>I am trying to capture the serial number which follows tx= and ends
>immediately before the &

>Ron

I'm sure Eric gave you the answer you needed if your parsing the string
in a page.

However,  if your pulling this as a URL redirect you can use the GET
global variable "tx"...

IE:
$tx = $_GET['tx'];
echo $tx;
//8UM53005HH344951T (printed to browser)

HTH  :)
David




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