Does anybody know if there is a loop around not being able to readdir on a different machine to the localhost? IE... Server1 has apache.. and i want to readdir on Server2?
lengthy description begins here, if you are bored:
OK, so i have a bit of an awkward setup.
So i have two windows 2003 servers...
Server1:
running the webserver.. apache.. php.. mysql database... and also Imagemagick.. and the phmagick wrapper.
Ive got our intranet running on this..
Server2:
This is where our shared pictures are stored, which i want to show on the intranet.
running an IIS server (i dont have a website on this.. using IIS for other stuff)
i have aliased a virtual directory in IIS so that i can put in 192.168.168.3/publicarea and its actually going to D:\Public..
you get the idea.
so now the problem:
I am using PHMagick to create thumbnails for each picture.. (as it was loading slowly and being very laggy). I have a cronjob that will run every hour and check the picture directories and check dates etc. and then decide what action to take... ie, make thumbnail directory .. just make thumbnail.. etc.
SO ANYWAY. I have this working fine locally on my test machine. But of course... my test machine does not have the hurdle of grabbing the images off a different machine.
So on the live machine i created a test script that points directly to one image rather than the whole readdir() thing.. that works fine.
the problem i'm having is with the read dir bit. Is there ANY WAY, that my apache can read a directory of a different machine and grab a list of files? I know it probably isn't able to for the security reasons that go without saying..
but i'm wondering if there's a loop around this... since the other server is local... any ideas?
Thank you.