What are some good examples of a first PHP app to build for someone who is learning?
2nd January 2012
My answer to What are some good examples of a first PHP app to build for someone who is learning? on Quora
Build a blog. Blog engines are, in my opinion, the ideal starter project for learning any server-side web technology.
They can be incredibly simple (just a reverse ordered list of posts—a single SQL query) and can be useful after implementing a tiny subset of functionality—but they offer almost limitless scope for extension and learning new things.
Start with a single entries table and homepage. Now add a form for adding new entries. Then add edit and delete functionality. Add a simple login mechanism.
Next, add tags (and learn about many-to-many database tables). Add pagination or month/year based archives.
Next, an Atom feed (learning about syndication and XML output in the process).
Add comments—and learn about XSS and other issues involved in accepting user-entered content.
A blog engine us a great learning project because it can be as simple or complicated as you like.
More recent articles
- Weeknotes: Llama 3, AI for Data Journalism, llm-evals and datasette-secrets - 23rd April 2024
- Options for accessing Llama 3 from the terminal using LLM - 22nd April 2024
- AI for Data Journalism: demonstrating what we can do with this stuff right now - 17th April 2024
- Three major LLM releases in 24 hours (plus weeknotes) - 10th April 2024
- Building files-to-prompt entirely using Claude 3 Opus - 8th April 2024
- Running OCR against PDFs and images directly in your browser - 30th March 2024
- llm cmd undo last git commit - a new plugin for LLM - 26th March 2024
- Building and testing C extensions for SQLite with ChatGPT Code Interpreter - 23rd March 2024
- Claude and ChatGPT for ad-hoc sidequests - 22nd March 2024
- Weeknotes: the aftermath of NICAR - 16th March 2024