How to connect to MySQL in PHP on Mac OS X

Enabling PHP on Mac OS X is pretty straightforward (it’s preinstalled from OS X 10.5 onwards): Uncomment LoadModule php5_module in /etc/apache2/httpd.conf Start up Web Sharing in System Preferences However, even after doing that, my PHP-based website still couldn’t connect to it’s MySQL database. It just showed this error when I tried to load the site: […]

Posted at 3:23 pm on March 18, 2011 | 3 comments | Filed Under: How-to | Tagged: , , , | Continue reading

How to write a custom gatherer/texthandler for RCurl

The RCurl package for R allows you to download files from the internet – very useful if you want to make your analysis completely reproducible (yet you rely on files that have to be downloaded) or if the source data can change over time. Using the getURL() function you can download any file by it’s […]

Posted at 1:59 pm on February 8, 2011 | Leave a comment | Filed Under: How-to | Tagged: , | Continue reading


Follow

Get every new post delivered to your Inbox.