https://github.com/dmuth/guestbook
A sample guestbook app I wrote in PHP for an interview. Part of the requirements involved NOT using any frameworks, so I created my own architecture from the ground up.
https://github.com/dmuth/guestbook
Last synced: about 1 year ago
JSON representation
A sample guestbook app I wrote in PHP for an interview. Part of the requirements involved NOT using any frameworks, so I created my own architecture from the ground up.
- Host: GitHub
- URL: https://github.com/dmuth/guestbook
- Owner: dmuth
- License: other
- Created: 2013-03-25T01:22:44.000Z (about 13 years ago)
- Default Branch: main
- Last Pushed: 2020-09-03T22:21:51.000Z (almost 6 years ago)
- Last Synced: 2024-05-02T06:07:33.358Z (about 2 years ago)
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Guestbook App
This is a sample guestbook app that I wrote in PHP, using a custom MVC
framework that I built just for this project.
It does the following:
- Prompts a user to enter their name
- Prompts a user to enter their interests in comma-delimited form
- Prompts a user to enter their message
Once a message is saved, viewing the guestbook will cause a connection
to be made to Flickr's API to fetch a picture for each interest entered.
## Installation
- Go into protected/sql/
- Update `user.sql` to have a different username or password if you wish
- Run the commands in `user.sql` as the database admin user
- `mysql -u admin_username -padmin_password < ./user.sql`
- Run the commands in `schema.sql` as the database user.
- `mysql -u guestbook_username -pguestbook_password < ./schema.sql`
- Go into protected/config/
- Season `db-dev.php` and `db-production.php` to taste.
- Symlink one of those files to db.php, depending on whether
you are in development or production.
## Notes
- If you are running Apache, an `.htaccess` file in protected/
will properly restrict access to that directory
- If you are running another webserver, **you are repsonsible
for securing that directory**.
## Licensing
If you actually want to use my code, then consider it available
under the GPL v2.
Enjoy!