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.