<?php
include 'http://en.wikipedia.org/w/index.php?title=Inclusion&printable=yes';
?>
Why above does not work? it gives error:
Warning: include(http://en.wikipedia.org/w/index.php?title=Inclusion&printable=yes) [function.include]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/myaccount/public_html/test/includetest.php on line 2
Warning: include() [function.include]: Failed opening 'http://en.wikipedia.org/w/index.php?title=Inclusion&printable=yes' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myaccount/public_html/test/includetest.php on line 2
this works:
include 'http://en.wikipedia.org/wiki/Inclusion';
I know it has something to do with those variablse, but its bugging me, how do I get first example work?:rolleyes: