duanchao1002 2015-12-22 14:09
浏览 38

Symfony 2文件系统。 无法访问AS400(iSeries)存储库(路径,而不是数据库)

I’m trying to get some .pdf from an AS400 (not a database, only a repository (windows) from the server) using filesystem from the symfony 2 controller (php), but I can’t get them. I’m guessing since the server has a login, do I need to pass the user and the password when creating the path?

The path actually is a simple one:

\\ip\foldername\year\filename.pdf

(I had tried with this same path with a non as400 server and it works). The exact code example is this:

$file = $codenum . '.pdf';
$path = '\\\\192.168.X.XXX\\folder1\\20' . $year . '\\' . $file;
$fs = new FileSystem();
if (!$fs->exists($path)) {
  //Do something
} else {
  //Do something
}

It’s not like I need to create a ODBC connection with the AS400 right? One of the Symfony gitHub crew pointed me as a "access non-local filesystems" problem, but I still cant get enough info on the internet.

Any idea, hint or help would be great! :) Thanks a lot!

Urtzi.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信会员卡接入微信支付商户号收款
    • ¥15 如何获取烟草零售终端数据
    • ¥15 数学建模招标中位数问题
    • ¥15 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 HLs设计手写数字识别程序编译通不过
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向
    • ¥15 如何用python向钉钉机器人发送可以放大的图片?