PHP[011]:curl abandon1a2b Coding 今天在研究了下 php curl cookie的使用 , 本來打算写一篇关于 php curl 的使用,主要是关于 cookie 的,但是 curl 在一定程度上相比于 socket 算是一个经过封装的扩展,所以写的过程中又引入了一个使用 socket 进行 http 请求的文章 PHP 支持 Daniel Stenberg 创建的 libcurl 库,能够连接通讯各种服务器、使用各种协议。lib...
PHP[007]:ReflectionClass abandon1a2b Coding 调用类私用方法 实例化不可实例的类 使用这个的原因是因为拆分老的业务代码中,有个一个 Aentity 依赖另一个 Bentity (在orm层中调用get_ class),如果查询或者Bentity提供的创建方法会导致将其注册到 UnitOfWork 中,会导致最后的入库(虽然也有可能不入库),所以采用 ReflectionClass::newInstanceWithoutConstructor ...
PHP[003]:symfony abandon1a2b Coding 起步 symfony Configuring a Web Server symfony Requirements for Running Symfony 进入项目安装开发时使用的 web server 组件 The Symfony MakerBundle next
PHP[002]:More PHP abandon1a2b Coding more 虽然 wsl 可以模拟 linux 环境,但是请不要用 wsl 作为一种开发环境进行使用,而是作为一个工具系统 一致的环境 linux 版本 & 配置 nginx 版本 & 配置 mysql 版本 & 配置 php 版本 & 配置 composer 版本(这个也很重要) 一致的环境体现在三个方面,系统(linux/win)是否一直,依赖软件 (nginx/mysql/other)是否一致...
PHP[001]:INSTALL abandon1a2b Coding ubuntu ubuntu 中软件的卸载方法: 1.apt方式安装: (相应的文件夹有相关的软件,先进入到软件的文件夹) 普通安装: sudo apt-get install 软件名 修复安装: sudo apt-get -f install 软件名 重新安装: sudo apt-get --rreinstall install 软件名 (一般是 .deb 格式) 2.dpkg 方式: 1.普通安...
c/c++[002]:01背包 abandon1a2b Coding (背包问题?)[ https://acm.sdut.edu.cn/onlinejudge2/index.php/Home/Index/problemdetail/pid/3092.html
c/c++[001]:start abandon1a2b Coding cin cout scanf printf scanf()是C语言中的一个输入函数。与printf函数一样,都被声明在头文件stdio.h里,因此在使用 scanf 函数时要加上 #include <stdio.h> 。(在有一些实现中,printf函数与scanf函数在使用时可以不使用预编译命令 #include <stdio.h> 。)它是格式输入函数,即按用户指定的格式从键盘上把数据输入到指...