simple localhost php code example
Example 1: simple localhost php
1) cd ~/public_html
2) php -S localhost:8000
Example 2: php mail in localhost wamp
1) Edit C:\wamp\sendmail\sendmail.ini:
smtp_server=smtp.gmail.com
smtp_port=465
[email protected]
auth_password=your_password
2) Edit php.ini and set sendmail_path
sendmail_path = "C:\wamp\sendmail\sendmail.exe -t"