GO ILLINI
01-07-2006, 01:29 AM
Will internal links work in php? like for an include? EG:
include("http://192.168.1.200/something.txt");
I have like 4 servers on my network and they are all paths after a domain but they have names(server1, serv...) and it would be alot easier to type include("http://server3/file.daf"); then some long path.
Also while writing this I came up with another question.
Say I have 2 servers(server1, and server2) Server 1 is on my network but server 2 is remotly hosted. I have an include on server2 that points to a file on server 1. That file is include.php In that file are includes to a dir on server 1.
My question is What is processed first? Will the dir be assumed to be on server1 or server2?
Sorry if I lost ya in that last one, and its not that important anyway, i was just wondering...
Thanks,
ILLINI
include("http://192.168.1.200/something.txt");
I have like 4 servers on my network and they are all paths after a domain but they have names(server1, serv...) and it would be alot easier to type include("http://server3/file.daf"); then some long path.
Also while writing this I came up with another question.
Say I have 2 servers(server1, and server2) Server 1 is on my network but server 2 is remotly hosted. I have an include on server2 that points to a file on server 1. That file is include.php In that file are includes to a dir on server 1.
My question is What is processed first? Will the dir be assumed to be on server1 or server2?
Sorry if I lost ya in that last one, and its not that important anyway, i was just wondering...
Thanks,
ILLINI