RE: [PHP-WIN] Mail/PHP/Apache

From: Date: Wed, 14 Mar 2001 11:49:48 +0000
Subject: RE: [PHP-WIN] Mail/PHP/Apache
Groups: php.windows 
Request: Send a blank email to php-windows+get-6013@lists.php.net to get a copy of this message
You need to use mod_php: uncomment the line on your httpd.conf that refers to LoadModule php4_module; on my setup is 'LoadModule php4_module modules/ApacheModulePHP4.dll' then add the following lines to your httpd.conf inside the <IfModule mod_mime.c> so as to register .php files with the module: <IfModule mod_php4.c> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> I think that you may have to copy php4dllts.dll to your apache/modules directory. After restarting apache, test that it's working with <? phpinfo() ?> If this fails, you'll have to check http://www.php4win.de/ or somewhere else for a more detailed explanation... HTH, Fernando Madruga -----Original Message----- From: Gaylen Fraley [mailto:gfraley5@earthlink.net] Sent: quarta-feira, 14 de Março de 2001 11:32 To: FMadruga@ascoimbra.pt Subject: Re: [PHP-WIN] Mail/PHP/Apache I have placed my answers beneath your questions. The answers to all are YES except the module vs. executable. How do I control that? In Apache the PHP file that is called is php.exe. -- Gaylen gfraley5@earthlink.net "Fernando Madruga" <FMadruga@ascoimbra.pt> wrote in message news:3685A91F554BD411BA310008C759B6CC02527B1D@MAIL_CBR... > > I'm also running Apache+PHP4+xtras on a Win98SE machine and have NO problems > sending mail; in fact, I use it on my 404.php error generator to send an > email to the webmaster (me!) whenever a broken link is requested and it > works absolutely fine! > Hints: > - Have you tried using the IP of your ISP's mail server? YES. > - Do you have a permanent link to it? YES. > - Can you use an email program on that machine (look for freeware, > no-install email programs on tucows) and send mail from it? YES > - Are you running php as an executable or as a module? I'm using it as a > module without any problems. HOW DO I KNOW? > - Did you check for multiple copies of PHP.INI? YES > - Is PHP.INI in your C:\Windows\ folder? YES > > Just a few thinks to check for... > > HTH, > Fernando Madruga > > > I am experiencing technical difficulties! I have Apache and PHP 4 > installed > > on a Windows 98SE machine. Everything is working perfectly except the > mail > > function. I have updated the ini file to use my ISP's mail SMTP server. > I > > have even tried installing an e-mail server on my machine, which works, > but > > I still get the following (not so helpful) error: > > > Warning: Unknown error in e:\apache\htdocs\main\send_simpleform.php on > line 10. > > > Here is line 10: > > mail("$to", "$subject", "$msg", "$mailheaders"); > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#6013) next »