Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: internal links...
01-07-2006, 01:29 AM #1
Will internal links work in php? like for an include? EG:
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...
01-07-2006, 03:06 AM #2
- Join Date
- May 2002
- Perth Australia
- Thanked 92 Times in 90 Posts
would work assuming the computer @ .200 has a webserver running, note that you cant get the file source (of say php/perl etc) this way since the webserver will already have parsed them, to include php files for later processing you would want to access the network path \\network-server1\\files\\include.php
includes will be relative to the calling script , so if blah.php is on server4 then the script will look for relative paths on server4 , not 2 or 1 or 3 etc.
MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
01-07-2006, 03:45 AM #3
ok thank you. I was just wondering, because I did it but have no way of testing it because the addresses would work for me anyway because they are on my network.