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 trialAlexandru Palita
14,261 PointsWhy on local environment new PDO("sqlite:" .... creates a file if it dosen't find one ?
Locally on Apache 2.4.43 and PHP 5.6.25 if i try to create an error mistyping
" $db = new PDO("sqlite:".DIR."/database.db"); "
with
$db = new PDO("sqlite:".DIR."/databaaasssseee.db");
it's creating a new file called "databaaasssseee.db" in the same folder ...
WHY?
Alexandru Palita
14,261 PointsThank you Dave.
Dave StSomeWhere
19,870 PointsDave StSomeWhere
19,870 PointsSome consider it a feature of sqlite3.
Here's a link to their FAQ if you want more info