View Single Post
Old Aug 5th, 2006, 3:09 PM   #1
leo1502
Newbie
 
Join Date: Apr 2006
Posts: 16
Rep Power: 0 leo1502 is on a distinguished road
Problem with include

I've installed an apache server on my computer so I can learn and run some php.

I'm trying the following :

<?php

/**
 *
 *
 * @version $Id$
 * @copyright 2006
 */

echo "test one<br>";
include "sample.shtml";
//include ("http://www.google.com/index.html");
?>

and I get:
Warning: Failed opening 'http://www.google.com/index.html' for inclusion (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in c:\phpdev\www\index.php on line 12

It seems it won't include anything from the web.

What could be the problem?

Thanks.
leo1502 is offline   Reply With Quote