Forum Moderators: coopster
/////////////// THIS OK ///////////////
file index.php
<?
$myvar = test;
include ("example.php");
?>
file example.php
<? echo "You var is $myvar";?>
/////////////// THIS DON'T WORK ///////////////
file index.php
<?
$myvar = test;
include ("http://www.mysite.com/example.php");
?>
file example.php
<? echo "You var is $myvar";?>
------------------------
In the second example var is null
?
thks
What you can do is you can open the remote file: fopen and then execute it, but that's still unwise. I don't know a clean method to do that except POSTing the data and retrieving it.
Sorry I could not help
Michal Cibor