Hi guys. I spent 2 full days searching the internet and PHPBuilder for answers to my question. I keep getting close, but no one seems to have hit my problem on the head.
I need to include a FULL URL call in one of my functions. I am able to send the variables to that URL without a problem. But when I try to get a variable to come back from that "include" it comes back as only a 1.
This is consistent with my research, but there has to be a way to do this. I do NOT want to name the URL file .inc or anything risky. I want to keep it .php.
I think I'm just missing something small here so I hope you can help.
Code examples below:
test.php program
<?php
echo $LocalVersion; //this works fine
$MasterVersion = $LocalVersion + 999;
echo $MasterVersion; //this works fine also
return $MasterVersion;
?>
Main Program
<?php
$MasterVersion = include "http://domain.com/test.php?LocalVersion=20";
echo $MasterVersion; // This does not work. 1 comes back
?>
There must be a way to do this without using .inc extensions.
Thanks for the help!
-Chris