Jump to content

Archived

This topic is now archived and is closed to further replies.

morpheuz

Email attachment using mail()

Recommended Posts

Maybe you guys can help me with this, I wrote up a backup database php snippet that I want to merge with a mailing script, but I'm having a hard time tracking down some good docs on what the mime stuff looks like without getting a class involved (I really don't like OOP, and since I'm still kinda new to programming in general, I can't appreciate its benefits). I don't need a mountain of help, just a peek at what the mime stuff is supposed to look like to attach the file.

A quick question, I've read a lot about how it's not a good idea storing backups in root on the server. What is "root"? My guess is that it's the public_html/www dir, but even so I want to be sure so I figured I'd ask.

Thanks.

Share this post


Link to post
Share on other sites
[a href=\"http://codewalkers.com/seecode/98.html\" target=\"_blank\"]http://codewalkers.com/seecode/98.html[/a]

try this ok.

Share this post


Link to post
Share on other sites
root is basically what windows users would call an 'administrator'. It's not a good idea to save backups as root as other users cannot access them because of the file permissions.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.