faq.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <html>
  2. <head>
  3. <title>phpmailer FAQ</title>
  4. </head>
  5. <body bgcolor="#FFFFFF">
  6. <h2>phpmailer FAQ</h2>
  7. <p>
  8. <b>I'm using the SMTP mailer and I keep on getting a timeout message
  9. well before the X seconds I set it for. What gives?</b>
  10. <br>
  11. PHP versions 4.0.4pl1 and earlier have a bug in which sockets timeout
  12. early. You can fix this by re-compiling PHP 4.0.4pl1 with this fix:
  13. <a href="timeoutfix.diff">timeoutfix.diff</a>. Otherwise you can wait
  14. for the new PHP release.
  15. </p>
  16. <p>
  17. <b>I am concerned that using include files will take up too much
  18. processing time on my computer. How can I make it run faster?</b>
  19. <br>
  20. PHP by itself is very fast. Much faster than ASP or JSP running on
  21. the same type of server. This is because it has very little overhead compared
  22. to its competitors and it pre-compiles all of
  23. its code before it runs each script (in PHP4). However, all of
  24. this compiling and re-compiling can take up a lot of valuable
  25. computer resources. However, there are programs out there that compile
  26. PHP code and store it in memory (or on mmaped files) to reduce the
  27. processing immensely. Two of these: <a href="http://apc.communityconnect.com">APC
  28. (Alternative PHP Cache)</a> and <a href="http://bwcache.bware.it/index.htm">Afterburner</a>
  29. (<a href="http://www.mm4.de/php4win/mod_php4_win32/">Win32 download</a>)
  30. are excellent free tools that do just this. If you have the money
  31. you might also try <a href="http://www.zend.com">Zend Cache</a>, it is
  32. even faster than the open source varieties. All of these tools make your
  33. scripts run faster while also reducing the load on your server. I have tried
  34. them myself and they are quite stable too.
  35. </p>
  36. <p>
  37. <b>What mailer gives me the best performance?</b>
  38. <br>
  39. On a single machine the mail() or sendmail mailers give you the best
  40. performance because they do not have the added overhead of SMTP.
  41. If you have you have your mail server on a another machine then
  42. SMTP is your only option, but you do get the benefit of redundant
  43. mail servers.
  44. </p>
  45. <p>
  46. <b>When I try to attach a file with on my server I get a
  47. "Could not find {file} on filesystem error". Why is this?</b>
  48. <br>
  49. If you are using a Unix machine this is probably because the user
  50. running your web server does not have read access to the directory
  51. in question. If you are using Windows, then the problem probably is
  52. that you have used single backslashes to denote directories ("\").
  53. A single backslash has a special meaning to PHP so these are not
  54. valid. Instead use double backslashes ("\\") or a single forward
  55. slash ("/").
  56. </p>
  57. </body>
  58. </html>