PHP 5 social networking

PHP 5 social networking pdf epub mobi txt 电子书 下载 2026

出版者:PACKT PUBLISHNG
作者:Michael Peacock
出品人:
页数:456
译者:
出版时间:October 2010
价格:46.98
装帧:
isbn号码:9781849512381
丛书系列:
图书标签:
  • PHP
  • 混口饭吃
  • 架构
  • Web开发
  • PHP
  • 社交网络
  • Web开发
  • PHP5
  • 社交应用
  • 编程
  • 开源
  • 网站开发
  • 互联网
  • 技术
想要找书就要到 图书目录大全
立刻按 ctrl+D收藏本页
你会得到大惊喜!!

具体描述

* Build a flexible Social Networking framework using PHP which can be extended to fit the needs of any Social Networking site

* Develop a suitable structure for our framework, with MVC to structure the architecture and a Registry to store core Objects

* Allow users to connect and communicate with each other using communication with friends list, flexible user profiles, messages, discussions, and much more

* Plan marketing and scaling strategies, to entice more users and ensure the site can cope with the demand

* Packed with real-world code and clear explanation, this book uses an ongoing case study for creating a Social Networking framework

Social Networking has quickly become a very popular activity on the Internet, particularly with the emergence of sites like Facebook and MySpace. PHP is a flexible web development language used on a wide variety of sites, including Facebook and Yahoo! But building a social networking site from scratch using PHP involves some complex logic, and also some serious coding.

This book will demonstrate how to create, maintain, and extend a powerful social network site. It shows how to create your own flexible social networking framework, allowing users to sign up, customize their profile, befriend other users, share information, communicate, interact with one another, and much more.

Taking best practices, such as object-oriented programming, and the Model-View-Controller architecture, this book will begin by walking through the development of a simple development framework, which is then used to rapidly build a Social Networking platform, building upon the social features chapter by chapter. At the end of this book, you will have a powerful Social Networking platform loaded with many features which can take the user from signing up and connecting with other users to posting and sharing information. With an API in place, the platform can be extended and used by other Social Networks. This book doesn’t just stop with the code and the logic behind it; useful supplementary information is also covered, such as marketing the Social Network, keeping Search Engine Optimization in mind when developing, backing up and maintaining the site, and how to deal with large amounts of traffic through scaling.

By the end of this book, you will be left fully prepared to build, manage, maintain, and extend a powerful Social Network for your business, hobby, organization, family, and clients.

A fast-paced guide to creating a flexible Social Networking website using PHP with a custom, light weight MVC framework.

What you will learn from this book :

* Plan, develop, and extend a flexible light-weight PHP Social Networking framework

* Implement a style of the Model-View-Controller architectural design pattern

* Manage core functionality with the Registry design pattern

* Make a registration and authentication process, allowing users to join the network

* Enable users to connect with each other using friend lists, messages, flexible profiles with status updates, and much more

* Construct a stream of updates informing users of what is happening in their Social Network

* Allow users to customize their profiles

* Allow users to post content on each other’s profiles

* Protect your Social Network from spam

* Keep and maintain regular backups of your site

* Marketing and Search Engine Optimization tips for your Social Network

* Scaling hints and tips for when the Social Network becomes popular

* Develop an API to extend the platform and interact with other Social Networks

Approach

This book is a fast-paced tutorial focusing on creating a Social Networking framework through an ongoing case study. It presents a lot of real-world code, with comprehensive explanation and discussion. With each chapter, the Social Networking framework is extended, with more functionality being added as we progress through the book.

Who this book is written for

This book is primarily aimed at PHP developers, but is suitable for any web developers looking to expand their knowledge and understanding of Social Networking concepts. Intermediate knowledge of PHP and object-oriented programming is assumed, along with a basic knowledge of MySQL.

作者简介

Michael Peacock (http://www.michaelpeacock.co.uk) is a web developer and Zend Certified Engineer from Newcastle, UK with a degree in Software Engineering from the University of Durham. After meeting his business partner while studying at Durham, he co-founded Peacock Carter Limited (http://www.peacockcarter.co.uk), a creative agency based in Newcastle, where he helps run the business and manages the development team. Michael presented some of his thoughts on one particular web application architecture at the PHPNW 2010 conference.

Michael loves working on web-related projects and new business ideas and has interests in several companies. At the moment he is working on his latest venture, Central Apps, and its flagship product Invoice Central (http://www.invoicecentral.co.uk/). He also takes part in amateur dramatics in his spare time, volunteering through Juniper Productions (http://www.juniperproductions.org.uk) in Newcastle.

He has been involved with a number of books, having written five books: PHP 5 Social Networking, PHP 5 E-Commerce Development, Drupal 6 Social Networking, Selling online with Drupal e-Commerce, Building websites with TYPO3, and acted as technical reviewer for two others, Mobile Web Development and Drupal for Education & E-Learning.

You can follow Michael on Twitter: www.twitter.com/michaelpeacock.

目录信息

读后感

评分

评分

评分

评分

评分

用户评价

评分

这本书的“实战”案例,如果能称之为实战的话,简直是小儿科级别的模拟。它声称要构建一个“社交平台”,但最终实现的模块无非是:用户注册、用户登录、发布一条简单的文字消息,以及查看所有消息的列表——一个功能上比早期的BBS还要简陋的系统。我花了很长时间寻找如何实现“好友关系”或“关注/被关注”模型的部分,结果发现,作者只是简单地创建了一个双向关联的数据库表,然后用极其低效的JOIN语句来查询共同好友,性能的噩梦在所难免。对于复杂的关系查询,比如共同的兴趣标签、圈子功能,完全是避而不谈。我强烈怀疑作者是否真正理解了现代社交网络的核心吸引力——即信息的聚合与传播。书中的代码库本身也缺乏模块化思想,所有的业务逻辑似乎都混杂在一个巨大的文件中,这使得任何想要在此基础上扩展新功能——比如私信系统或活动日志——的读者都将面临一场痛苦的代码重构噩梦。这本书更像是一个为初学者准备的、用最原始方式串联起PHP基础语法的教学范例,而非一本指导构建复杂应用的技术指南。

评分

这本书的封面设计,坦白说,第一眼并没有给我带来太多惊喜。那种略显老旧的字体搭配上略微有些暗淡的背景色,让它看起来像是上个世纪末期的技术手册。我原本是冲着“社交网络”这个时髦的关键词来的,毕竟,谁不想看看如何用PHP搭建一个属于自己的Facebook呢?然而,翻开前几页,我立刻意识到,这本书的重点似乎完全偏离了我的预期航道。它花了大量的篇幅去讲解PHP 5的基础语法和面向对象编程的原理,这部分内容详实得令人发指,每一个函数、每一个类结构都被拆解得如同精密的钟表零件。对于一个自认为对PHP已经有一定了解的开发者来说,这简直是一种折磨,感觉像是被拉回了大学二年级的基础编程课。书中对数据库连接的描述,那种使用`mysql_connect`的旧式写法,更让我冒出了一身冷汗,这可是已经被弃用多年的函数啊!我期待看到Composer、PSR标准或者现代框架如Symfony/Laravel的影子,哪怕只是作为“现代实现”的对比也好,但这本书似乎固执地停留在了一个被历史遗忘的角落。如果有人想系统学习PHP 5的基础,这本书或许可以作为一本厚重的参考书,但若指望它能带你进入现代社交网络开发的殿堂,那简直是南辕北辙的期望。我对那些复杂的类继承图谱感到头疼,它们占用了宝贵的篇幅,却对实际构建用户交互界面毫无助益。

评分

最让我感到困惑的是,这本书的语气中流露出的那种过度的自信和对新技术的不屑一顾。作者在引言中似乎暗示,所有那些依赖外部库、使用复杂框架的现代开发方式都是“浮于表面”的,只有掌握了最底层的PHP特性,才能真正“理解”网络应用。这种论调在技术飞速迭代的今天,显得异常傲慢且不负责任。它并没有提供任何关于安全加固的深入讨论,比如SQL注入的防御,在演示中,作者甚至直接在查询语句中拼接用户输入,这种做法放在任何生产环境中都是不可接受的。对于错误日志的记录,它建议直接在浏览器中显示PHP的致命错误,这在任何需要对用户负责的系统中都是一个巨大的安全隐患。整本书散发着一种“我们不需要现代工具”的固执,但正是这些“现代工具”才使得我们能够构建出快速、安全且可维护的复杂系统。因此,这本书与其说是一本关于“如何构建社交网络”的指南,不如说是一部关于“PHP 5时代早期,开发者是如何在资源匮乏的情况下挣扎求生”的历史文献,对于追求效率和安全的新一代开发者来说,它的参考价值非常有限。

评分

从结构上来看,这本书的逻辑跳转显得相当突兀。它在前一部分还在慷慨激昂地介绍如何编写一个完美的“用户资料类”,定义了大量的Getter和Setter方法,试图用一种近乎教条主义的方式来灌输面向对象的“美德”。然而,当话题突然转向“如何处理用户上传的图片”时,整个章节的基调戛然而止,仿佛两个完全不相关的作者在接力完成这本书。关于文件上传的处理,它仅仅演示了如何使用`move_uploaded_file`函数,并且对文件大小和类型验证的处理也异常简单粗暴,完全没有触及到安全漏洞(比如路径遍历攻击)的防范。更糟糕的是,书中对“前端交互”的描述几乎是空白的,所有的示例都是纯粹的后端逻辑输出,页面样式和用户体验被彻底忽略了。我期望看到至少一些关于如何用jQuery或Prototype.js(考虑到PHP 5的年代背景)来增强用户体验的示例,哪怕是简单的AJAX请求来提交评论也好。但这里只有一页又一页的HTML表单,以及提交后刷新整个页面的笨拙流程。这种设计哲学上的缺陷,使得这本书的实用价值大打折扣,它教授的是“能跑起来”的代码,而非“能被用户接受”的系统。

评分

这本书的叙事风格极其古板和干燥,读起来像是在啃一块没有调味的木头。我一直在努力寻找那种能点燃开发热情的“火花”,那种关于如何处理高并发、如何设计用户关系图谱的真知灼见,但最终得到的只是一堆关于文件操作和错误处理的冗长说明。作者似乎对“社交”二字有着极深的误解,或者说,他只是将“网络”理解为简单的客户端-服务器通信。在讨论用户认证时,它仅仅停留在Session和Cookie的基础机制上,对于OAuth 2.0、JWT这类现代身份验证协议只字未提,仿佛我们仍然生活在没有这些安全工具的蛮荒时代。更令人沮丧的是,书中关于“动态内容推送”的章节,其解决方案竟然是基于定时的`cron job`去轮询数据库,然后通过简单的页面刷新来实现,这在如今这个实时性至上的时代,简直是一种技术上的“犯罪”。我甚至在想,这本书的审阅者是否也同样停留在PHP 5的时代?它缺乏对性能优化、缓存策略(比如Memcached或Redis的应用)的任何探讨,这些都是构建任何一个稍微有点规模的网站所必需的基石。与其说它是一本关于“社交网络”的书,不如说它是一本关于“如何用PHP 5写一个静态留言板”的详尽指南,实在令人失望透顶。

评分

评分

评分

评分

评分

相关图书

本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度google,bing,sogou

© 2026 book.wenda123.org All Rights Reserved. 图书目录大全 版权所有