[PHP] Hotmail servers, Was RE: [PHP] LiteSpeed Web Server 1.1

2003-10-08 Thread Andrew Whyte

I hate to continue this thread at all, but...

> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 9 October 2003 6:04 AM
> To: [EMAIL PROTECTED]
> 
> On Thursday 09 October 2003 00:44, Robert Cummings wrote:
> 
> > *heheh* That's like the smarty template site not using 
> smarty. Or back 
> > in the day when hotmail was owned by Microsoft but still 
> running off 
> > linux.
> 
> I believe it's still the case. The frontend runs on MS 
> servers but the backend which handles the mail is still using 
> BSD after several desperate attempts to convert over to 
> Windows failed.

iirc, It deffinitly is still the case, MS bought out Hotmail which
always ran on a bunch of FreeBSD servers, at one point tried switching 
it over to IIS/Win2k, and it couldn't keep up, so went back to FreeBSD.

There is also good rumour about that MS have fully ported .NET to
FreeBSD
so that they can use the .NET framework for coding, and FreeBSD to
continue
running Hotmail.

Of course, this could all be just rumour... but it's interesting to
ponder. :-)

-Andrew

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



RE: [PHP] email certain people

2003-10-09 Thread Andrew Whyte


> -Original Message-
> From: Davy Campano [mailto:[EMAIL PROTECTED] 
> 
> I am making a webpage, and I want to be able to email certain 
> people that are selected by a checkbox when I click the 
> submit button.  I am trying to figure out what the best way 
> is to do this.  There are four people on the page and they 
> each start with their name checked (so they should receive an 
> email when I click submit).  How would I go writing a script 
> to check if these "checkboxes" are marked and then emailing 
> each person???  Thanks for any help!


Davy,

Something along the lines of:

Your form items would be:

 user1 @
email.com  
 user2 @
email.com 
 user3 @
email.com 

Then in PHP this get posted to, something like:

if ( is_array($_POST["EMAIL"]) )
{
// Loop through each...
foreach ($_POST["EMAIL"] as $key => $email_addr )
{
// send your email to each user...
}
}

This way you can simply add more email input fields to the form over
time
and the code will always work with it...

I'll leave the email sending as an exercise for the reader, there are
ample
good examples on php.net's doco about this.

Cheers, Andrew

--
Andrew WhytePh: +61 7 4930 9838
Corporate Systems Administrator Fx: +61 7 4930 9254
Information Technology Division Em: [EMAIL PROTECTED]
Central Queensland University, Rockhampton, Qld, 4702 

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



RE: [PHP] Maybe a silly question

2003-10-09 Thread Andrew Whyte


It's commonly seen in OOP (Object Oriented Programming)
and allows you access to an objects data by name of the
entity within the structure.

I find it really useful for mysql/php work.

 $result = mysql_query("SELECT * From Personal_Details WHERE
USER_ID='12345'") ;
 $data = mysql_fetch_object($result) ;

 print "My name: " . $data->full_name . " and email are : " .
$data->email_addr . "" ;

And full_name and email_addr are field names in the
database table... so you don't need to worry about $data[0] being the
field
you expect it to be should you go an change the table layout with ALTER
TABLE.

Cheers, Andrew


> -Original Message-
> From: Tom Ray [Lists] [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 10 October 2003 3:57 PM
> To: [EMAIL PROTECTED]
> 
> I'm wondering if someone can explain something for me. I've 
> never used this before but have seen it used in numerous sets 
> of coding.
> 
> What does the -> do? I see stuff like
> 
> $test=$test->test_url = "Something";
> $test1=$test->test_this = "Something Else";
> 
> Is it some sort of array function? I'm just a little confused 
> and have been wondering for sometime.
> 
> TIA
> 
> --
> 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