|
Posted by Noodle on 04/01/07 09:36
On Apr 1, 6:49 pm, cmk...@hotmail.com wrote:
> Hi
> I have this file in submain:
> <?
> $a='a';
> ?>
>
> In another domain, when i do:
> <?
> require('sub.domain.com/a.php');
> echo $a;
> ?>
>
> But the echo $a print our nothing, i understand the problem, but how
> to work arround?
> thanks
> from Peter (cmk...@hotmail.com)
Try this:
Sub domain page:
<?php
$a = 'a';
echo $a;
?>
Another domain:
<?
$a = file_get_contents('sub.domain.com/a.php');
echo $a;
?>
Navigation:
[Reply to this message]
|