A simple web application to manage a small stock investment portfolio and keep a record of buy/sell operations.
This is my implementation of the problem set 7 in Harvard's CS50 (2010) when I was following the course back in 2011.
For the original files, check this link.
- HTTP server configured to run PHP 5
- MySQL database
Tested with EasyPHP DevServer with 5.6.30
Edit php.ini
on your web server and set short_open_tag = On
to allow PHP to handle short tags like:
<? example(); ?>
Restart server.
Connect to MySQL using command line, PHPMyAdmin or some other client and run script on database/schema.sql
to create tables.
Edit includes/constants.php
to set database options.
- The Yahoo service for getting quotes is no longer available
- Just to get the project running I implemented a fake service (
includes\helpers.php
, functionlookup
) - For a more "real" application, should replace with a real API