Jump to content


Photo

Email attachment using mail()


  • Please log in to reply
2 replies to this topic

#1 morpheuz

morpheuz
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 17 June 2006 - 01:04 PM

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.

#2 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 June 2006 - 01:41 PM

[a href=\"http://codewalkers.com/seecode/98.html\" target=\"_blank\"]http://codewalkers.com/seecode/98.html[/a]

try this ok.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#3 Fyorl

Fyorl
  • Members
  • PipPipPip
  • Advanced Member
  • 273 posts
  • LocationUK

Posted 17 June 2006 - 11:28 PM

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.
[table]



Don't worry, the printer fairies will sort it out.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users