基于PHP实现的WEB图片共享系统

本文档详细介绍了基于PHP的WEB图片共享系统的设计与实现,包括系统需求分析、方案选择、实现技术和数据库设计。系统采用MVC模式,支持图片上传、管理和分类,使用Ajax提升用户体验。此外,文档还探讨了特殊问题的解决方案,如乱码处理、动态显示上传进度和批量上传。
摘要由CSDN通过智能技术生成

基于PHP实现的WEB图片共享系统

摘  要

本系统主要从现代社会电脑化观念出发,通过对现有资料的分析、研究和整理,确定了在基于现存的WEB2.0模式下开发图片共享系统的可行性、紧迫性和必要性。在现阶段,国内基于WEB2.0的图片共享系统才刚起步,该市场还有很大的介入空间。其中,在国外,已经有了很成熟的图片共享平台。在WEB2.0时代,信息由以前的服务器发布变成了用户发布。也就是从以前的通过服务器搜集资源并且发布变成了通过用户提供资源,服务器进行整理,分类,发布的模式。而且这种模式对于一个网站的用户吸引度也远远高于传统模式。

本论文旨在详细说明如何在基于PHP以及Ajax框架的环境下,使用MVC的开发模式,完成一个具有完整功能的图片上传以及图片管理系统,并能够实现方便的添加,删除图片以及分类,后台主要实现对用户以及用户的图片进行管理;能实现相关个人的设置更改。并且系统中对于图片上传需要有比较直观的进度显示,图片的呈现使用比较友善的显示效果。

关键词模型-视图-控制器;图片共享;Ajax

 

A Picture Share System Based on PHP

Abstract

This system mainly embarks from the modern society computerization. Based on existence information analysis, the research and the reorganization, we considered the pressing and the necessity of implementing order form developing picture share system base on WEB2.0.At the present stage, the domestic picture share system based on WEB2.0 is just underway.  There is expansive to take part in this field, at the same time, mature picture share system aboard is already exist for a long time. In WEB2.0 period, the style of information publishing turned from server publishing to user publishing .In another word, it is changed from server publishing information to user providing information, and in this case, servers only need to coordinating, sorting and republishing. Furthermore, in this model, a website is much friendlier to user.

This thesis mainly describes how to developing fully functional pictures upload and picture management system. This system can easy to add, delete pictures and categories. In the backstage management, is mainly to implementing user and pictures management and user information changing. In this system, picture uploading is intuitionisticly showing, and the picture is need to be shown user friendly.

Key words: MVC; Picture Share; Ajax

 

目  录

论文总页数:36页

1            引言......................................................... 1

2      系统概述..................................................... 1

3      总体设计..................................................... 2

3.1   系统需求分析.................................................................................................. 2

3.1.1     图片上传需要支持的方式....................................................................... 2

3.1.2     用户上传图片需要支持的格式................................................................ 2

3.1.3     分类....................................................................................................... 2

3.1.4     图片管理................................................................................................ 2

3.1.5     图片展现................................................................................................ 3

3.1.6     查询功能................................................................................................ 3

3.1.7     用户管理................................................................................................ 3

3.2   总体结构......................................................................................................... 3

3.3   图片共享系统流程........................................................................................... 3

3.4   图片共享系统模块功能介绍............................................................................. 5

3.4.1     用户界面子模块划分.............................................................................. 5

3.4.2     管理后台子模块划分.............................................................................. 7

4      方案选择..................................................... 8

4.1   方案比较......................................................................................................... 8

4.1.1     系统模式比较......................................................................................... 8

4.1.2     程序语言比较......................................................................................... 8

4.2   方案选择......................................................................................................... 9

4.3   系统技术平台.................................................................................................. 9

4.4   开发环境搭建.................................................................................................. 9

5      实现技术与数据结构.......................................... 12

5.1   系统架构设计................................................................................................ 12

5.1.1     网络架构.............................................................................................. 12

5.1.2     系统逻辑服务器................................................................................... 12

5.2   系统处理流程................................................................................................ 13

5.2.1     基于MVCSmartemplate架构............................................................ 13

5.2.2     SmartTemplate技术概述........................................................................ 14

5.2.3     SmartTemplatehtml模版之间的关系.................................................. 15

5.3   数据库设计................................................................................................... 18

5.3.1     前台用户主要数据库表结构设计........................................................... 21

5.3.2     管理后台数据库表结构设计.................................................................. 22

6      特殊问题解决办法............................................ 24

6.1   乱码问题....................................................................................................... 24

6.2   动态显示上传进度......................................................................................... 24

6.3   图片随意批量上传问题.................................................................................. 25

7      结果测试、性能分析.......................................... 29

7.1   运行模块组合................................................................................................ 29

7.2   系统登陆界面................................................................................................ 29

7.3   模块应用举例................................................................................................ 30

7.4   系统现存问题................................................................................................ 33

7.4.1     批量上传连接的URL参数泄漏............................................................. 33

7.4.2     批量上传页面源代码中回调脚本泄漏用户ID........................................ 33

  • 17
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

需要什么私信我

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值