ALL :: ZONES :: PHP problem with webhost |
|||
| By: dewy |
Date: 26/01/2003 00:00:00 |
Points: 300 | Status: Answered Quality : Excellent |
|
Hi! I recently signed up at coolfreepages.com (with PHP support) and used Eordering Complete to design my simple, online shopping cart. However when I test my dummy shop at silvermoon.coolfreepages.com and try to submit my "order" I get the error "Fatal error: Call to undefined function: mail() in...." Does anyone know how to solve this? Is the problem related to my software or coolfreepages.com? |
|||
| By: Phetu | Date: 26/01/2003 06:00:00 | Type : Answer |
|
| Hi, Take a look at this page: <A HREF="http://coolfreepages.com/faq.html">http://coolfreepages.com/faq.html</a> You will see this secruty warning: Security Why I can not run functions mail() and phpinfo() For security reasons those functions and all sockets functions are disabled. Please do not use it in your PHP programs. That's why! Phetu |
|||
| By: VGR | Date: 27/01/2003 07:06:00 | Type : Assist |
|
| you have alternatives. You may emulate the mail() function so that the CLIENT's mail client is called in stead of the SERVER's (which is deactivated by the ISP, sadly). if ($globEmail==1) { // this is a global setting depending on the ISP ; for you it's clearly = 0 mail("$globFAdmin", "subject", "Admin message :\n\nsome body text\nLe robot de service.","From: contact@$SERVER_NAME\nReply-To: contact@$SERVER_NAME\nX-Mailer: PHP/" . phpversion()); // avec extra headers (à voir) } else { // on pallie echo "<FORM NAME=mailform ACTION=\"mailto:$globFAdmin?Subject=subject\" method=POST ENCTYPE=\"text/plain\">"; echo "<input type=hidden name=corps value=\"Admin message :\n\nyour body text\n\nLe robot de service.\">"; echo "</FORM>"; echo "<script>document.mailform.submit();</script>"; } // mél simple ou ersatz compliqué 8-)) You also have a possibility using my server, who offers free webmail(), callable from your PHP page ;-)) interested ? |
|||
| By: lexxwern | Date: 27/01/2003 07:58:00 | Type : Assist |
|
| <A HREF="http://members.lycos.co.uk/">http://members.lycos.co.uk/</a> is a free web host support PHP with mail() .. Good Luck! |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








