Hello
i have setted up a long time ago a server with php4 and php5 at the same time php5 as cgi.
if you go to blablabla.php it wil be parsed trough php4 is you use blablabla.php5 then it will be parsed by php5.
the prob is every function that uses fopen kind of things, it will not run on php4 and it will run on php5, examples
SOLUTION WAS FOUND
(no it isn't the allow fopen config in server.ini)
the code behind the script test.php(5) (both files have the same script)
Code:
<?
$site = file_get_contents("http://www.colddot.nl/awstats/awstats.pl?month=".date("m")."&year=".date("Y")."&output=main&config=www.colddot.nl&framename=mainright");
preg_match_all('#<b>(.*?MB|GB|KB|Bytes)<\/b>#i',$site, $gb2);
$traffic = preg_replace("#(.*)<b>#","",$gb2[1][0]);
$traffic2 = preg_replace("#(.*)<b>#","",$gb2[1][1]);
echo $traffic+$traffic2."<br>";
?>
Greets ColdDoT
//EDIT SOLUTION
i was working on php 4.4.2 so i upgraded to 4.4.3 and my prob was gone
Recent comments
10 hours 31 min ago
11 hours 31 min ago
15 hours 18 min ago
16 hours 32 min ago
20 hours 8 min ago
1 day 3 hours ago
1 day 12 hours ago
1 day 13 hours ago
2 days 4 hours ago
2 days 7 hours ago