hi, I am new to PHP and am trying to set up a server system on my Win98 pc as localhost using php,
Apache and MySql.
It all seems to work on a basic level, I can execute the classic echo "hello world" stuff fine,
However I cannot include files -I get the error message
Warning: Failed opening 'testinclude.php' for inclusion (include_path='..')
in c:\program files\apache group\apache\htdocs\test\test.php3 on line 2
The file to be included is on the same directory as the calling file, I have the following in my php.ini
file in the windows directory
include_path = ".;C:\Program Files\Apache Group\Apache\htdocs\Test"
As I understand it the first part sets the path to "same directory" and the second is more explicit
both should allow php to find the included file, which incidentally just echos "goodbyeworld"
nothing complicated!
The first file has the code:
<body>
<?php
$myvar = "Hello World"; echo $myvar;
include("testinclude.php");
?>
</body>
The testinclude file is:
<body>
<?php
$myvar = "Goodbye World"; echo $myvar;
?>
</body>
When I point the browser to the first file I get the output "hello world" then the error message described above.
I am a reasonably competent VB programmer but I have obviously been spoilt by visual development environments
and am missing the basics.
Can anybody help.