I have 3 servers, and I'm trying to get some communication between them. Here is the scenario;
SERVER 1
it contains fname1.php which is as follows;
Code: Select all
<?php
if($mVar == 2)
echo "This is second server";
else if($mVar == 3)
echo "This is third server";
else
echo "This is first server";
?>it contains fname2.php which is as follows;
Code: Select all
<?php
$file_adr = "http://server1/fname1.php?mVar=2";
$content = file($file_adr);
?>it contains fname3.php which is as follows;
Code: Select all
<?php
$file_adr = "http://server1/fname1.php?mVar=3";
$content = file($file_adr);
?>But when i open fname2.php and fname3.php in my browser, I get different content.
So I think this stems from configuration of my servers.
While server 2 succesfully parse the file an create an output
"This is second server", server 3 gives "This is first server".
Here is the versions of the installed PHP on servers.
SERVER 2 : PHP Version 4.3.3
SERVER 3 : PHP Version 4.2.2
Thnx a lot.