PHP 网站源代码
我正在寻找网站的 PHP 脚本示例。我刚刚读完一本关于 PHP 的教科书,我想了解一些不同的实现。
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
搜索“open source php”或访问开源主机,例如 sourceforge.org
Search for "open source php" or visit an open source host like sourceforge.org
我首先会开始查看使用框架的坚固构建的网站,请参阅 推荐一个 PHP 框架...。
接下来我会看看一些基于 PHP 构建的开源 CMS 设计。即 Wordpress 和 modx 。如果您是一般编程新手,那么这两种都会超出您的理解,但了解应用程序的编写方式、语法风格等是非常值得的。
列出您遇到的问题,为什么他们使用
self::
?、什么是常量等,然后通过 google 查找答案或在这里问。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.这是一个非常普遍的问题,而且可能是相当开放式的。从技术上讲,由于 PHP 是一种图灵完备的语言,因此它基本上可以用于任何事情。 OTOH,如果您想要解决问题的具体示例,也许这是一个更好的问题。我会推荐一些您感兴趣的问题,并学习如何使用 PHP 解决该问题。例如,假设您想要一个能够生成给定名称的字谜词的网站。或者也许您想要一个猜谜游戏。或者留言板(phpBB 是开源的,也是流行解决方案的一个示例)。如果您正在寻找具体的示例并提出具体的问题,您更有可能获得具体且具体的解决方案。
否则,您将得到与您的问题一样通用的答案。
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.