• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 414
  • Last Modified:

Where to download PHP ?

I am setting up a new server, just installed MySQL Database and now I need to intall PHP and PHP mail on that machine so that wordpress websites can send email and work fine.

Where can I download both ?  Some have multiple links so I need some guidance to make sure I do this right.
0
Aleks
Asked:
Aleks
  • 2
  • 2
1 Solution
 
MlandaTCommented:
Get PHP from the official website: http://php.net/downloads.php

It already comes with the Mail module (http://php.net/manual/en/book.mail.php).

If you are using IIS (or a Windows Server), just download the Microsoft Web Platform Installer and install PHP with it (http://www.microsoft.com/web/platform/phponwindows.aspx). It will configure your IIS to work with PHP as well.
0
 
AleksAuthor Commented:
I am using IIS ... would that also include the PHP mail ?
0
 
MlandaTCommented:
Yes. I would suggest that Web Platform Installer is the way to go.

And yes... to use PHP Mail... There is no installation needed to use these functions; they are part of the PHP core.

Use this PHP sample to test (from http://php.net/manual/en/book.mail.php):

<?php

$Name = "Da Duder"; //senders name
$email = "email@adress.com"; //senders e-mail adress
$recipient = "PersonWhoGetsIt@emailadress.com"; //recipient
$mail_body = "The text for the mail..."; //mail body
$subject = "Subject for reviever"; //subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields

mail($recipient, $subject, $mail_body, $header); //mail command :)
?>

Open in new window

0
 
AleksAuthor Commented:
Thank you !
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now