原创 php 不可以連接遠程mysql數據庫
php 不可以連接遠程mysql數據庫 進入 /etc/selinux more config # This file controls the state of SELinux on the system. # SELINUX=
原创 ubuntu 查看和關閉端口
上網查了很多資料,很多資料都是沒經過實踐就直接轉載,真是被打敗了。。! 首先查看端口 netstat -anp 顯示很多,找到自己想要關閉的端口 然後 netstat -anp | grep 9312 tcp 0 0 0.0.0.0:931
原创 採集學習1
今天再網上看了一篇採集文章的基礎,所以獻醜一下。。。look,代碼!!! <?php header('Content-Type:text/html;charset=UTF-8'); require "mysql.class.php";
原创 Ubuntu 10.04分辨率
新裝了 ubuntu 分辨率不能修改 寬屏顯示器 發揮不了作用 Section "Device" Identifier "Configured Video Device" EndSection Section "Monit
原创 linux下安裝sphinx
一、 wget http://sphinxsearch.com/files/sphinx-1.10-beta.tar.gz tar zxvf ./sphinx-0.9.9.tar.gz cd /sphinx-0.9.9/ ./conf
原创 ubuntu安裝mariadb
安裝mariadb 下載二進制包 shell> groupadd mysql shell> useradd -r -g mysql mysql 我輸入的是 shell> useradd -g mysql mysql shell> c
原创 php去掉字符串中的最後一個字符
今天項目中用到,去掉字符串中的最後一個字符 原字符串1,2,3,4,5,6, 去掉最後一個字符",",最終結果爲1,2,3,4,5,6 代碼如下: $str = "1,2,3,4,5,6,"; $newstr = substr($st
原创 解決當mysql請求數據過多時,mysql卡死的方法
當"select * from tb",如果這張表有幾十萬條數據,那麼getAll的時候,必然會卡死。 爲了解決這個問題,不要忘了還有limit,所以解決辦法是: $start = intval($_GET['s']); echo $