3

I'm looking for PHP script samples of websites. I'm just done reading a text book on PHP and I want to check out some of the various implementations.

Thanks

3 Answers 3

3

Search for "open source php" or visit an open source host like sourceforge.org

1

I would first start out looking at solidly built sites that utilize a framework, see Recommend a PHP framework....

Next I would look at some of the open source CMS designs built on PHP. Namely Wordpress and modx. Both will be over your head if your new to programming in general but getting the feel for how applications are written, syntax style, etc is well worth it.

Compile a list of questions you have, why are they using self::?, what's a constant, etc and either google for the answer or ask here.

4
  • Thanks, I'm not new to programming so thats not a problem, I would like to see how a website is coded, as my background is in C++ I tend to treat a website like a c++ program rather than a script.
    – kenshee
    Jun 2, 2010 at 6:44
  • @kenshee I tend to use CodeIgniter to develop, you can see my Git Repo for a blogging system that I threw together. It's not the most complex thing in the world, but it would be (I think) a decent introduction.
    – Josh K
    Jun 2, 2010 at 12:16
  • Thanks for the link, its exactly the sort of thing I was looking for.
    – kenshee
    Jun 3, 2010 at 6:27
  • @kenshee: No problem. Feel free to email me if you have any questions about it.
    – Josh K
    Jun 3, 2010 at 10:05
0

This is a pretty generic question, and probably fairly open ended. Technically speaking, since PHP is a Turing complete language it can be used for basically anything. OTOH, if you want specific examples of problems to solve, perhaps that would be a better question to ask. I'd recommend some problem that you find interesting, and learning how to solve that with PHP. For instance, say you want a site that generates anagrams of a given name. Or maybe you want a guessing game. Or a message board (phpBB is open source and an example of a popular solution). If you're looking for concrete examples and ask specific questions you're more likely to get concrete and specific solutions.

Otherwise you'll get answers about as generic as your question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.