Hi, this is a strange question, but I hope to someone help me to solve..
I explain.. i'm trying to make a thing like a bridge... for the first test I used to retrieve the logged user information...
to do this first thing i created a file test.php in the root of the forum and the code is this:
Code:
require("includes/config.php");
require("global.php");
print_r( $vbulletin->userinfo );
and if I go to my
http://forum/test.php the result is the print array, and the vaues are ok...
second step I want check this thing from another place... so I use this code:
Code:
$fp = @fopen( "http://forum/test.php", 'r');
if( $fp )
{
$html = "";
while (!feof($fp))
{
$html .= fgets($fp, 128);
}
fclose( $fp );
}
else
{
echo "error! page";
}
echo $html;
and also here I have the print array, but here the username is "unregistered" and all is like there's no user registered....
what can I solve this thing?
thanks in advance!
ghiboz