摘要:        
I have a php function I wrote that will take a text file and list each line as its own row in a table.The problem is the classic "works fine on my machine", but of course when I ask somebody else to generate the .txt file I am looking for, it keeps on reading in the whole file as 1 line. W    阅读全文
        
            posted @ 2012-05-14 22:59
weaver_chen
阅读(410)
评论(0)
推荐(0)
        
            
        
        
摘要:        
解决方案:首需要切换到root身份$su -(注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用"su -"命令将环境变量也一起带过去,就象和root登录一样)然后$visudo //切记,此处没有vi和sudo之间没有空格1、移动光标,到最后一行2、按a,进入append模式3、输入your_user_name ALL=(ALL) ALL4、按Esc5、输入“:w”(保存文件)6、输入“:q”(退出)    阅读全文
        
            posted @ 2012-05-14 09:11
weaver_chen
阅读(161)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                 
 
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号