Trying to get a simple include statement to work....
I'm trying to access a file on another server and I keep getting a "failed to open stream" Warning. Not sure if there's something I need to change in my ini file. Here's my code.
tstinclude.php
<?php
$var1 = 'red';
?>
testinc.php
<?php
include 'http://servername/dir/dir/tstinclude.php';
echo $var1;
?>
ERROR MESSAGE:
Warning: main(http://servername/dir/dir/tstinclude.php): failed to open stream: Bad file descriptor in C:\Program Files\Apache Group\Apache2\htdocs\MPI\testinc.php on line 2
Warning: main(): Failed opening 'http://servername/dir/dir/tstinclude.php' for inclusion (include_path='.;c:\php4\pear') in C:\Program Files\Apache Group\Apache2\htdocs\MPI\testinc.php on line 2
ANYONE????