码迷,mamicode.com
首页 >  
搜索关键字:direct path write temp    ( 55479个结果)
级联删除
1 function deleteDir($path){//没有检测目录是否存在 2 $handle=opendir($path); 3 while(false!==($file=readdir($handle))){ 4 if($file!...
分类:其他好文   时间:2014-10-29 10:27:18    阅读次数:153
List of commands(附目录切换命令)
pwd print working directoryhostname my computer’s network namemkdir make directorycd change directoryls list directoryrmdir remove direct...
分类:其他好文   时间:2014-10-29 10:21:24    阅读次数:227
php学习一
if(PATH_SEPARATOR==‘:‘){define(‘DR‘,‘./‘);}else{define(‘DR‘,‘‘);}其中在WIN中的目录分割符是;linux的分割符是:$_SERVER[]是服务器上的全局变量;类似session在浏览器中的应用,session是在浏览器中的全局变量;
分类:Web程序   时间:2014-10-29 02:11:48    阅读次数:182
django 上传图片不能在视图中显示的解决方法
media路径设置:MEDIA_ROOT=os.path.join(BASE_DIR,‘media‘) MEDIA_URL=‘/media/‘网页中图片无法显示,显示404错误:[28/Oct/201411:03:15]"GET/media/photos/44.thumb.JPGHTTP/1.1"4042528解决方法:根据DJANGO1.6文档-6.19.2static():设置项目URL文件:fromdjango.confimpo..
分类:Web程序   时间:2014-10-29 02:11:07    阅读次数:221
快速排序算法javascript实现
function quicksort(arr){ function q(start,end){ if(start>=end){return;} var pivot= start, temp = arr[pivot], i = start+1; for(;i=end){...
分类:编程语言   时间:2014-10-29 01:50:05    阅读次数:172
第二天,终于搞定 —— 2014.10.28
npm install 报错 bower ENOGIT git is not installed or not in the PATH 的问题终于搞定。 在angular-phonecat文件夹打开nodejs cmd.exe,运行npm install,就报错的问题,终于被我搞定了,期间查阅...
分类:其他好文   时间:2014-10-29 01:44:55    阅读次数:177
.NET基础回顾(七)
一.递归加载目录树程序示例: 1 public partial class Form1 : Form 2 { 3 string path = @"D:\英雄联盟"; 4 5 public Form1() 6 { 7 I...
分类:Web程序   时间:2014-10-29 01:39:52    阅读次数:240
手动修改magento域名
参考:How to Manually Change Domain in Magento? So it turns out the problem was that Apache didn‘t have write permissions to the?WEBROOT/var?directory, so Magento was using its cache from the sy...
分类:其他好文   时间:2014-10-29 00:33:44    阅读次数:229
osx中使用defaults
有时候需要修改osx系统的一些默认设置,这时候会用到defaults命令,查看一下defaults的man文档,对defaults的解释如下:  defaults — access the Mac OS X user defaults system defaults可以对一些系统属性进行read,write和delete操作,用到比较多的是read何write操作,下面几个简单的例...
分类:其他好文   时间:2014-10-29 00:16:14    阅读次数:466
Appium的安装
OS: win7 64位旗舰版1.安装nodejs2.把node的安装目录添加到PATH中3.使用npm install –gappium或者npm --registry http://registry.cnpmjs.org install -gappium(推荐这种,npm的国内镜像)(安装过程中...
分类:移动开发   时间:2014-10-29 00:09:40    阅读次数:294
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!