php-general Digest 4 Nov 2008 01:15:11 -0000 Issue 5771

Topics (messages 282788 through 282827):

Re: Mailing lists
        282788 by: Dotan Cohen
        282793 by: Bill Guion
        282799 by: Robert Cummings
        282806 by: Daniel P. Brown
        282809 by: Dotan Cohen
        282810 by: Robert Cummings
        282824 by: tedd
        282826 by: Daniel P. Brown

Re: take me off the list
        282789 by: Jochem Maas
        282791 by: Govinda
        282794 by: Daniel P. Brown
        282801 by: Jim Lucas
        282802 by: Robert Cummings
        282803 by: Daniel P. Brown
        282804 by: Daniel P. Brown
        282823 by: Jay Moore
        282825 by: tedd

Problems with images..
        282790 by: Anders Norrbring
        282792 by: Boyd, Todd M.
        282795 by: Per Jessen
        282796 by: Anders Norrbring
        282797 by: Anders Norrbring
        282805 by: Boyd, Todd M.
        282821 by: Ashley Sheridan

Time zones and $_ENV vs getenv
        282798 by: John Coppens

proc_open and sockets
        282800 by: man_in_the_middle

Sending mail with Outlook high priority
        282807 by: Edward Diener
        282808 by: Per Jessen
        282811 by: Edward Diener
        282812 by: Edward Diener

Mail Function
        282813 by: Will W
        282814 by: Daniel P. Brown
        282815 by: Andrew Ballard

COM and VARIANT types
        282816 by: Alex Bovey
        282818 by: Andrew Ballard

OT? my own posts are invisible to me.  How to decloak?
        282817 by: Govinda
        282819 by: Andrew Ballard
        282820 by: Daniel Brown
        282822 by: Govinda

Grouping records
        282827 by: Matthew Halpin

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 ---
2008/11/3 Richard Heyes <[EMAIL PROTECTED]>:
>>> OMG Pwnies!
>>>
>> Fixed that for you.
>
> In my best Manuel voice (kinda topical)... Keh??
>

/. memes. You may be better off not knowing.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

ä-ö-ü-ß-Ä-Ö-Ü

--- End Message ---
--- Begin Message ---
At 11:00 AM -0400 11/1/08, tedd wrote:


snip

I used to have a theory that intelligence was inversely proportional to latitude. To prove my point, I would direct people to observe the Upper Peninsula of Michigan, where phrases like "Say ya to da UP, eh?" were common.

When confronted with an discerning opinion, I would add even more evidence by telling them to look further north where pronunciation of "about" and "a boot" merged -- and thus that would usually win my argument.

Now, that I am confronted with such a wide latitude (in both meanings) of diverse opinion, I must conclude that intelligence and ignorance are both amply distributed all over the globe irrespective of one's shortcomings in language skills -- thank God.

Cheers,

tedd


I don't know, tedd. I believe it was my college physics instructor who taught us that the two most abundant elements in the universe are hydrogen and stupidity.

     -----===== Bill =====-----
--

"Half this game is ninety percent mental."
  -Philadelphia Phillies manager Danny Ozark

--- End Message ---
--- Begin Message ---
On Mon, 2008-11-03 at 09:37 -0500, Bill Guion wrote:
> At 11:00 AM -0400 11/1/08, tedd wrote:
> 
> 
> snip
> 
> >I used to have a theory that intelligence was inversely proportional 
> >to latitude. To prove my point, I would direct people to observe the 
> >Upper Peninsula of Michigan, where phrases like "Say ya to da UP, 
> >eh?" were common.
> >
> >When confronted with an discerning opinion, I would add even more 
> >evidence by telling them to look further north where pronunciation 
> >of "about" and "a boot" merged -- and thus that would usually win my 
> >argument.
> >
> >Now, that I am confronted with such a wide latitude (in both 
> >meanings) of diverse opinion, I must conclude that intelligence and 
> >ignorance are both amply distributed all over the globe irrespective 
> >of one's shortcomings in language skills -- thank God.
> >
> >Cheers,
> >
> >tedd
> >
> 
> I don't know, tedd. I believe it was my college physics instructor 
> who taught us that the two most abundant elements in the universe are 
> hydrogen and stupidity.

Bah... everyone worth their salt knows the most abundant stuff in the
universe is dark matter. Some people just have too much dark matter in
place of gray matter.

Cheer,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
On Mon, Nov 3, 2008 at 11:03 AM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> Bah... everyone worth their salt knows the most abundant stuff in the
> universe is dark matter. Some people just have too much dark matter in
> place of gray matter.

    Dark matter, grey matter, fecal matter, it doesn't matter.

-- 
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!

--- End Message ---
--- Begin Message ---
2008/11/3 Daniel P. Brown <[EMAIL PROTECTED]>:
>    Dark matter, grey matter, fecal matter, it doesn't matter.
>

It's all mind over matter. I've got no mind, and it doesn't seem to matter.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

ä-ö-ü-ß-Ä-Ö-Ü

--- End Message ---
--- Begin Message ---
On Mon, 2008-11-03 at 19:24 +0200, Dotan Cohen wrote:
> 2008/11/3 Daniel P. Brown <[EMAIL PROTECTED]>:
> >    Dark matter, grey matter, fecal matter, it doesn't matter.
> >
> 
> It's all mind over matter. I've got no mind, and it doesn't seem to matter.

Hmmm... you sure it's not a case of you have no matter and you don't
really mind?

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
At 9:37 AM -0500 11/3/08, Bill Guion wrote:
I don't know, tedd. I believe it was my college physics instructor who taught us that the two most abundant elements in the universe are hydrogen and stupidity.


Good point.

The difference between stupidity and Genius is that one has its limits.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
On Mon, Nov 3, 2008 at 4:11 PM, tedd <[EMAIL PROTECTED]> wrote:
>
> The difference between stupidity and Genius is that one has its limits.

    Which is why it's always best to remember one thing, especially in
programming: never underestimate the power of stupidity.

-- 
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!

--- End Message ---
--- Begin Message ---
Stut schreef:
> On 3 Nov 2008, at 00:52, Dennison, Deborah wrote:

...

>  Sort out who you are
> and the world might start to make sense.

that deserve's it's own T-shirt :)

> -Stut
> 


--- End Message ---
--- Begin Message ---
On Nov 3, 2008, at 6:37 AM, Jochem Maas wrote:

Sort out who you are
and the world might start to make sense.

that deserve's it's own T-shirt :)

-Stut

LOL!
:-)
That knowledge has earned more than a T-shirt! It is Eternal; written in modern and ancient scripture since time immemorial.
--- End Message ---
--- Begin Message ---
On Mon, Nov 3, 2008 at 4:36 AM, Stut <[EMAIL PROTECTED]> wrote:
>
> You're having an identity crisis. Your email came from Deborah.Dennison@ but
> you state your email address as...
>
>> email: [EMAIL PROTECTED]

    I had noticed the same thing.  I unsubscribed her from the list
right after she wrote that first message, and haven't heard back
since.  So that was most likely the case.

-- 
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!

--- End Message ---
--- Begin Message ---
Daniel P. Brown wrote:
> On Mon, Nov 3, 2008 at 4:36 AM, Stut <[EMAIL PROTECTED]> wrote:
>> You're having an identity crisis. Your email came from Deborah.Dennison@ but
>> you state your email address as...
>>
>>> email: [EMAIL PROTECTED]
> 
>     I had noticed the same thing.  I unsubscribed her from the list
> right after she wrote that first message, and haven't heard back
> since.  So that was most likely the case.
> 

You keep doing things for people, they are never going to learn... :)

-- 
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--- End Message ---
--- Begin Message ---
On Mon, 2008-11-03 at 08:09 -0800, Jim Lucas wrote:
> Daniel P. Brown wrote:
> > On Mon, Nov 3, 2008 at 4:36 AM, Stut <[EMAIL PROTECTED]> wrote:
> >> You're having an identity crisis. Your email came from Deborah.Dennison@ 
> >> but
> >> you state your email address as...
> >>
> >>> email: [EMAIL PROTECTED]
> > 
> >     I had noticed the same thing.  I unsubscribed her from the list
> > right after she wrote that first message, and haven't heard back
> > since.  So that was most likely the case.
> > 
> 
> You keep doing things for people, they are never going to learn... :)

Give a man some fish, he'll be back later for more!

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
On Mon, Nov 3, 2008 at 11:09 AM, Jim Lucas <[EMAIL PROTECTED]> wrote:
>
> You keep doing things for people, they are never going to learn... :)

    True, but sometimes it's easier just to help someone along.  She
mentioned that she'd tried several times, so it doesn't hurt for me to
take a few seconds to click a link.

-- 
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!

--- End Message ---
--- Begin Message ---
On Mon, Nov 3, 2008 at 11:10 AM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> Give a man some fish, he'll be back later for more!

    Tell a man about your shortbread and he'll stay on your ass until
he gets the recipe, too.  Funny how it all works out, eh?

-- 
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!

--- End Message ---
--- Begin Message ---
Daniel P. Brown wrote:
On Mon, Nov 3, 2008 at 11:10 AM, Robert Cummings <[EMAIL PROTECTED]> wrote:
Give a man some fish, he'll be back later for more!

    Tell a man about your shortbread and he'll stay on your ass until
he gets the recipe, too.  Funny how it all works out, eh?


So, about that recipe...

--- End Message ---
--- Begin Message ---
At 11:10 AM -0500 11/3/08, Robert Cummings wrote:
Give a man some fish, he'll be back later for more!


Yeah, but teach him to fish and you'll have to listen to all his fish stories.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
I've been staring myself blind, so now I don't get anywhere, please do
advice..

I have a web page printed with PHP, in a table I need to display images that
are stored in a SQL DB.
Getting the images into variables isn't an issue at all, but how do I output
it?
This is what I want to accomplish:

<tr><td>Current image:</td><td> - THE IMAGE HERE - </td></tr>

Starting to pull my hair..
Anders.


--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Anders Norrbring [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 03, 2008 7:44 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Problems with images..
> 
> I've been staring myself blind, so now I don't get anywhere, please do
> advice..
> 
> I have a web page printed with PHP, in a table I need to display
images
> that
> are stored in a SQL DB.
> Getting the images into variables isn't an issue at all, but how do I
> output
> it?
> This is what I want to accomplish:
> 
> <tr><td>Current image:</td><td> - THE IMAGE HERE - </td></tr>
> 
> Starting to pull my hair..

<tr><td>Current image:</td><td><img src="<?= $variableName ?>"
/></td></tr>

If you don't have the proper INI setting to allow for the short-hand <?=
?>, you can replace it with:

<?php echo $variableName; ?>

If this made you pull your hair out, then perhaps you should go back and
get a fundamental understanding of HTML and PHP basics before trying to
combine the two. Just sayin'.

HTH,


Todd Boyd
Web Programmer

--- End Message ---
--- Begin Message ---
Anders Norrbring wrote:

> I've been staring myself blind, so now I don't get anywhere, please do
> advice..
> 
> I have a web page printed with PHP, in a table I need to display
> images that are stored in a SQL DB.
> Getting the images into variables isn't an issue at all, but how do I
> output it?
> This is what I want to accomplish:
> 
> <tr><td>Current image:</td><td> - THE IMAGE HERE - </td></tr>
> 
> Starting to pull my hair..
> Anders.

<img src="fetchimg?id=<nnnnn>"/>

fetchimg.php:

header('Content-Type: image/jpeg');
$img=<fetch from db>;
print $img;


/Per Jessen, Zürich


--- End Message ---
--- Begin Message ---
> > I've been staring myself blind, so now I don't get anywhere, please
> do
> > advice..
> >
> > I have a web page printed with PHP, in a table I need to display
> images
> > that
> > are stored in a SQL DB.
> > Getting the images into variables isn't an issue at all, but how do I
> > output
> > it?
> > This is what I want to accomplish:
> >
> > <tr><td>Current image:</td><td> - THE IMAGE HERE - </td></tr>
> >
> > Starting to pull my hair..
> 
> <tr><td>Current image:</td><td><img src="<?= $variableName ?>"
> /></td></tr>
> 
> If you don't have the proper INI setting to allow for the short-hand
> <?=
> ?>, you can replace it with:
> 
> <?php echo $variableName; ?>
> 
> If this made you pull your hair out, then perhaps you should go back
> and
> get a fundamental understanding of HTML and PHP basics before trying to
> combine the two. Just sayin'.


Thank you for your wonderful sarcasm Todd. But the solution you suggest just
won't work, and as a programmer, you should be just about knowledgeable
enough to know that.

However, I got a tip about something that WILL work, so I prefer to listen
to that person instead. She said;

<td>
<?php
        ob_start();
        echo $info['image'];
        $data = base64_encode(ob_get_contents());
        ob_end_clean();
        echo "<img src=\"data:image/jpeg;base64,$data\">";
?>
</td>


--- End Message ---
--- Begin Message ---
> Anders Norrbring wrote:
> 
> > I've been staring myself blind, so now I don't get anywhere, please
> do
> > advice..
> >
> > I have a web page printed with PHP, in a table I need to display
> > images that are stored in a SQL DB.
> > Getting the images into variables isn't an issue at all, but how do I
> > output it?
> > This is what I want to accomplish:
> >
> > <tr><td>Current image:</td><td> - THE IMAGE HERE - </td></tr>
> >
> > Starting to pull my hair..
> > Anders.
> 
> <img src="fetchimg?id=<nnnnn>"/>
> 
> fetchimg.php:
> 
> header('Content-Type: image/jpeg');
> $img=<fetch from db>;
> print $img;


True Per, but I would prefer one single file in this case..

Anders.


--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Anders Norrbring [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 03, 2008 8:56 AM
> To: Boyd, Todd M.
> Cc: [EMAIL PROTECTED]
> Subject: SV: [PHP] Problems with images..
> 
> > > I've been staring myself blind, so now I don't get anywhere,
please
> > do
> > > advice..
> > >
> > > I have a web page printed with PHP, in a table I need to display
> > images
> > > that
> > > are stored in a SQL DB.
> > > Getting the images into variables isn't an issue at all, but how
do
> I
> > > output
> > > it?
> > > This is what I want to accomplish:
> > >
> > > <tr><td>Current image:</td><td> - THE IMAGE HERE - </td></tr>
> > >
> > > Starting to pull my hair..
> >
> > <tr><td>Current image:</td><td><img src="<?= $variableName ?>"
> > /></td></tr>
> >
> > If you don't have the proper INI setting to allow for the short-hand
> > <?=
> > ?>, you can replace it with:
> >
> > <?php echo $variableName; ?>
> >
> > If this made you pull your hair out, then perhaps you should go back
> > and
> > get a fundamental understanding of HTML and PHP basics before trying
> to
> > combine the two. Just sayin'.
> 
> 
> Thank you for your wonderful sarcasm Todd. But the solution you
suggest
> just
> won't work, and as a programmer, you should be just about
knowledgeable
> enough to know that.
> 
> However, I got a tip about something that WILL work, so I prefer to
> listen
> to that person instead. She said;
> 
> <td>
> <?php
>       ob_start();
>       echo $info['image'];
>       $data = base64_encode(ob_get_contents());
>       ob_end_clean();
>       echo "<img src=\"data:image/jpeg;base64,$data\">";
> ?>
> </td>

I was, in fact, NOT being sarcastic. Perhaps if you had been more
specific about "images in variables" (it looks like you're using BLOBs,
I had guessed you were using filenames and storing the images on disk...
which is another argument altogether), my answer (or sarcasm, in your
eyes) would have been more direct to your question.

As for my solution not working--for BLOBs, no. Of course not. My analogy
of your question, however, is a bit like this:

Q: "How do I turn on this light switch?"
A: "You flip it to the 'on' position."
...
Q: "No, I mean how do I route power from the solar panels on my roof to
produce a current that will be affected by this lightswitch?"

I don't see the reason for Base64 encoding anything, but I'm glad (also
not sarcastic) that you got the answer to your question that you were
looking for.

I also hope that you learned to be more specific when you're requesting
assistance, and not throwing someone's suggestions back in their face
when they were just trying to lend you a hand with what they understood
your question to be.


Todd Boyd
Web Programmer

--- End Message ---
--- Begin Message ---
On Mon, 2008-11-03 at 15:56 +0100, Anders Norrbring wrote:
> > Anders Norrbring wrote:
> > 
> > > I've been staring myself blind, so now I don't get anywhere, please
> > do
> > > advice..
> > >
> > > I have a web page printed with PHP, in a table I need to display
> > > images that are stored in a SQL DB.
> > > Getting the images into variables isn't an issue at all, but how do I
> > > output it?
> > > This is what I want to accomplish:
> > >
> > > <tr><td>Current image:</td><td> - THE IMAGE HERE - </td></tr>
> > >
> > > Starting to pull my hair..
> > > Anders.
> > 
> > <img src="fetchimg?id=<nnnnn>"/>
> > 
> > fetchimg.php:
> > 
> > header('Content-Type: image/jpeg');
> > $img=<fetch from db>;
> > print $img;
> 
> 
> True Per, but I would prefer one single file in this case..
> 
> Anders.
> 
> 
You can have the image script as part of the same PHP file, by checking
to see if it is being called for an image rather than a normal page, but
it just makes things more convoluted. Also, the base64 method will not
work in IE. I had a similar problem at work that could only be solved by
using a separate script to output the image. It can't be streamed inline
in a consistent manner.


Ash
www.ashleysheridan.co.uk


--- End Message ---
--- Begin Message ---
Hello people.

Argentina changed timezones (Oct 19th), just two weeks ago, and, as PHP
has a separate table, I forgot to change the zones both in my machine and
on the server. I did so yesterday, and have some problems. Here's what I
did:

1) Downloaded the latest timezonedb (2008.9), compiled and installed it
locally and on the server. Apparently no problem there.

2) I have a calendar on my pages
(http://www.jcoppens.com/kayak/peperina/agenda.php&uniz=1) which shows
the unix time stamp if the cursor is above a date (just to help
debugging). The stamps coincide till Oct 19th, then differ by one hour
(as compared to my PC).

At the remote server, the time seems correct (-0200), on my machine it
isn't (-0300). I _did_ restart my apache, and yes, the php.ini is correct.

One strange thing I noticed (on both my machine and the server) is that
$_ENV['TZ'] was empty, while getenv('TZ') was correctly set
(America/Argentina/Cordoba).

I'm confused... Can someone point me to some more tests I could do?

Thanks,
John

--- End Message ---
--- Begin Message ---
I'm trying to build an interface in PHP to open prolog and feed it commands
and return answers without shutting it down. (I think you'd call this
running prolog as a daemon) The code below does two things. It opens prolog,
feeds in commands and pulls out the answers then closes the prolog. It then
opens a socket and listens for commands and prints out the command that was
sent until an 'END'  command is sent. However, if you try to do it in this
order... 

Open prolog
Open socket
while (command not 'END')
   Listen for commands
   Send command to prolog
   Return answers down socket
Close socket
Close prolog

It just hangs, won't open the socket unless prolog is closed. Does anyone
know loads about sockets and processes who have any ideas why that happens?
The below code works but not how I want it to.

<?php

set_time_limit (0);


$descriptorspec = array(
   0 => array("pipe", "r"),  
   1 => array("pipe", "w"),
   2 => array("pipe", "w") 
);

$cwd = null;
$env = array('options'=>'');

$process = proc_open('swipl', $descriptorspec, $pipes, $cwd, $env);

if (is_resource($process)) {

    fwrite($pipes[0], " ['/var/www/dev/tools/e2et'].");
    fflush($pipes[2]);
    fread($pipes[2],1024);
    fwrite($pipes[0], " skip(1).");
    fflush($pipes[2]);
    $data = fread($pipes[2],1024);

    fclose($pipes[0]);
    fclose($pipes[1]);
    fclose($pipes[2]);
    proc_close($process); 

echo $data . "<hr />";

$socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create
socket\n");
$result = socket_bind($socket, '127.0.0.1', 9993) or die("Could not bind to
socket\n");
$result = socket_listen($socket, 5) or die("Could not set up socket
listener\n");
$spawn = socket_accept($socket) or die("Could not accept incoming
connection\n");

do {
        $input = socket_read($spawn, 8, PHP_NORMAL_READ) or
die(socket_close($spawn));
        if (trim($input) == "END"){
                socket_close($spawn);
                break;
        }
        else {
                echo $input;
        }

} while (true);
socket_close($socket);

}
?>


I guess you're wondering why I'm bothering - it's just to avoid having to
recompile the prolog code that I want to run each time I want to query it
via a web server.
-- 
View this message in context: 
http://www.nabble.com/proc_open-and-sockets-tp20305352p20305352.html
Sent from the PHP - General mailing list archive at Nabble.com.


--- End Message ---
--- Begin Message --- Is there any PHP functionality for sending mail and attaching a high priority to the mail item ?

In Outlook ( and Outlook Express ) there is the notion of a high priority mail item, but I do not know if this corresponds to anything in an RFC for mail. Nor do I know how to mimic this in PHP. If anybody does or could point me to the right functionality, it would be appreciated. Currently I am using the mail() function that is standard in PHP.
--- End Message ---
--- Begin Message ---
Edward Diener wrote:

> Is there any PHP functionality for sending mail and attaching a high
> priority to the mail item ?

printf() ? 

All you need to do is a add header like "X-Priority: High".  It's just a
line of text.

> In Outlook ( and Outlook Express ) there is the notion of a high
> priority mail item, but I do not know if this corresponds to anything
> in an RFC for mail. 

Not too my knowledge.  It's a Microsoft "standard". 


/Per Jessen, Zürich


--- End Message ---
--- Begin Message ---
Per Jessen wrote:
Edward Diener wrote:

Is there any PHP functionality for sending mail and attaching a high
priority to the mail item ?

printf() ?
All you need to do is a add header like "X-Priority: High".  It's just a
line of text.

Thanks for pointing this header out. My search for "X-Priority" yields:

"X-Priority: 1"

or

"X-Priority: 1 (High)"

as the correct format(s).


In Outlook ( and Outlook Express ) there is the notion of a high
priority mail item, but I do not know if this corresponds to anything
in an RFC for mail.

Not too my knowledge. It's a Microsoft "standard".

Well the X-Priority may do.

--- End Message ---
--- Begin Message ---
Per Jessen wrote:
Edward Diener wrote:

Is there any PHP functionality for sending mail and attaching a high
priority to the mail item ?

printf() ?
All you need to do is a add header like "X-Priority: High".  It's just a
line of text.

Thanks for pointing this header out. My search for "X-Priority" yields:

"X-Priority: 1"

or

"X-Priority: 1 (High)"

as the correct format(s).


In Outlook ( and Outlook Express ) there is the notion of a high
priority mail item, but I do not know if this corresponds to anything
in an RFC for mail.

Not too my knowledge. It's a Microsoft "standard".

Well the X-Priority may do.

--- End Message ---
--- Begin Message ---
Hello all,I did a search and did not find anything I was looking for.

What is the limitation of the max emails that the mail function can send to?

Thanks,
Will

--- End Message ---
--- Begin Message ---
On Mon, Nov 3, 2008 at 12:56 PM, Will W <[EMAIL PROTECTED]> wrote:
>
> What is the limitation of the max emails that the mail function can send to?

    That's limited by three things:

        1.) Server resource availability (RAM, CPU, bandwidth).
        2.) Server configuration.
        3.) Your ISP (some, such as GoDaddy, have a cap each month).

-- 
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!

--- End Message ---
--- Begin Message ---
On Mon, Nov 3, 2008 at 1:19 PM, Daniel P. Brown
<[EMAIL PROTECTED]> wrote:
> On Mon, Nov 3, 2008 at 12:56 PM, Will W <[EMAIL PROTECTED]> wrote:
>>
>> What is the limitation of the max emails that the mail function can send to?
>
>    That's limited by three things:
>
>        1.) Server resource availability (RAM, CPU, bandwidth).
>        2.) Server configuration.
>        3.) Your ISP (some, such as GoDaddy, have a cap each month).

Most shared hosting plans I've tried have a limit per hour.

Andrew

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

I am playing around with some COM interfaces and getting my head
around VARIANTs.

I have a method that is returning a VARIANT and using variant_get_type
returns the type as 9.  How do I find out what type 9 relates to?  The
manual page for variant_get_type isn't much...

Thanks all,

Alex

--
Alex Bovey
Web Developer | Alex Bovey Consultancy Ltd
Registered in England & Wales no. 6471391 | VAT no. 934 8959 65
PHP | MySQL | AJAX | XHTML | CSS | Javascript | XML | W3C Accessibility

--- End Message ---
--- Begin Message ---
On Mon, Nov 3, 2008 at 1:33 PM, Alex Bovey <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am playing around with some COM interfaces and getting my head
> around VARIANTs.
>
> I have a method that is returning a VARIANT and using variant_get_type
> returns the type as 9.  How do I find out what type 9 relates to?  The
> manual page for variant_get_type isn't much...
>
> Thanks all,
>
> Alex
>

I think this may be what you are looking for, but I don't know how
much it helps:

http://www.marin.clara.net/COM/variant_type_definitions.htm

Andrew

--- End Message ---
--- Begin Message ---
Hi all

this may be a matter of settings on my own software, and so OT for this list, but I have sincerely looked more than once and still can't find it, so I ask?

Does anyone know why can't I ever see my own posts to this list (or another list I subscribe to)? I want to.

-Govinda

--- End Message ---
--- Begin Message ---
On Mon, Nov 3, 2008 at 1:33 PM, Govinda <[EMAIL PROTECTED]> wrote:
> Hi all
>
> this may be a matter of settings on my own software, and so OT for this
> list, but I have sincerely looked more than once and still can't find it, so
> I ask?
>
> Does anyone know why can't I ever see my own posts to this list (or another
> list I subscribe to)?  I want to.
>
> -Govinda

You're using Gmail. They won't be visible (in your Inbox) until
someone replies to them. They should be in your Sent Mail folder
though.

Andrew

--- End Message ---
--- Begin Message ---
On Mon, Nov 3, 2008 at 1:33 PM, Govinda <[EMAIL PROTECTED]> wrote:
> Hi all
>
> this may be a matter of settings on my own software, and so OT for this
> list, but I have sincerely looked more than once and still can't find it, so
> I ask?
>
> Does anyone know why can't I ever see my own posts to this list (or another
> list I subscribe to)?  I want to.

    That's a combination of the list software configuration and Gmail.
 With some lists, unless you set your subscription (where applicable)
to send you a copy, it won't.  And as for Gmail, it keeps your posts
hidden until a thread is created by receiving a reply from someone.

    You can, however, see your posts in the archives almost
instantaneously.  You can check the following links if you're ever
concerned that a message didn't get through to this list:

        http://news.php.net/
        http://marc.info/?l=php-general
        (GMANE link would go here if GMANE wasn't down right now.)

-- 
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!

--- End Message ---
--- Begin Message ---

   That's a combination of the list software configuration and Gmail.

Thanks a lot guys.

Looking forward to more interaction here in coming weeks as I gradually/hopefully shift more of my time into PHP from other software.
-G

--- End Message ---
--- Begin Message ---

Hi,

I have transactional records with the following structure

Rowid           Time            Person  Timediff                Groupid

1               20:22:49        Bob
2               20:22:49        Bob             0
3               20:22:50        Bob             1       
4               20:22:55        Bob             5
6               20:24:55        Bob             120
7               20:24:56        Bob             1
8               20:30:56        Kevin           360
9               20:30:57        Kevin           1
10              20:33:57        Kevin           180

(hope the formatting turns out)

What I would like to do is update the Groupid column with a number
starting at zero and increment where the timediff is greater than 60,
also starting from 0 again when the Person changes. Ending up with the
below.

Rowid           Time            Person  Timediff                Groupid

1               20:22:49        Bob
0
2               20:22:49        Bob             0
0
3               20:22:50        Bob             1
0
4               20:22:55        Bob             5
0
6               20:24:55        Bob             120
1
7               20:24:56        Bob             1
1
8               20:30:56        Kevin           360
0
9               20:30:57        Kevin           1
0
10              20:33:57        Kevin           180
1

Anyone got any ideas?
There will usually be more the 2 different people (number of people can
differ)
The number of groups can and will vary per person.

--- End Message ---

Reply via email to