hollywoodnorth
11-22-04, 10:03 PM
in responce to this >>
When we load balanced www11-www18 some people had problems with using URL based includes. If you need to use URL includes that use your own domain name, this makes the php script try to reconnect to the webservers again through the load balancer. This will not work due to network topology limitations when using multiple load balancers. To use your own domain in URL based includes change them from this:
include("http://domain.com/path/to/file.html"); or
include("http://www.domain.com/path/to/file.html");
to use:
include("http://localhost.domain.com/path/to/file.html");
This will cause the php script to connect to the local webserver and retrieve your file. You can change your PHP scripts now and it will work without load balancing. We will be load balancing www01-www10 most likely this evening.
Do I need to change this include line >>
include "news/Classes/news.class.php";
When we load balanced www11-www18 some people had problems with using URL based includes. If you need to use URL includes that use your own domain name, this makes the php script try to reconnect to the webservers again through the load balancer. This will not work due to network topology limitations when using multiple load balancers. To use your own domain in URL based includes change them from this:
include("http://domain.com/path/to/file.html"); or
include("http://www.domain.com/path/to/file.html");
to use:
include("http://localhost.domain.com/path/to/file.html");
This will cause the php script to connect to the local webserver and retrieve your file. You can change your PHP scripts now and it will work without load balancing. We will be load balancing www01-www10 most likely this evening.
Do I need to change this include line >>
include "news/Classes/news.class.php";