BianLiTxt.php   $i = 1;foreach(glob('./*.txt') as $txt){    echo '第'.$i.'个文件'.basename($txt).'的内容是:';    echo file_get_contents($txt);    $i++;    echo '';}?>
转载 2023-05-16 18:45:33
69阅读
alt+F2 运行gconf-editor,在apps->gedit-2->preferences->encodings在右边的auto-detected中双击会弹出一个对话框添加一个GB18030。
转载 2009-10-23 13:05:43
725阅读
<?php $wherelist = array(); if (!empty($_GET['status'])) { $wherelist[] = " status =".$_GET['status']; } if (!empty($_GET['message'])) { $wherelist[]
原创 2021-12-27 14:15:41
134阅读
Ubuntu 安装 PHP7 XDebug
原创 2019-01-17 11:19:05
1004阅读
apache2sudo apt-get install apache2 phpsudo apt-get install libapache2-mod-php5 php5 php5-gd php5-mysqlsudo /etc/init.d/apache2 restart mysqlsudo apt-
原创 2022-05-19 15:06:03
138阅读
初学php,找到一个php在线生成txt文件,平且下载的代码,留着以后自己用。<?php $str = 'txt内容'; $filename = '文档名称.txt'; header("Content-type: text/plain"); header("Accept-Ranges: bytes"); header("Content-Disposition: p_w_upload
转载 精选 2013-07-16 15:35:53
1148阅读
ubuntu自带的gedit打开.txt文件的时候显示的是乱码。解决:ubuntu下gedit打开cmd乱码,自定义为GB18030编码打开:gedit --encoding=GB18030 filename.txt或直接执行以下命令:gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8','GB18
原创 2014-03-19 17:37:18
1172阅读
Ubuntu 14.04上安装和配置Postfix邮件服务详细教程    Postfix: 用来接受和发送邮件的邮件服务器,正确说法应该叫邮件传送代理(Mail Transfer Agent,MTA),是邮件服务最重要的部分;    Dovecot: POP 和 IMAP 服务器,用来管理本地邮件目录以便用户能通过 Mail.app, T
转载 精选 2015-12-13 19:49:28
1038阅读
# Ubuntu中使用MySQL导入TXT文件的命令 在Ubuntu中,MySQL是一个常用的关系型数据库管理系统。有时候我们需要将存储在文本文件中的数据导入到MySQL数据库中。本文将介绍如何使用命令行工具在Ubuntu中将TXT文件导入MySQL数据库。 ## 准备工作 在开始之前,确保你已经安装了MySQL数据库和相应的命令行工具。如果你还没有安装,可以使用以下命令进行安装: ```
原创 2023-09-09 16:15:58
93阅读
好像我以前的文件是windows下面或者是8.10版的,好像编码不一样,不知道是gb2312的还是什么样的。他默认认不出编码来。 不过在打开的时候选择 GB18030编码是可以显示正常的。在网上找到了如下解决办法:1).运行 gconf-editor,把 gedit 的自动检测编码设置修改一下,加入 GB18030,GB2312 ,GBK 等几个 ( GB18030 兼容GB2312 ,GBK...
原创 2022-11-22 00:20:57
211阅读
 安装php: 当然,现在我们都用php5了。运行: sudo apt-get install php5 php5-cgi php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-pspell ph
原创 2012-04-04 09:20:50
646阅读
     深刻啊,足够让我记忆,纪念520~ 1.安装apache2  sudo apt-get install apache2  安装后在浏览器中打开:http://localhost/或者http://127.0.0.1  如果出现It works!证明apache安装成功。  2.安装PHP  s
原创 2012-11-04 22:55:00
488阅读
红帽(Red Hat)是全球领先的开源软件解决方案提供商,也是 Linux 发行版中的一种。在 Linux 领域中,红帽一直以来都扮演着非常重要的角色,其开发的操作系统──红帽企业 Linux(RHEL)被广泛应用于企业服务器环境中。 在 Linux 系统中,Ubuntu 也是非常受欢迎的一个发行版。它基于 Debian 构建,致力于为用户提供一个用户友好、稳定且安全的操作系统。Ubuntu
原创 2024-04-18 11:35:56
68阅读
不知道啥时候只安装的php7.0多出来了7.1,7.2
原创 2018-09-10 19:59:54
1101阅读
ubuntu 18.04 PHP开发环境 1、安装Sougou输入法 下载sogou,安装sogou 在语言里面选择fcitx,应用到整个系统,重启后就好了 2、安装php #php8.0源看之前文章 sudo apt install php8.0-cli php8.0-bcmath php8.0-bz2 php8.0-curl php8.0-dev php8.0-enchant php8.0-f
原创 2021-04-26 14:04:37
402阅读
起因: 在现有的 Apache + PHP 环境下,增加一个 PHP Extension 扩展时,遇到错误: Unable to initialize moduleModule compiled with module API=20090626PHP compiled with module API
转载 2016-04-22 13:28:00
109阅读
2评论
安装好以后apt-get install libapache2-mod-auth-mysqlapt-get install
原创 2023-02-07 05:40:03
101阅读
引言:有时候调试,看不到效果,需要通过写入文件来实现。 案例: 点评: 1. \r\n很好的实现了换行。 2. "w"写入方式打开,将文件指针指向文件头并将文件大小截为零。如果文件不存在则尝试创建之。 "w+"读写方式打开,将文件指针指向文件头并将文件大小截为零。如果文件不存在则尝试创建之。...
原创 2021-08-05 15:52:28
553阅读
php代码生成txt文件并下载<?php header("Content-Type: application/octet-stream"); $quan=$_GET['quan']; $ua = $_SERVER["HTTP_USER_AGENT"]; $filename = "100yuan.txt"; $encode
原创 2013-05-24 14:37:31
3945阅读
<? header("content-type:text/html;charset=utf-8"); $file = "demo.txt"; ###判断该文件是否存在 if(file_exists($file)){ $file_arr = file($file); ###得到数组 $arr_new = array(); ####对数组的处理 foreach($file_arr as $
转载 2016-01-04 14:47:00
178阅读
  • 1
  • 2
  • 3
  • 4
  • 5