NOW DO I HAVE TO TELL YOU BOTH
IT WORKS FINE!
1000% SURE!
Vincent : You don't know what you're talking about, off course 192.168.x.x isn't reachable from outside. But the script is running on the firewall, which HAS access to the internalnet(192.168.x.x). So the PHP server on the firewall know 192.168.x.x and uses it's DNS to resolve it.
Bryan : Try to set your DNS correct on your external PHP server.
try things on the firewall like:
nslookup
server 192.168.100.1 (firewall ip)
192.168.100.5 (internal server)
found? OK than things are ok.
and try looking in /etc/resolv.conf:
nameserver 127.0.0.1
the above string must be the first or second line in this file.
eventually check /etc/nsswitch.conf:
hosts: files dns nis
if you set it like above, you can use /etc/hosts to enter names for the internal ip's eg.:
192.168.100.1 externalserver
192.168.100.5 internalserver
this way you can use : ping internalserver on the firewall...
I don't know anything more to say...
I've tested it, if not sure:
http://www.vdwerff.nl/~remon/test.php
this is the file pasted in previous post.
IT OPENS A FILE FROM MY INTERNAL SERVER 192.168.x.x using fopen();
Tell me if it isn't working, I know it'll work. (One picture isn't working because it's one the other server.)
Greetz,
Remon
(Let me know!)