[PHP] Uploading and creating an email attachment, WITHOUT a DB on server

2012-03-27 Thread Christopher Svanefalk
Dear all,

I am rather green to PHP and web programming in general, and would just
like some pointers how to accomplish the following.

I have a webpage on a remote host, which supports PHP but does not have a
DB installed. Here, I have a form where the user can input personal
credentials, which are then processed and sent as an email message to me
from the server. This part work so far.

I want to do the following: the user should be able to upload his/her CV.
To do so, I need the following:
1) A way for the user to open a conventional file system view to select the
file to upload
2) A way to take this file, add it as an attachment to the mail created in
the form, and finally send the mail + attachment to my mail.

Is this possible to do without intermediary storage in a DB? I.e. is it
possible just to pass the attachment directly from working memory to the
function for sending email? Or does it have to go intermediare storage?

Thanks in advance for any help!

-- 
Best,

Christopher Svanefalk


[PHP] Re: Uploading and creating an email attachment, WITHOUT a DB on server

2012-03-27 Thread Christopher Svanefalk
Addendum: what standard functions could I invoke to accomplish the file
system view part?

On Tue, Mar 27, 2012 at 2:37 PM, Christopher Svanefalk <
christopher.svanef...@gmail.com> wrote:

> Dear all,
>
> I am rather green to PHP and web programming in general, and would just
> like some pointers how to accomplish the following.
>
> I have a webpage on a remote host, which supports PHP but does not have a
> DB installed. Here, I have a form where the user can input personal
> credentials, which are then processed and sent as an email message to me
> from the server. This part work so far.
>
> I want to do the following: the user should be able to upload his/her CV.
> To do so, I need the following:
> 1) A way for the user to open a conventional file system view to select
> the file to upload
> 2) A way to take this file, add it as an attachment to the mail created in
> the form, and finally send the mail + attachment to my mail.
>
> Is this possible to do without intermediary storage in a DB? I.e. is it
> possible just to pass the attachment directly from working memory to the
> function for sending email? Or does it have to go intermediare storage?
>
> Thanks in advance for any help!
>
> --
> Best,
>
> Christopher Svanefalk
>
>


-- 
Best,

Christopher Svanefalk