- 博客(11)
- 资源 (65)
- 收藏
- 关注
原创 如何让alias起的别名永远生效
找到~目录下的.bashrc文件根据上面的提示新建一个.bash_aliases文件。然后把自己所定义的别名写入这个文件中。例,把lampp启动,停止,重启写入到这个文件中最后,要用命令source .bashrc来使你所定义的别名立即生效。这样的话,下次重启电脑的时候别名还会存在。参考文献。http://blog.csdn.net/ri
2017-01-29 22:40:05 954
原创 lampp下mysql显示中文乱码
这里主要数据库配置的问题。在网上搜了一下[client]default_character_set=utf8[mysqld]character-set-server = utf8collation-server = utf8_general_ci[mysql]default_character_set=utf8这个方案即可解决在linux下mysql配置文件lampp/e
2017-01-28 14:32:13 373
原创 lampp下修改数据库的密码
$cfg['Servers'][$i]['auth_type'] = 'http';参考网页http://www.xuebuyuan.com/2084661.html1. root用户密码设置。可以选择在命令提示符下进行。进入xampp安装目录下xampp/mysql/bin敲入命令“mysqladmin -u root -p password 你的密码***”敲回车完成设置
2017-01-26 16:18:08 768
原创 mysqli操作数据库简例
<?php // 假定数据库用户名:root,密码:123456,数据库:RUNOOB $con=mysqli_connect("localhost","root","123456","RUNOOB"); if (mysqli_connect_errno($con)) { echo "连接 MySQL 失败: " . mysqli_connect_error(); } $s
2017-01-21 20:35:29 326
原创 lampp下通过phpmyadmin修改默认密码
第一步,登录phpmyadmin之后,在帐户下修改root的默认密码。第二步,找到phpmyadmin目录,修改目录权限为755,不要为777否则用出现如下错误。Wrong permissions on configuration file, should not be world writable!第三步,修改phpmyadmin目录下config.inc.php文件。找到修
2017-01-21 20:05:20 587
原创 php简单的表格验证测试
<?php$mysqli=new mysqli('localhost','root','test','test');$sql="select * from tb_user where id=1";$res=$mysqli->query($sql);$data=$res->fetch_object();$pass=$data->passwd;$name=$data->name;$pn
2017-01-08 11:01:15 412
原创 微信公众平台自定义菜单测试没有成功
public function makemenu(){ define("APPID","1122"); define("APPSECRET","1122"); $token_access_url="https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=".APPID."&secret=".A
2017-01-07 21:59:52 878
原创 微信公众平台图文模式测试
public function responseMsg() { //get post data, May be due to the different environments $postStr = $GLOBALS["HTTP_RAW_POST_DATA"]; //extract post data if (!empty($postStr)){
2017-01-07 21:03:16 302
原创 微信公众平台开发测试
<?phpdefine("TOKEN","contentback");$wx=new weixin();$wx->dophp();class weixin{public function checksig(){ echo 'mm'; $sig=$_GET['signature']; $nonce=$_GET['nonce']; $timestamp=$_GET['time
2017-01-07 17:26:47 370
原创 php连接mysql数据库实例
<?php$con=mysql_connect('localhost','root','');if($con){ echo 'database success'; mysql_select_db('db_mt',$con); $result=mysql_query('select * from tb_mt'); $info=mysql_fetch_array($result); do
2017-01-02 23:37:40 336
blender-2.82a-windows64.7z.001
2021-08-26
vlc-3.0.12-win64.exe
2021-01-22
nethack-366-src.tgz
2020-09-27
nethack-362-src.tgz
2020-09-23
cgoban 1.9.13
2020-09-22
libXp so文件
2017-09-04
sip for python
2016-11-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人