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