Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

jamesjones21
9,248 PointsPHP 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
13,471 PointsI 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
9,248 Pointsjamesjones21
9,248 Pointsyeah got an environment setup, think I'll have to not use workspaces. But thanks all the same :)