php-windows Digest 11 May 2005 04:31:14 -0000 Issue 2664

Topics (messages 25988 through 25992):

Setup mail server for use with mail()
        25988 by: ST Ooi

Re: Just a question, answer appreciated
        25989 by: S.F. Alim

Re: How to setup the mail server so that I can use mail () function
        25990 by: Wu, Jin Yong
        25991 by: Mike

Re: Print inside a variable
        25992 by: Maxwell Brodie

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hi,

I'm new to mail() function. What do I need to do on mail server so that I can use the mail() function.


Thanks

ST Ooi
--- End Message ---
--- Begin Message ---
Thank list, thanks a lot for your reply. I really appreciated.

Thanks everyone.

Salim

-----Original Message-----
From: Mike [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 08, 2005 7:42 PM
To: [email protected]
Subject: RE: [PHP-WIN] Just a question, answer appreciated

> Hi list,
>
> How do you increase to a counter without refreshing the whole
> page. For example if you check site www.gmail.com
> <http://www.gmail.com/>  under "Don't throw anything away."
> heading there is counter which is increasing (could be
> javascript magic) but other example is www.neopets.com
> <http://www.neopets.com/>  where time (seconds) is changing
> without refreshing the whole page ( it is php script )
>
> Any link or hint or code will be welcome ( even comments ) ;)
> Thanks in advance.
> salim
>

This is all done through JavaScript/DHTML/CSS.

When you look at the Gmail site, view source and search for "Don't". You'll
come to the line that has the growing MB amount.

<span id=quota>Over 2000</span> megabytes (and counting) <snip>

So then if you search for "quota" you'll see a number of references to it
and other JavaScript functions that modify it in real time.

I don't have any specific links to things, but there are tons of JavaScript
copy and paste type sites that give you code snippets to use.

I didn't see anything like that on Neopets, but it could simply not work in
Firefox (and I admit I only spent about 30 seconds looking for it).

But it's all JavaScript and such.

Basic rule, if the page isn't refreshing at all, then it's probably all done
on the client-side. If it's done on the client-side, then it's not PHP since
that's all server-side. E.g., since nothing is being submitted to PHP, PHP
is completely ignorant to the fact that this is going on.

Hope that helps.

-M

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

--- End Message ---
--- Begin Message ---
enable SMTP Server in IIS and have a try.  Otherwise you should install
another third-party software.

-----Original Message-----
From: ST Ooi [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 08, 2005 00:22 AM
To: [email protected]
Subject: [PHP-WIN] How to setup the mail server so that I can use mail()
function


Hi,

How can I setup my mail server so that I can use mail() function in PHP? 
I'm running WindowsXP Pro.

Thanks

ST Ooi

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

--- End Message ---
--- Begin Message ---
As a point of warning - be sure that you know what you're doing before you
simply enable an SMTP server that is externally routable. If you're not sure
how SMTP servers work then you could be creating an open relay that people
will quickly find and use to spam other people. 

When you turn on the IIS SMTP server it is initially enabled as an open
relay. Be sure you spend some time learning how to lock it down so that your
machine can't be used by spammers. And trust me, they'll probably find you
within a matter of hours if you do have an externally routable IP.

-M

> -----Original Message-----
> From: Wu, Jin Yong [mailto:[EMAIL PROTECTED] 
> Sent: Monday, May 09, 2005 1:56 AM
> To: [email protected]
> Subject: RE: [PHP-WIN] How to setup the mail server so that I 
> can use mail() function
> 
> 
> enable SMTP Server in IIS and have a try.  Otherwise you 
> should install another third-party software.
> 
> -----Original Message-----
> From: ST Ooi [mailto:[EMAIL PROTECTED]
> Sent: Sunday, May 08, 2005 00:22 AM
> To: [email protected]
> Subject: [PHP-WIN] How to setup the mail server so that I can 
> use mail() function
> 
> 
> Hi,
> 
> How can I setup my mail server so that I can use mail() 
> function in PHP? 
> I'm running WindowsXP Pro.
> 
> Thanks
> 
> ST Ooi

--- End Message ---
--- Begin Message ---
I'm Very sorry, but I did not understand the lot of that, however I just got 
out a book from the library that might explain it.
"Louis Solomon" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> try something more like this ... (very simplified to demonstrate)
>
> $myarray = array('fred','bob','jane');
> $msg = '';
> for ($i=0;$i<count($myarray);++$i)
>    $msg .= 'item '.(string)$i.' = '.$myarray[$i].'<br>';
> echo $msg;
>
> -- 
> Louis Solomon
> www.SteelBytes.com
>
> "Maxwell Brodie" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
>> Hello,
>>
>> I believe my problem is that I have to use the print funtion inside a 
>> variable, and I have no clue how to do that. For example, I need to get 
>> this:
>>
>> if (isset($rss_channel["ITEMS"])) {
>> if (count($rss_channel["ITEMS"]) > 0) {
>>  for($i = 0;$i < count($rss_channel["ITEMS"]);$i++) {
>>   if (isset($rss_channel["ITEMS"][$i]["LINK"])) {
>>   print ("\n<div class=\"itemtitle\"><a href=\"" . 
>> $rss_channel["ITEMS"][$i]["LINK"] . "\">" . 
>> $rss_channel["ITEMS"][$i]["TITLE"] . "</a></div>");
>>   } else {
>>   print ("\n<div class=\"itemtitle\">" . 
>> $rss_channel["ITEMS"][$i]["TITLE"] . "</div>");
>>   }
>>    print ("<div class=\"itemdescription\">" . 
>> $rss_channel["ITEMS"][$i]["DESCRIPTION"] . "</div><br />");   }
>> } else {
>>  print ("<b>There are no articles in this feed.</b>");
>> }
>> }
>>
>> Into variable "$message="
>>
>> Any help would be appriciated MUCH!
>>
>> Thank you! 

--- End Message ---

Reply via email to