Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

jamesjones21
jamesjones21
9,260 Points

PHP Database

Hi,

I'm wondering if we can connect to any databases in workspaces? Looking at learning PHP Data Objects (PDO).

any info would be grateful, thanks :)

1 Answer

Matthew Lang
Matthew Lang
13,483 Points

I don't think you can - or at least I've never tried to. Setting up your own PHP development environment is fairly simple. I'd suggest checking out XAMPP or WampServer, or MAMP if you're on a Mac.

These programs install Apache web server, PHP and MySQL right out the box for you to use easily.

Then follow this tutorial: https://phpdelusions.net/pdo

jamesjones21
jamesjones21
9,260 Points

yeah got an environment setup, think I'll have to not use workspaces. But thanks all the same :)