……

随笔分类 -  php

摘要:1.创建网站到入口文件目录public下 使用工具phpstudy(工具不限) 2.ThinkPHP报错 The requested URL /admin/index/login.html was not found on this server. 在入口文件夹public下查看.htaccess是 阅读全文
posted @ 2022-06-04 11:55 十零 阅读(1285) 评论(0) 推荐(0)
摘要:1.创建网站到入口文件目录public下 使用工具phpstudy(工具不限) 2.ThinkPHP报错 The requested URL /admin/index/login.html was not found on this server. 在入口文件夹public下查看.htaccess是 阅读全文
posted @ 2022-06-04 11:53 十零 阅读(2577) 评论(0) 推荐(0)
摘要:Atom是由 GitHub 的程序员们打造的称为“属于21世纪”的代码编辑器。它开源免费跨平台(支持 Windows、Mac、Linux 三大桌面平台),并且整合 GIT 并提供类似 SublimeText 的包管理功能,人们可以非常方便地安装和管理各种插件,并将 Atom 打造成真正适合自己的开发 阅读全文
posted @ 2022-03-20 10:21 十零 阅读(134) 评论(0) 推荐(0)
摘要:1.查看host文件是否增加网站网址 比如你创建了demo.io查看是否有127.0.0.1 demo.io 2.在目录C:\Windows\System32\drivers\etc下找到hosts文件 用编程软件打开,如果没有127.0.0.1 demo.io在尾行添加127.0.0.1 demo 阅读全文
posted @ 2022-03-07 21:07 十零 阅读(2159) 评论(0) 推荐(0)
摘要:1.在当前文件夹下创建测试文件test.txt 2.在index.html编写跳转a标签 <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>文件下载</title> </head> <bod 阅读全文
posted @ 2021-12-03 09:31 十零 阅读(1945) 评论(0) 推荐(0)
摘要:例如我们有一个这样的项目 gamelist怎么才能搭建访问呢?方法入下: 1. 软件下载安装及创建网站 1) PhPstudy集成环境 网址:https://www.xp.cn/download.html 安装:安装PHPStudy(小皮)V8.1最详细安装教程 2) 打开phpstudy软件,点击 阅读全文
posted @ 2021-12-01 12:42 十零 阅读(517) 评论(0) 推荐(0)
摘要:1. 进入PhPstudy官网,下载地址https://www.xp.cn/download.html点击立即下载 2. 选择系统选择下载,我选择64位下载 3. 下载的是压缩包文件,加压后打开文件夹右键管理员运行phpstudy_x64_8.1.1.3.exe 4. 点击自定义是默认选择D盘安装, 阅读全文
posted @ 2021-12-01 10:37 十零 阅读(2086) 评论(0) 推荐(0)
摘要:使用Navicat连接mysql出现1045,可能的原因为忘记密码, 下面方法可以帮助重置密码。 1,以管理员权限运行cmd程序; 2,cd C:\Program Files (x86)\MySQL\MySQL Server 5.7\bin 3,关闭mysqld进程, >>tasklist |fin 阅读全文
posted @ 2021-06-02 16:32 十零 阅读(4715) 评论(0) 推荐(0)
摘要:目前唯一解决办法 添加 : __DIR__ . 将:include("../conn/conn.php"); 修改为 :include(__DIR__ . "/../conn/conn.php"); https://blog.csdn.net/qq_45645732/article/details/ 阅读全文
posted @ 2020-10-25 12:06 十零 阅读(3829) 评论(0) 推荐(0)
摘要:一、参考源码 <?php $localhost="localhost"; $root="root"; $password="123456"; $datebest="db_ku"; $conn=mysqli_connect($localhost,$root,$password,$datebest) o 阅读全文
posted @ 2020-07-02 09:01 十零 阅读(567) 评论(0) 推荐(0)
摘要:Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in 解决办法 主要原因是书写不规范导致的错误 如:将$_GET[id] 改为 $_G 阅读全文
posted @ 2020-06-22 10:14 十零 阅读(3138) 评论(0) 推荐(0)
摘要:1.在SublimeText-Nodejs官网上下载Download ZIP压缩包 2.将SublimeText-Nodejs-master.zip解压到选定文件夹下,并且重命名为——Nodejs 3.点击sublime软件的Preferences->Browse Packages,将Nodejs文 阅读全文
posted @ 2020-06-12 19:26 十零 阅读(1610) 评论(2) 推荐(0)
摘要:一.创建一个数据库db_idlist执行SQL代码 DROP TABLE IF EXISTS `tb_idlist`; CREATE TABLE `tb_idlist` ( `id` int(11) NOT NULL AUTO_INCREMENT, `content` varchar(20) DEF 阅读全文
posted @ 2020-04-22 19:49 十零 阅读(1514) 评论(0) 推荐(0)
摘要:<?php $conn=mysqli_connect("127.0.0.1","root","密码","db_favorite") or die("数据库服务器连接错误".mysqli_error()); mysqli_select_db($conn,"db_favorite") or die("数 阅读全文
posted @ 2020-04-21 13:26 十零 阅读(401) 评论(0) 推荐(0)
摘要:<?php $fp = fopen("D:\game\我的世界.txt", "r"); $arr1=array(); $j=0; if($fp) { for($i=1;! feof($fp);$i++) { $cle=fgets($fp); $arr1[$j++]=$cle; } $cou1=cou 阅读全文
posted @ 2020-03-29 16:10 十零 阅读(214) 评论(0) 推荐(0)
摘要:Thinkphp遇到这样的错 :( Think\Model:search方法不存在! 错误位置 FILE: E:\www\qazx\ThinkPHP\Library\Think\Model.class.php LINE: 226 TRACE #0 E:\www\qazx\ThinkPHP\Libra 阅读全文
posted @ 2018-12-25 22:14 十零 阅读(161) 评论(0) 推荐(0)