T
tyler
Guest
<? include 'http://website.com/newstat.html';
echo $s_time; ?>
This does not return anything. Just blank.
But if i paste the contents of newstat.html into, like this:
<?php
$s_time = "3esh";
$server_name = "Big comp";
echo $s_time; ?>
It works fine. How can I make the include work, the html file looks like this:
<?
$s_time = "3esh";
$server_name = "Big comp";
?>
It was previously working as html. I have now changed it to PHP.
the include file returns this:
<?
$s_time = "2009/04/23";
$server_name = "NAME";
$admin_email = "[email protected]";
$online_id[]="032511";$online_id[]="025461";$online_id[]="06eb14";
$online_account[] = "account1";$online_account[] = "account2";$online_account[] = "account3";
$online_password[]= "pass1";$online_password[]= "pass2";$online_password[]= "*****";
?>
It seems to break the PHP whenever I hadd more than one array.
echo $s_time; ?>
This does not return anything. Just blank.
But if i paste the contents of newstat.html into, like this:
<?php
$s_time = "3esh";
$server_name = "Big comp";
echo $s_time; ?>
It works fine. How can I make the include work, the html file looks like this:
<?
$s_time = "3esh";
$server_name = "Big comp";
?>
It was previously working as html. I have now changed it to PHP.
the include file returns this:
<?
$s_time = "2009/04/23";
$server_name = "NAME";
$admin_email = "[email protected]";
$online_id[]="032511";$online_id[]="025461";$online_id[]="06eb14";
$online_account[] = "account1";$online_account[] = "account2";$online_account[] = "account3";
$online_password[]= "pass1";$online_password[]= "pass2";$online_password[]= "*****";
?>
It seems to break the PHP whenever I hadd more than one array.