How to use Symfony with existing database

I recently had to start a Symfony2 project using an existing database. Here is a rough guide on how it is done. Firstly you have to update your app/config/parameter.ini to your existing database: [code lang=”bash”][parameters] database_driver=”pdo_mysql” database_host=”127.0.0.1″ database_port=”” database_name=”gladlycode” database_user=”root” database_password=”root” mailer_transport=”smtp” mailer_host=”localhost” mailer_user=”” mailer_password=”” locale=”en” secret=”0bdc03a00514e9c1595219d165115d532″ [/code] My bundle is named GladlyCodeBundle, you will … Continue reading “How to use Symfony with existing database”

How to let PHP send emails

PHP not sending emails? You need a mail transfer agent (MTA). If you’re in the Ubuntu platform, you can use postfix for this: [code lang=”bash”]sudo apt-get install postfix[/code] You can read on more information here. Previously my Contact Form 7 WordPress plugin didn’t work, it works fine after I install and configured postfix. I can’t … Continue reading “How to let PHP send emails”

How to use sendmail in XAMPP for Windows using AOL Mail

The easiest way to start developing in PHP is to get XAMPP, the whole package can even be placed in a flash drive. Using the free AOL Mail account also allows you to sign in to the SMTP server without TLS which allows XAMPP sendmail to work. 0. Objective To get your PHP scripts to … Continue reading “How to use sendmail in XAMPP for Windows using AOL Mail”

How to use sendmail in XAMPP for Windows

The easiest way to start developing in PHP is to get XAMPP, the whole package can even be placed in a flash drive. 0. Objective To get your PHP scripts to send an email out. This guide assumes you have XAMPP or XAMPP Lite. My environment is Windows Vista. (I use XAMPP Lite by the … Continue reading “How to use sendmail in XAMPP for Windows”