Forum Moderators: coopster
test.php
<?
$data = file_get_contents("sitename/filename.php");
echo ($data);
?>
but this displays 'all' the data that is being echoed in filename.php.
It will be easier to just place code from filename.php into test.php but I am trying to avoid login details to be placed anywhere else and MUST access databse remotely.
my question :
how can I use only some variable values from filename.php and utilize them as a continuation of test.php ?
I googled around and read about cURL and other packages but seems complicated.Can somebody think of any better way ?
<?
$data = file_get_contents("sitename/filename.php");
echo ($data);
?>
but i am running into the problem that this is echoing more data than what I want it to.
I want to be able to select certain data that is stored in variables on A that I should be able to 'pipe' to scripts running on B.
May be that is more explanatory and will get some help.I am just careful to not use method 1 above because of security reasons.
thanks