php-install Digest 12 May 2001 07:13:32 -0000 Issue 304 Topics (messages 3125 through 3127): Re: Errors on PHP mailforms on an Apache webserver. 3125 by: William Jay Re: Unknown vars and constants 3126 by: Ian Pawson mscomctl.ocx error 3127 by: Bryan Leifert Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Change SMTP = unlockgroup.com TO: SMTP = 192.168.1.3 (ip address of smtp server OR TO SMTP = smtp.unlockgroup.com (smtp server using name resolution) ""Admin"" <[EMAIL PROTECTED]> wrote in message news:005901c051d0$2507f5e0$0200a8c0@santa... Hello everyone, I hope this is the right mailinglist for me. I have a problem running php mailforms from an Apache server. Let me explain. I have the latest Apache webserver running with PHP4.02. You can see the specifications of the server here: Http://www.unlockgroup.com/test/index.php As you can see the php is working (thank god finally). But I have a problem. I made a form wich they can send to me. When they push the send button it goes to this form: http://www.unlockgroup.com/mailform.php , but as you can see there is an error on it. The strange part is that this php mailform works on another server where php seems to be right installed. No error at all and the mail comes at the place where it belongs. I give you the source of the mailform.php: <?php $main_url="http://www.unlockgroup.com"; /*verklaar variabelen die worden gebruikt voor het aanmaken van een nieuwe e-mail adres*/ $msg = "Sign up formulier\n"; $msg .= "\n"; $msg .= "Aanmelding voor volledige newsarchive.\n"; $msg .= "\n"; $msg .= "naam: $naam\n"; $msg .= "bedrijfs naam: $bedr_naam\n"; $msg .= "K.v.K. nummer: $kvk\n"; $msg .= "Telefoonnummer: $telefoon\n"; $msg .= "e-mail adres: $email\n"; $msg .= "\n"; $msg .= "Aangemeld door: $member\n"; $msg .= "\n"; $msg .= "Beheerde websites:\n"; $msg .= "\n"; $msg .= "$url1\n"; $msg .= "$url2\n"; $msg .= "$url3\n"; $msg .= "$url4\n"; $msg .= "$url5\n"; $msg .= "\n"; $msg .= "Leeftijd: $leeftijd\n"; $msg .= "Bank/giro nummer: $bank_giro\n"; $msg .= "Plaats: $plaats\n"; $msg .= "\n"; $msg .= "Comentaar:\n"; $msg .= "\n"; $msg .= "\n"; $ontvanger = "[EMAIL PROTECTED]"; $subject = "aanmelding newsarchive"; $mailheaders = "From: email <> \n"; $mailheaders .= "Reply-To: email \n\n"; /* versturen van de e-mails*/ /* Verstuur een e-mail naar [EMAIL PROTECTED] */ mail("$ontvanger","$subject","$msg","$mailheaders"); <=====THE CORRUPTED LINE!! /*print bevestiging.html*/ <END SOURCE> So, I thought this error is coming from a corrupted line in the php.ini. The SMTP configuration perhaps. So here I give you a part of the source of the php.ini: [mail function] SMTP = unlockgroup.com ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only ;sendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t) I have running a mailserver on that server wich the primary domain is "unlockgroup.com". So, it seems to be logical to pleace "unlockgroup.com" as the SMTP. But it doesn't work (grrr). The webserver is Mdaemon Mailserver. What could be wrong? Is PHP sending his own SMTP? I have only one question about this... Please, could somebody help me with this problem? I'm really getting tired of it. My whole weekend is lost, and i have to finish it at least monday evening. I have read all the manuals i could find on the internet about Apache and PHP, but every time i come back at the part that i have to setup the SMTP. And for me it looks good. Thanks for any help you can give me about it. Goodday, Alex
Well I now feel a bit stupid!! It dawned on me that these were warning messages and NOT errors. I checked in the ini file and found that the default setting is to show ALL errors and warnings. Re setting this to just critical errors cured the problem and everything is now working properly. Thank you for your advice. -- Ian Pawson ""Johannes Janson"" <[EMAIL PROTECTED]> wrote in message 9dgoeq$goq$[EMAIL PROTECTED]">news:9dgoeq$goq$[EMAIL PROTECTED]... > Hi, > > > session_register("EasyUSER"); $EasyUSER=$login[username]; > > session_register("EasyPASS");$EasyPASS=$login[password]; > > session_register("EasySERVER");$EasySERVER=$login[db_server]; > > session_register("EasyDB");$EasyDB=$login[db_name]; > > I assume these are the lines which caused the error (counted just roughly). > Assign the value to the vars first then register the session. > This is a question of taste but isn't it eayier to register just one session > and put all the values into this session. > > session_register("SESSION"); > $SESSION["EasyUSER"]=$login["username"]; > .... > > hope it helps (and works... ;-)) > > johannes > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
when i try to install php on windows 2000 server i'm getting an error from IIS saying that it can't find the file. everything else is working on the server.. any ideas? bryan