For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2004 > sending variable between two servers









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author sending variable between two servers
Yukiko

2004-03-26, 11:13 pm

Hello PHPcoders :o)

simple question but not for me !

I have two serwers (php +apache) and i need get to first one script (based
on first server) variable from second one server and use in in a few places
on first script!

first script (public apache web server show $a variable - works ok !)
//-------------------------------
$url = fopen ("http://192.168.10.4/dual.php", "r");
while ($buff = fread ($url, 1024))
$txt .= $buff;
fclose ($url);
eval ('?>'. $txt .'<?');
....................
...................
echo $a; // here is the problem $a is no longer awariable !


//-------------------------------

second script
//-----------------
get data from oracle and put it into $a variable;
echo $a;
//-----------------

second script dual.php (based on 192.168.10.4 )
generate variable $a (from oracle) and show it. But this varialble is not
accesible in first one script !!!


any ideas ??????????
should i use Java Script ?

regards
JA LO





Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com