随笔分类 -  php

摘要:function hextobase64($str){ return chunk_split(base64_encode(pack('H*',$icon_hex))); } 大家可以自己查下各函数用法 阅读全文
posted @ 2020-11-21 15:31 MasterC 阅读(290) 评论(0) 推荐(0)
摘要:网上各种解决办法都看过来了,一直不行。直到我进公众号后台看到了这个 日了狗,我没有设置JS接口安全域名!!!!查了那么多解决方法也没有人提一句这个东西。 阅读全文
posted @ 2020-05-10 17:12 MasterC 阅读(378) 评论(0) 推荐(0)
摘要:前端 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>upload</title> <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.j 阅读全文
posted @ 2020-03-12 00:53 MasterC 阅读(639) 评论(0) 推荐(1)
摘要:找到C:\Windows\System32\inetsrv\config\applicationHost.config 文件; 找到这段代码 <handlers accessPolicy="Read, Script"> 找到<add name="PHP" path="*.php" ......... 阅读全文
posted @ 2019-11-30 12:13 MasterC 阅读(393) 评论(0) 推荐(0)
摘要:win10 laravel iis 搭建环境时 遇到 500报错,提示web.config错误; 是因为iis 版本 默认没有重写模块,需要下载自己安装,插件下载地址:https://www.microsoft.com/zh-cn/download/details.aspx?id=7435 安装即可 阅读全文
posted @ 2019-10-24 15:50 MasterC 阅读(387) 评论(0) 推荐(0)
摘要:php文件内要加上以下代码 php页面输出时按照以下格式 AJAX需要做以下修改 注意红色部分要和上方php返回的参数值相对应 阅读全文
posted @ 2017-07-12 19:49 MasterC 阅读(142) 评论(0) 推荐(0)
摘要:PHPmailer文件地址:点击下载 阅读全文
posted @ 2017-06-20 18:59 MasterC 阅读(130) 评论(0) 推荐(0)
摘要:使用stripslashes()函数过一遍 $_POST['zhizuo']= stripslashes($_POST['zhizuo']); 阅读全文
posted @ 2017-05-16 18:46 MasterC 阅读(844) 评论(0) 推荐(0)
摘要:header("Content-type: text/html; charset=utf-8"); function getCity($ip = '')//获取地区 { if($ip == ''){ $url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json";//新浪借口获取访问者地... 阅读全文
posted @ 2016-11-24 00:08 MasterC 阅读(8181) 评论(0) 推荐(0)
摘要:http://edu.51cto.com/roadmap/view/id-95.html 阅读全文
posted @ 2016-07-26 23:05 MasterC 阅读(136) 评论(0) 推荐(0)
摘要:邮箱需要开启 SMTP服务器 phpcms 后台》设置 > 相关设置 > 基本设置 >邮箱配置 邮件发送模式: SMTP 函数发送 邮件服务器:smtp.163.com 邮件发送端口:25 发件人地址: test123@163.com AUTH LOGIN验证:开启 验证用户名: test123@1 阅读全文
posted @ 2016-07-14 17:46 MasterC 阅读(1716) 评论(0) 推荐(0)
摘要:相关标签 {$WAP['sitename']}标题 {list_url(3)} 调取栏目链接 {template "wap","header"}{template "wap","footer"} 调取详细信息 {pc:wap action="lists" typeid="3" num="10" or 阅读全文
posted @ 2016-02-26 11:31 MasterC 阅读(234) 评论(0) 推荐(0)
摘要:头部文件 定义 <?php if(!isset($CATEGORYS)) { $CATEGORYS = getcache('category_content_'.$siteid,'commons'); } ?> 阅读全文
posted @ 2016-01-29 00:46 MasterC 阅读(539) 评论(0) 推荐(0)
摘要:首先要获取userid然后再判断是否为空{if $userid} 。。。这里写已经登录之后的代码。。。{else} 。。。这里写已经登录之后的代码。。。{/if}搞定。 阅读全文
posted @ 2015-11-04 18:16 MasterC 阅读(464) 评论(0) 推荐(0)
摘要:header("Content-type: text/html; charset=utf-8");header("refresh:3;url=biaodan.php?name=1"); echo "登陆成功,三秒后自动跳转"; 阅读全文
posted @ 2015-10-11 13:43 MasterC 阅读(198) 评论(0) 推荐(0)
摘要:asdasdsd 现代简约 !! setProps('style_anli',0) 赋值提交 乡村田园 地中海 {pc:content action="lis... 阅读全文
posted @ 2015-10-10 17:41 MasterC 阅读(370) 评论(0) 推荐(0)
摘要:$val){//循环一维数组 echo"--$key+$val"; } echo""; } mysql_free_result($res);//释放资源?> 阅读全文
posted @ 2015-09-28 14:15 MasterC 阅读(245) 评论(0) 推荐(0)
摘要:dirname()dirname() 函数返回路径中的目录部分。例子输出:c:/testweb/testwebfile_put_contents() 函数把一个字符串写入文件中。与依次调用 fopen(),fwrite() 以及 fclose() 功能一样。语法file_put_contents(f... 阅读全文
posted @ 2015-09-22 22:16 MasterC 阅读(182) 评论(0) 推荐(0)
摘要:http://v9.help.phpcms.cn/html/pc_tag/modules/ 9帮助中心 调用根目录下phpcms\template\content\header文件 CATEGORYS函数: {$CATEGORYS[栏目ID]['catname']} 调用指定栏目 名字 {$CATE 阅读全文
posted @ 2015-07-10 09:03 MasterC 阅读(716) 评论(0) 推荐(0)