[PHP] Re: file creation question

2002-08-29 Thread MikeTsapenko
Hello, John. Just use such code: header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"$item[file_name]\""); header("Content-length: ".strlen($item[file_content])); echo $item[file_content] This should work... -- Mike Tsapenk

[PHP] Re: Attachements

2002-08-26 Thread MikeTsapenko
"Oliver Witt" <[EMAIL PROTECTED]> ???/ ? ?: news:[EMAIL PROTECTED]... > Hi, > Can you attach files to emails and send them through a php script? If > so, how? > Kind regards, > Oliver > You can use this function. It can attach just one file. $mode = message type: pla