Nie bardzo rozumiem o co może chodzic bo jak wyświetlam plik index.php z zawartością:
CODE
<html>
<body>
<h1>It works!</h1>
<?php
echo("Hello World");
phpinfo();
?>
</body>
</html>
to wszystko dziąła jak trzeba - czyli go wyświetla
a jak wyświetlam plik z zawartością jak poniżej to nie działa
Kod
<html>
<head>
</head>
<body>
<?php
# Include http library
include("LIB_http.php");
# Define the target and referer web pages
$target = "http://www.schrenk.com/publications.php";
$ref = "http://www.schrenk.com";
# Request the header
$return_array = http_get_withheader($target, $ref);
# Display the header
echo "FILE CONTENTS \n";
var_dump($return_array['FILE']);
echo "ERRORS \n";
//var_dump($return_array['ERROR']);
echo "STATUS \n";
//var_dump($return_array['STATUS']);
?>
</body>
</html>
<head>
</head>
<body>
<?php
# Include http library
include("LIB_http.php");
# Define the target and referer web pages
$target = "http://www.schrenk.com/publications.php";
$ref = "http://www.schrenk.com";
# Request the header
$return_array = http_get_withheader($target, $ref);
# Display the header
echo "FILE CONTENTS \n";
var_dump($return_array['FILE']);
echo "ERRORS \n";
//var_dump($return_array['ERROR']);
echo "STATUS \n";
//var_dump($return_array['STATUS']);
?>
</body>
</html>
może chodzi o uprawnienia do pliku ale nie wiem jak je zmienic
Mój system:
Windows XP SP2
Apache 2.2
PHP 5.2.5 (CLI)