小编Sys*_*sel的帖子

使用 php open dir 访问网络驱动器

我有一个闪存驱动器(或硬盘)连接到 Linksys 路由器,并将其设置为无需登录即可访问。然后我在计算机(Windows 7 Proffesional x64)上设置网络驱动器。我尝试了 opendir(\192.168.1.1); 但我收到这个错误

 Warning: opendir(\\192.168.1.1\s2,\\192.168.1.1\s2): The network name cannot be found.       (code: 67) in C:\xampp\htdocs\movies.php on line 4
 Warning: opendir(\\192.168.1.1\s2): failed to open dir: No such file or directory in C:\xampp\htdocs\movies.php on line 4
 Warning: readdir() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\movies.php on line 5
Run Code Online (Sandbox Code Playgroud)

然后我在 php.net opendir comments 中尝试了一些技巧,但是当我尝试以我的帐户登录 apache 时,我遇到了错误:

Windows could not start the apache2.4 service on Local Computer Error 1069: The service did not start due to …
Run Code Online (Sandbox Code Playgroud)

apache service networking linksys network-drive

2
推荐指数
1
解决办法
2万
查看次数

Java ArrayList不兼容的类型

我有个问题 .我正在尝试添加并将它们检索到同一类的对象到ArrayList,但是当我尝试检索它们时,我得到了不兼容的类型erroe

import java.util.*;

public class Test{

Test(){
    main();
}

List test = new ArrayList();

public void main(){
    test.add(new Square(10));

    Iterator i = test.iterator();
    while(i.hasNext()){
        Square temp = i.next();
    }
}
}
Run Code Online (Sandbox Code Playgroud)

java collections

1
推荐指数
1
解决办法
4576
查看次数