|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-02 13:45 UTC] mfischer@php.net
[2002-07-05 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 14:00:01 2025 UTC |
Hello, Here is the problem Make a file called pipo.php. Type this lines in it : <? if ($toto = mail("php@presedo.com", "That's a subject", "That's the body")) {echo "OK";}else{echo "Not OK";} ?> Then, I define some aliases on Apache config, so that all the request that are done on a directory are redirected on a script .. Like that <VirtualHost 127.0.0.1> ServerAdmin a_mail@xxx.com ServerName xxx.xxx.com DocumentRoot "d:/networks/site/" Alias /static/ d:/networks/site/pipo.php/ </VirtualHost> Now, if you call this url (http://xxx.xxx.com/static/) the request will be send to the pipo.php file...If you do that, you can see "OK" on the browser... And if you call directly the script (http://xxx.xxx.com/pipo.php), you do have the same message (OK)... BUT When you receive the mail, with the first methode (alias) you receive 9 times the same mail !!!! And with the second method, the mail is recieved only one time... Do you think this is a bug, or maybe a misconfiguration . Thanks Bob Geneva, CH