php-general Digest 22 Jul 2001 11:01:26 -0000 Issue 770

Topics (messages 59034 through 59052):

Image color quality problems
        59034 by: Kurt Lieber
        59035 by: Seb Frost
        59037 by: Kurt Lieber
        59038 by: Seb Frost
        59039 by: Kurt Lieber

PHP, Excel, CSV and Problems!
        59036 by: Jeff Lacy

netBIOS, Windows, Sockets, fsockopen help
        59040 by: ReDucTor
        59041 by: Chris Schneck
        59043 by: Chris Schneck
        59044 by: ReDucTor

Re: PHP based statistics/Graphs
        59042 by: Joe Conway
        59045 by: eschmid+sic.s.netic.de

$this->db->Record["WLPcountry.name"]
        59046 by: Mike Gifford
        59047 by: Philip Murray

Re: PEAR Integrated Template Class
        59048 by: Justin Farnsworth

33   Need A Vacation? Let Us Take You On One for FREE...
        59049 by: travelincentives.hotmail.com
        59050 by: Matthew Loff

Sending PDF-Doc as mail
        59051 by: Martin

IMAP Administration API?
        59052 by: Christopher Cheng

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]


----------------------------------------------------------------------


I have the following code that takes an existing image, creates a new
one from it and writes some white text on top of that image:

<?php
header("Content-type: image/png");

$startingImage = "leftphoto_01.png";

$image = imageCreateFromPNG($startingImage);

//$white = imageColorAt($image, 30, 215);

$white = imageColorAllocate($image, 255, 255, 255);

imageTTFText($image, 24, 0, 10, 25, $white, "arialbd.ttf", "This is a
test");

imagePNG($image);

imagedestroy($image);
?>

Problem is, the "white" text isn't white -- it's a dingy gray color.
>From reading around, I thought maybe if I took an existing white pixel
in the image and used that to set white, that might help (hence the
commented out //$white = imageColorAt... line in my code above)  That
didn't help either.  (and the pixel I sampled is exactly the shade of
white I want)

I am almost completely unfamiliar with color pallettes and how to
manipulate them.  Can someone shed some light on how I can get some
clean, bright white text on my image?

Thanks.

--kurt





Not an answer I'm afraid but does PHP has the ability to do this with JPEGs?
Would be VERY useful to me if it does!

- seb

-----Original Message-----
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: 21 July 2001 23:27
To: [EMAIL PROTECTED]
Subject: [PHP] Image color quality problems


I have the following code that takes an existing image, creates a new
one from it and writes some white text on top of that image:

<?php
header("Content-type: image/png");

$startingImage = "leftphoto_01.png";

$image = imageCreateFromPNG($startingImage);

//$white = imageColorAt($image, 30, 215);

$white = imageColorAllocate($image, 255, 255, 255);

imageTTFText($image, 24, 0, 10, 25, $white, "arialbd.ttf", "This is a
test");

imagePNG($image);

imagedestroy($image);
?>

Problem is, the "white" text isn't white -- it's a dingy gray color.
>From reading around, I thought maybe if I took an existing white pixel
in the image and used that to set white, that might help (hence the
commented out //$white = imageColorAt... line in my code above)  That
didn't help either.  (and the pixel I sampled is exactly the shade of
white I want)

I am almost completely unfamiliar with color pallettes and how to
manipulate them.  Can someone shed some light on how I can get some
clean, bright white text on my image?

Thanks.

--kurt


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]






Yes, it does, through the use of the GD and freetype libraries. (the
freetype library is required for the imageTTFText function I used below)

www.php.net/imagecreatefromjpeg

> -----Original Message-----
> From: Seb Frost [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, July 21, 2001 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Image color quality problems
> 
> 
> Not an answer I'm afraid but does PHP has the ability to do 
> this with JPEGs? Would be VERY useful to me if it does!
> 
> - seb
> 
> -----Original Message-----
> From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
> Sent: 21 July 2001 23:27
> To: [EMAIL PROTECTED]
> Subject: [PHP] Image color quality problems
> 
> 
> I have the following code that takes an existing image, 
> creates a new one from it and writes some white text on top 
> of that image:
> 
> <?php
> header("Content-type: image/png");
> 
> $startingImage = "leftphoto_01.png";
> 
> $image = imageCreateFromPNG($startingImage);
> 
> //$white = imageColorAt($image, 30, 215);
> 
> $white = imageColorAllocate($image, 255, 255, 255);
> 
> imageTTFText($image, 24, 0, 10, 25, $white, "arialbd.ttf", 
> "This is a test");
> 
> imagePNG($image);
> 
> imagedestroy($image);
> ?>
> 
> Problem is, the "white" text isn't white -- it's a dingy gray 
> color. From reading around, I thought maybe if I took an 
> existing white pixel in the image and used that to set white, 
> that might help (hence the commented out //$white = 
> imageColorAt... line in my code above)  That didn't help 
> either.  (and the pixel I sampled is exactly the shade of 
> white I want)
> 
> I am almost completely unfamiliar with color pallettes and 
> how to manipulate them.  Can someone shed some light on how I 
> can get some clean, bright white text on my image?
> 
> Thanks.
> 
> --kurt
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] To contact the list 
> administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] To contact the list 
> administrators, e-mail: [EMAIL PROTECTED]
> 
> 





Thanks Kurt.  Unfortunately my server only has gd 1.6.2 (gd 1.8.3 required
aparantly) and I can't change that.  Never mind.

- seb

-----Original Message-----
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: 22 July 2001 00:26
To: 'Seb Frost'; [EMAIL PROTECTED]
Subject: RE: [PHP] Image color quality problems


Yes, it does, through the use of the GD and freetype libraries. (the
freetype library is required for the imageTTFText function I used below)

www.php.net/imagecreatefromjpeg

> -----Original Message-----
> From: Seb Frost [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 21, 2001 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Image color quality problems
>
>
> Not an answer I'm afraid but does PHP has the ability to do
> this with JPEGs? Would be VERY useful to me if it does!
>
> - seb
>
> -----Original Message-----
> From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
> Sent: 21 July 2001 23:27
> To: [EMAIL PROTECTED]
> Subject: [PHP] Image color quality problems
>
>
> I have the following code that takes an existing image,
> creates a new one from it and writes some white text on top
> of that image:
>
> <?php
> header("Content-type: image/png");
>
> $startingImage = "leftphoto_01.png";
>
> $image = imageCreateFromPNG($startingImage);
>
> //$white = imageColorAt($image, 30, 215);
>
> $white = imageColorAllocate($image, 255, 255, 255);
>
> imageTTFText($image, 24, 0, 10, 25, $white, "arialbd.ttf",
> "This is a test");
>
> imagePNG($image);
>
> imagedestroy($image);
> ?>
>
> Problem is, the "white" text isn't white -- it's a dingy gray
> color. From reading around, I thought maybe if I took an
> existing white pixel in the image and used that to set white,
> that might help (hence the commented out //$white =
> imageColorAt... line in my code above)  That didn't help
> either.  (and the pixel I sampled is exactly the shade of
> white I want)
>
> I am almost completely unfamiliar with color pallettes and
> how to manipulate them.  Can someone shed some light on how I
> can get some clean, bright white text on my image?
>
> Thanks.
>
> --kurt
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED] To contact the list
> administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED] To contact the list
> administrators, e-mail: [EMAIL PROTECTED]
>
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





Check out the PHP dl() function:

http://www.php.net/dl

It lets you load an extension at run-time, so if you can compile the
newer version of GD, you may be able to download that directly.  Only
thing I'm not sure about is if you can override an already-loaded
extension by downloading a newer version of the same extension.  Maybe
if you simply named it something different -- gd-1.8.3.so, for example.

Can anyone confirm whether this would work or not?

> -----Original Message-----
> From: Seb Frost [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, July 21, 2001 4:30 PM
> To: Kurt Lieber; [EMAIL PROTECTED]
> Subject: RE: [PHP] Image color quality problems
> 
> 
> Thanks Kurt.  Unfortunately my server only has gd 1.6.2 (gd 
> 1.8.3 required
> aparantly) and I can't change that.  Never mind.
> 
> - seb
> 
> -----Original Message-----
> From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
> Sent: 22 July 2001 00:26
> To: 'Seb Frost'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Image color quality problems
> 
> 
> Yes, it does, through the use of the GD and freetype 
> libraries. (the freetype library is required for the 
> imageTTFText function I used below)
> 
> www.php.net/imagecreatefromjpeg
> 
> > -----Original Message-----
> > From: Seb Frost [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, July 21, 2001 3:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [PHP] Image color quality problems
> >
> >
> > Not an answer I'm afraid but does PHP has the ability to do 
> this with 
> > JPEGs? Would be VERY useful to me if it does!
> >
> > - seb
> >
> > -----Original Message-----
> > From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
> > Sent: 21 July 2001 23:27
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Image color quality problems
> >
> >
> > I have the following code that takes an existing image, 
> creates a new 
> > one from it and writes some white text on top of that image:
> >
> > <?php
> > header("Content-type: image/png");
> >
> > $startingImage = "leftphoto_01.png";
> >
> > $image = imageCreateFromPNG($startingImage);
> >
> > //$white = imageColorAt($image, 30, 215);
> >
> > $white = imageColorAllocate($image, 255, 255, 255);
> >
> > imageTTFText($image, 24, 0, 10, 25, $white, "arialbd.ttf", 
> "This is a 
> > test");
> >
> > imagePNG($image);
> >
> > imagedestroy($image);
> > ?>
> >
> > Problem is, the "white" text isn't white -- it's a dingy 
> gray color. 
> > From reading around, I thought maybe if I took an existing 
> white pixel 
> > in the image and used that to set white, that might help (hence the 
> > commented out //$white = imageColorAt... line in my code 
> above)  That 
> > didn't help either.  (and the pixel I sampled is exactly 
> the shade of
> > white I want)
> >
> > I am almost completely unfamiliar with color pallettes and how to 
> > manipulate them.  Can someone shed some light on how I can get some 
> > clean, bright white text on my image?
> >
> > Thanks.
> >
> > --kurt
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED] To 
> > contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED] To 
> > contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] To contact the list 
> administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] To contact the list 
> administrators, e-mail: [EMAIL PROTECTED]
> 
> 





Hello Everyone,

A client of mine is working with excel, and I need to move the data from
excel to something php can deal with a little better.  Naturally, I figured
using .csv would be easiest, but I am running into several problems.    I
can get around them, but I need a regular expression (and I am NOT good at
writing those).

I'm not quite sure how I should explain what the regular expression ought to
do, so I am giving an example of the data ought to look like in php (after
the regular expressions), and how it looks in the .csv.

NOTE: I am exploding the data, so all ,'s must be changed into COMMA's.

----------------------------------------------------------------------------
----------------
| php
| .csv                                                   |
----------------------------------------------------------------------------
----------------
heyaCOMMA there,hey is for horses                      "heya, there",hey is
for horses
"byeCOMMA bye",ciaoCOMMA ciao                  """bye, bye""", "ciao, ciao"
"good morning,I'm Bob Villa                                   """good
morning", I'm Bob Villa
sleep is good,IceCOMMA ThingyCOMMA          sleep is good,"Ice, Thingy,"


If those four examples aren't enough, please let me know.  I am NOT on the
php mailing list, so PLEASE send messages to me ([EMAIL PROTECTED] AND
to [EMAIL PROTECTED]).

Thank you very much (in advance),

Jeff





Hey,
  I am wondering if any one has any details on netBIOS, and stuff, so then i
can browse shared files and folders on another computer, with in php i have
tried looking up the commands sent, but haven't managed to find any...
      - James "ReDucTor" Mitchell





Try messing around with the popular linux package samba, in particual
smbmount. You may also need to read up on ports 137, 138, 139.

----- Original Message -----
From: "ReDucTor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 21, 2001 4:47 PM
Subject: [PHP] netBIOS, Windows, Sockets, fsockopen help


> Hey,
>   I am wondering if any one has any details on netBIOS, and stuff, so then
i
> can browse shared files and folders on another computer, with in php i
have
> tried looking up the commands sent, but haven't managed to find any...
>       - James "ReDucTor" Mitchell
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





Try messing around with the popular linux package samba, in particual
smbmount. You may also need to read up on ports 137, 138, 139.

----- Original Message -----
From: "ReDucTor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 21, 2001 4:47 PM
Subject: [PHP] netBIOS, Windows, Sockets, fsockopen help


> Hey,
>   I am wondering if any one has any details on netBIOS, and stuff, so then
i
> can browse shared files and folders on another computer, with in php i
have
> tried looking up the commands sent, but haven't managed to find any...
>       - James "ReDucTor" Mitchell
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





ya, i've just been looking at that, doesn't apear to have much detail...
the msdn doesn't have jack shit, other then it's functions...
----- Original Message -----
From: Chris Schneck <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 22, 2001 10:01 AM
Subject: Re: [PHP] netBIOS, Windows, Sockets, fsockopen help


> Try messing around with the popular linux package samba, in particual
> smbmount. You may also need to read up on ports 137, 138, 139.
>
> ----- Original Message -----
> From: "ReDucTor" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, July 21, 2001 4:47 PM
> Subject: [PHP] netBIOS, Windows, Sockets, fsockopen help
>
>
> > Hey,
> >   I am wondering if any one has any details on netBIOS, and stuff, so
then
> i
> > can browse shared files and folders on another computer, with in php i
> have
> > tried looking up the commands sent, but haven't managed to find any...
> >       - James "ReDucTor" Mitchell
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





> On Tue, Jul 17, 2001 at 10:48:24PM -0700, Rasmus Lerdorf wrote:
> > I like Vagrant.  See http://vagrant.sourceforge.net
> 
> I prefer R :) http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> 
> It is IMHO the best language for statistic.
> 
> -Egon

Do you know if anyone is working on a PHP extension for R?

-- Joe






On Sat, Jul 21, 2001 at 06:24:55PM -0700, Joe Conway wrote:
> > On Tue, Jul 17, 2001 at 10:48:24PM -0700, Rasmus Lerdorf wrote:
> > > I like Vagrant.  See http://vagrant.sourceforge.net
> > 
> > I prefer R :) http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> > 
> > It is IMHO the best language for statistic.

> Do you know if anyone is working on a PHP extension for R?

No, but some years ago there was a well known person, who have written
many statistical programs in PHP/FI. Can't remember his name, but I look
for his name at my library. He is now the chief editor of the Multivariate
Analysis Journal.

-Egon

-- 
All known books about PHP and related books: http://php.net/books.php 
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.de/




Hello,

I'm using phplib to add functionality to my bibliography app.  However I'm not 
sure how to deal with selected data from different tables with the same field name.

The example I provided in the signature was:
        $this->db->Record["WLPcountry.name"]

Which needs to be differentiated from:
        $this->db->Record["WLPpublisher.name"]

Ive added the table name (WLPpublisher & WLPcountry) as a prefix assuming that 
this will carry over.  Seems to wrok in some instances but not others.

Any suggestions would be useful...

The table is as follows:

SELECT
        WLPbib.bibID,
        WLPbib.title,
        WLPbib.publicationDate,
        WLPbib.URL,
        WLPpublisher.name,
        WLPaddress.city,
        WLPaddress.state,
        WLPaddress.countryID,
        WLPcountry.name,
        WLPprofile.firstName,
        WLPprofile.middleName,
        WLPprofile.lastName,
        WLPprofile.organization
FROM
        WLPbib
        LEFT JOIN WLPpublisher USING(publisherID),
        WLPaddress
        LEFT JOIN WLPcountry USING(countryID),
        WLPprofile
        LEFT JOIN WLPbib2profile USING(profileID)
WHERE
        WLPpublisher.addressID = WLPaddress.addressID AND
        WLPbib2profile.bibID = WLPbib.bibID

I'm making progress on this app.  Thanks to the assistance of a lot of good folks.

Mike
-- 
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
It is a miracle that curiosity survives formal education. - A Einstein





----- Original Message -----
From: "Mike Gifford" <[EMAIL PROTECTED]>

> Hello,
>
> I'm using phplib to add functionality to my bibliography app.  However I'm
not
> sure how to deal with selected data from different tables with the same
field name.
>
> The example I provided in the signature was:
> $this->db->Record["WLPcountry.name"]
>
 > Which needs to be differentiated from:
> $this->db->Record["WLPpublisher.name"]
>
> Any suggestions would be useful...
>

You can use the AS keyword to rename the fields to whatever you want, for
example:

 SELECT
 WLPbib.bibID,
 WLPbib.title,
 WLPbib.publicationDate,
 WLPbib.URL,
 WLPpublisher.name AS publisher_name,
 WLPaddress.city,
 WLPaddress.state,
 WLPaddress.countryID,
 WLPcountry.name AS country_name,
 WLPprofile.firstName,
 WLPprofile.middleName,
 WLPprofile.lastName,
 WLPprofile.organization
 FROM
 WLPbib


So then, you'd have:

$this->db->Record["country_name"]

and

$this->db->Record["publisher_name"]

Hope this helps!

Cheers
-------------------------------- -  -- -  -   -
Philip Murray - [EMAIL PROTECTED]
http://www.open2view.com - Open2View.com
------------- -  -- -   -





Dear Power Jessie (I just had to write that..):

This is a bit to the side of your question, but if you are
asking this question because you are trying to do what every web
developer is trying to do today, namely, reach that holy
grail of separating layout from content, you might look
at binarycloud, found at http://www.binarycloud.com/.

We looked at the dozen of YATS now a-building, nearly
rolled our own (like you must be doing?), but finally
settled on binarycloud for its other many elegant features.

In any case, you can see in binarycloud how you can
wrap up groups of PHP files within multiple layout templates and
then the final generated HTML in a "master" template
with the CSS et cetera.


_jef

---------------------

power jessie wrote:
> 
>         Hi!
> 
>         Anyone using this?
>         Can someone point me to a link on
>         how to use this class.
> 
>         Thanks in advance!
> 
>            ~{{}}~
>            jessie
>          .o0O()O0o.
> 
>  --
>  j e s s i e @ p o w e r - j e s s i e . n e t
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Justin Farnsworth
Eye Integrated Communications
321 South Evans - Suite 203
Greenville, NC 27858 | Tel: (252) 353-0722




You have been specially selected to qualify for the following:

Premium Vacation Package and Pentium PC Giveaway
To review the details of the please click on the link 
with the confirmation number below:

http://www.1chn.com/wintrip

                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
Confirmation Number#Lh340
Please confirm your entry within 24 hours of receipt of this confirmation.

Wishing you a fun filled vacation!
If you should have any additional questions or cann't connect to the site 
do not hesitate to contact me direct:
mailto:[EMAIL PROTECTED]?subject=Help!





Whew!  They're giving away a lot of vacations if we -all- qualify...

:)


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

Sent: Sunday, July 22, 2001 4:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] 33 Need A Vacation? Let Us Take You On One for FREE...


You have been specially selected to qualify for the following:

Premium Vacation Package and Pentium PC Giveaway
To review the details of the please click on the link 
with the confirmation number below:

http://www.1chn.com/wintrip

                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
Confirmation Number#Lh340
Please confirm your entry within 24 hours of receipt of this
confirmation.

Wishing you a fun filled vacation!
If you should have any additional questions or cann't connect to the
site 
do not hesitate to contact me direct:
mailto:[EMAIL PROTECTED]?subject=Help!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]





Hello!

I want to send a PDF-file as a mail. The problem: I want, that the user
get's the PDF-document as soon as he clicks on the mail. That means: No
text-part of the mail, the user should not have to click on the
attachment-button of his mail-client.

I tried:
1.) Set the header to something like:
 $header =  "From: <[EMAIL PROTECTED]>\n";
 $header .= "Content-Type: application/pdf\n";
 $header .= "Content-Transfer-Encoding: base64\n";
 $header .= "Content-Desciption: My PDF-Doc";

Works in: StarOffice
Doesn't work in Netscape and M$-Outlook

2.) Use a multipart-message:
Works in: StarOffice
Doesn't work in Netscape and M$-Outlook

Any idea, how this is done?

Martin









Is there any IMAP API or modules written in PHP?
I am looking for API to write a signup page for users.




Reply via email to