[PHP] Webmail with Attach

2002-01-08 Thread Luz Lopez

Hi All,

I am making a webmail, this webmail can send with just one attach, but I 
need that that my webmail can send mail with many attach.

Now my function have the follwing code line:

if ($attach != none)
{
$file = fopen($attach, r);
$contents = fread($file, $attach_size);
$encoded_attach = chunk_split(base64_encode($contents));
fclose($file);

//$encoded_attach = base64_encode($attach);\
//$encoded_attach = $attach;

$mailheaders .= MIME-version: 1.0\n;
$mailheaders .= Content-type: multipart/mixed; ;
$mailheaders .= boundary=\Message-Boundary\\n;
$mailheaders .= Content-transfer-encoding: 7BIT\n;
$mailheaders .= X-attachments: $attach_name;

$body_top = --Message-Boundary\n;
$body_top .= Content-type: text/plain; charset=US-ASCII\n;
$body_top .= Content-transfer-encoding: 7BIT\n;
$body_top .= Content-description: Mail message body\n\n;

$msg_body = $body_top . $msg_body;

$msg_body .= \n\n--Message-Boundary\n;
$msg_body .= Content-type: $attach_type; 
name=\$attach_name\\n;
$msg_body .= Content-Transfer-Encoding: BASE64\n;
$msg_body .= Content-disposition: attachment; 
filename=\$attach_name\\n\n;
$msg_body .= $encoded_attach\n;
$msg_body .= --Message-Boundary--\n;
}


How can I do it?

Some body can help me?

Thanks in Advanced,

Regards,

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
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] Webmail with attach

2002-01-05 Thread Luz Lopez

Hi all,

I am making a small webmail, But I need that this webmail have attach, I can 
to put one attach athis mail, but I need many attach in the webmail, I made 
a bucle for many attach, but now I can't to manipulate this attach for that 
the user send mail with many attach.

Some body can help me?

Thanks in advanced,

Regards



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
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] print on printer

2002-01-05 Thread Luz Lopez

Hi All

I have a php that access to database and show the values in the browser, But 
I need add hte option of print on printer, but that only print the table 
with values.

Somebody can help me?

Thanks in Advanced,

Regards,



_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
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] Webmail with Attach

2002-01-05 Thread Luz Lopez

Hi All,

I am making a webmail, this webmail can send with just one attach, but I 
need that that my webmail can send mail with many attach.

Now my function have the follwing code line:

if ($attach != none)
{
$file = fopen($attach, r);
$contents = fread($file, $attach_size);
$encoded_attach = chunk_split(base64_encode($contents));
fclose($file);

//$encoded_attach = base64_encode($attach);\
//$encoded_attach = $attach;

$mailheaders .= MIME-version: 1.0\n;
$mailheaders .= Content-type: multipart/mixed; ;
$mailheaders .= boundary=\Message-Boundary\\n;
$mailheaders .= Content-transfer-encoding: 7BIT\n;
$mailheaders .= X-attachments: $attach_name;

$body_top = --Message-Boundary\n;
$body_top .= Content-type: text/plain; charset=US-ASCII\n;
$body_top .= Content-transfer-encoding: 7BIT\n;
$body_top .= Content-description: Mail message body\n\n;

$msg_body = $body_top . $msg_body;

$msg_body .= \n\n--Message-Boundary\n;
$msg_body .= Content-type: $attach_type; 
name=\$attach_name\\n;
$msg_body .= Content-Transfer-Encoding: BASE64\n;
$msg_body .= Content-disposition: attachment; 
filename=\$attach_name\\n\n;
$msg_body .= $encoded_attach\n;
$msg_body .= --Message-Boundary--\n;
}


How can I do it?

Some body can help me?

Thanks in Advanced,

Regards,

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-- 
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] Crating program for access parallel

2001-10-31 Thread Luz Lopez

Hi all

I am creating a program PHP that will be access int the web for many 
persons, this aplication will be permit to insert registry on a data base 
Postgresql, When a person this inserting a registry I need to block that 
table so that another user cannot to access the data base. Exists some form 
in php to do this?

I want to Know how can I save  information on a Data Bse that will
be access
for many persons at the same time.

Thanks in advanced for yuor advices !!!

Regards,

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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] print on printer

2001-10-31 Thread Luz Lopez

Hi All

I have a php that access to database and show the values in the browser, But 
I need add hte option of print on printer, but that only print the table 
with values.

Somebody can help me?

Thanks in Advanced,

Regards,



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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] show png in the browser

2001-10-30 Thread Luz Lopez

Hi All

I configured the php with thelibrary GD, zlib, jpeg and libpng, I hae a 
program that generate a image, I can to save this png image but in my 
borwser I can't to see this image, the browser send me to save to my hard 
disk this image.

I need to show this image in the browser, How can I do it?

Thanks in Advanced,

Regards,

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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]




Re: [PHP] show png in the browser

2001-10-30 Thread Luz Lopez

Hi David, of course, I send of header: header(Content-type: image/png);
But the send me to save the file

Thanks,

Regards,



From: David Robley [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Luz Lopez [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] show png in the browser
Date: Wed, 31 Oct 2001 11:28:02 +1030

On Wed, 31 Oct 2001 11:08, Luz Lopez wrote:
  Hi All
 
  I configured the php with thelibrary GD, zlib, jpeg and libpng, I hae a
  program that generate a image, I can to save this png image but in my
  borwser I can't to see this image, the browser send me to save to my
  hard disk this image.
 
  I need to show this image in the browser, How can I do it?
 
  Thanks in Advanced,
 
  Regards,

You may need to send a header including the correct mime type.

--
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA

Help endangered species - adopt a KGB operative.


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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]




Re: [PHP] show png in the browser

2001-10-30 Thread Luz Lopez

Hi,

I use Internet Explorer 5.003 Windows 2000 Profesional

Regards,


From: Jim Lucas [EMAIL PROTECTED]
To: Luz Lopez [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] show png in the browser
Date: Tue, 30 Oct 2001 18:00:09 -0800

what type of browser are you using to view this image?

jim
- Original Message -
From: Luz Lopez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 31, 2001 1:56 AM
Subject: Re: [PHP] show png in the browser


  Hi David, of course, I send of header: header(Content-type: 
image/png);
  But the send me to save the file
 
  Thanks,
 
  Regards,
 
 
 
  From: David Robley [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: Luz Lopez [EMAIL PROTECTED], [EMAIL PROTECTED]
  Subject: Re: [PHP] show png in the browser
  Date: Wed, 31 Oct 2001 11:28:02 +1030
  
  On Wed, 31 Oct 2001 11:08, Luz Lopez wrote:
Hi All
   
I configured the php with thelibrary GD, zlib, jpeg and libpng, I 
hae
a
program that generate a image, I can to save this png image but in 
my
borwser I can't to see this image, the browser send me to save to my
hard disk this image.
   
I need to show this image in the browser, How can I do it?
   
Thanks in Advanced,
   
Regards,
  
  You may need to send a header including the correct mime type.
  
  --
  David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
  CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA
  
  Help endangered species - adopt a KGB operative.
 
 
  _
  Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp
 
 
  --
  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]
 
 



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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] Create images jpeg

2001-10-28 Thread Luz Lopez

Hi All

I have installed package GD, I am creating images with imagejpeg, but when I 
load the browser a messager error appear:

ImageJpeg: No JPG support in this PHP build in

I read the GD readme and say:
 gd 1.8.3 creates PNG, JPEG and WBMP images, not
 GIF images. This is a good thing. PNG is a more compact format, and
 full compression is available. JPEG works well with photographic
 images, and is still more compatible with the major Web browsers
 than even PNG is.

I need to give format jpeg because is more work with more version of 
browser.

How can I do it?

Thanks in Advanced,

Regards,


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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]