打开终端 输入sudo su 输入sudo apachectl start 编辑http.conf 输入sudo vi /etc/apache2/httpd.conf 去掉 LoadModule php5_module libexec/apache2/libphp5.so 前面的# 删除 AllowOverrid...
package main import( "fmt" "io/ioutil" ) func main() { skillfolder := `D:\go\` // 获取所有文件 files, _ :...
package main import ( "os" "encoding/csv" ) func main() { f, err := os.Create("haha2.csv") if err != nil { ...
package main import "fmt" import "syscall" func main() { ColorPrintln("Hello",2) } func ColorPrintln(s string, i int) { kernel32 := syscall.NewLazyDLL("ker...
1.vi /etc/sysconfig/i18n 将内容改为 LANG="zh_CN.GB18030" LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN" SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en" SYSFONT="lat0-sun16...
#include <stdio.h> #include <stdlib.h> #include <math.h> #define SIZE_AUDIO_FRAME (2) void Mix(char sourseFile[10][SIZE_AUDIO_FRAME], int number, char *objectFile){ in...
var onTextareaKeydown = function(e){ if(e.keyCode == 9){ e.preventDefault(); var start = this.selectionStart, end = this.selectionEnd; var text = this.value; var t...
<?php function get_image_color($img) { $img=imagecreatefromjpeg($img); $w = imagesx($img); $h = imagesy($img); $r=$g=$b=0; for($y=0; $y < $h; $y++) { ...
# wget http://go.googlecode.com/files/go1.2rc3.linux-amd64.tar.gz # tar -C /usr/local -xzf go1.2rc3.linux-amd64.tar.gz # cd /home # mkdir gopath # cd ~ # vim .bashrc exp...
字符串.replace(/(http:\/\/|https:\/\/)((\w|=|\?|\.|\/|&|-)+)/g, "<a href='$1$2'>$1$2</a>");
function number_format(Num){ return new String(Num).replace(/\d+?(?=(?:\d{3})+$)/img, "$&,"); }...
Date.prototype.format =function(format) { var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour ...
package main import ( "fmt" "regexp" "net/http" "io/ioutil" ) func file_get_contents(url string) string{ r, e := http.Get(url) if e != nil { ret...
$arrCSV = array(); if (($handle = fopen("db.csv", "r")) !==FALSE) { $key = 0; while (($data = fgetcsv($handle, 0, ",")) !==FALSE) { $c = c...
需求:通过PHP把PDF生成PNG图片,一般用在在线阅读浏览用的。 Windows下实现: 1.PHP的DLL扩展下载地址:http://valokuva.org/outside-blog-content/imagick-windows-builds/ 2.里面有用于P...
var so ="onorientationchange" in window; var oe=so?"orientationchange":"resize"; window.addEventListener(oe, function() { //判断设备类型 var ua = navigator.userAgent; ...
<link rel="prefetch" href="http://jinzhe.net/18.html" /> <link rel="prefetch" href="http://jinzhe.net/18.jpg" />...
没有更多内容
加载失败,请刷新页面
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复