Warning: fopen(http://localhost/index.php) [function.fopen]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\root\generate_html.php on line 16
Fatal error: Maximum execution time of 30 seconds exceeded in C:\root\generate_html.php on line 16
Server je Apache 2.2 i u php.ini je podeseno allow_url_fopen = On
Deo koda gde dolazi do greske je:
Code:
$url = "http://localhost/index.php";
$htmlpage = fopen($url, "r"); //16ta linija
$url = "http://localhost/index.php";
$htmlpage = fopen($url, "r"); //16ta linija
Probo sam fopen("index.php", "r"), sto radi, ali mi naravno ne daje generisan HTML
Probao sam i ne primer fopen("http://www.php.net/index.php", "r"), sto takodje radi...
znachi u sushtini ne radi samo sa localhost