Skip to content

FatWind/php_demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

story

This reposity records practices I learned in daily life. Bellow introduces the functionality of each file

web_bakend

php

1.understanding_namespace:理解命名空间的使用
2.autoload_with_namespace:使用php的spl_autoload_register()函数,结合namespace,实现类的自动加载
3.compress_directory_to_zip_file:将文件夹压缩成zip文件并下载
4.custom_smarty_template:写一个简单的smarty模板
5.delete_files:递归删除文件夹里的文件
6.extract_img_from_html_page:从html文件里匹配出img标签的src属性值
7.extract_teacher_class_from_wyu_website_using_teacher_name_from_excel:爬取学校教务处的课表,并填入到excel里面
8.redirect:三种跳转url的方式
9.design_patten:php常见的设计模式
10.laravel_concepts:仿写一个自己的ioc容器,涉及反射、依赖注入、匿名函数
11.session_id:当客户端禁用cookie时,以这种方式来标识session
12.upload_picture:php单图和多图上传

nginx

1.nginx_video_learn:看燕十八的nginx视频,记录下用于配置负载均衡和链接memcached的nginx.conf配置

web_frontend

1.long_polling:js实现轮询

other_web_related

1.domain_register_use:阿里云备案要求网站有图文描述(个人的不能有团队之类的词语,会有些麻烦),将这个文件里的东西都放到服务器上,就能通过了

About

some php demos with different funcitonalities

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 47.6%
  • HTML 23.0%
  • JavaScript 20.4%
  • CSS 9.0%