Easter79 Easter79
3年前
symfony注册Twig模板中使用自定义PHP方法
//注:只是在此做下记录,有兴趣的可以参考,不做实际教程文档//官方文档,https://symfony.com/doc/2.8/templating/twig_extension.html//src/AppBundle/Templating/TwigExtension/WebTwigExtension.php<?phpnamesp
Stella981 Stella981
3年前
IE iframe跨域访问cookie丢失解决方法
问题描述:IE浏览器加载Iframe跨域访问后Cookie丢失,用户登录状态失效解决方法:在PHP中加入以下代码即可解决header("AccessControlAllowOrigin:");header("AccessControlAllowCredentials:true");head
Wesley13 Wesley13
3年前
2017年电商系统列表
公司备注 EC互联网:https://ecjia.com/EC到家:https://daojia.ecjia.com/mode\_tongcheng.html  演示:https://cityo2o.ecjia.com/index.php?mmerchant&cstore&acategoryECTouch:https:/
Stella981 Stella981
3年前
PHP用swoole实现爬虫(二)
本文大部分代码为伪代码,具体实现:一个简单的swoole服务器(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Flwl1989%2FswooleFramewor)如何解决worker锁住问题按照epoll模型,master和manager只分配任
Stella981 Stella981
3年前
PHP利用ICU扩展intl快速实现汉字转拼音以及按拼音首字母分组排序
ICU(InternationalComponentsforUnicode)里提供了transliterator(直译器),可以很方便把其他语言(比如简体中文)转为拉丁文表示:http://cn2.php.net/manual/zh/transliterator.transliterate.phpTransliterator:all
Stella981 Stella981
3年前
PHP 将 html 导出到 word
<?phpclassword{functionstart()//定义要保存数据的开始{ob_start();//开始输出缓冲//设置生成word的格式print'<htmlxmlns"urn:schemasmicrosoftcomffice
Stella981 Stella981
3年前
PHP中$_SERVER详解参数&说明
!(https://oscimg.oschina.net/oscnet/4911f43dc292efbaf24fe48dd8c443ef8c2.jpg)一.$\_SERVER\'argv'\1、cli模式(命令行)下,第一个参数$\_SERVER\'argv'\\0\是脚本名,其余的是传递给脚本的参数2、web网页模式下
Stella981 Stella981
3年前
Lnmp修改php.ini配置
http://www.chenruixuan.com/archives/341.htmlA\A陈瑞轩(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.chenru
淘宝代购集运系统 PHP 开发
淘宝代购系统是一种专门为海外客户提供的服务,它允许用户通过代购平台购买中国电商平台上的商品,并通过集运服务将商品送达海外。以下是一些关于淘宝代购系统的关键信息:商品数据接口:代购系统通过内置的商品数据接口,可以查询淘宝、天猫、阿里巴巴、京东、唯品会等中国电