Forum Moderators: coopster
when i try to access a page with this command
<A href="main.php?page=eg/eg">
it doesnt work i get an error:
Warning: main(): Failed opening '' for inclusion (include_path='.:C:\PHP\pear') in C:\arcticfusion\main.php on line 73
ive try not using the <?php
if (!$php) {
$php = "php";
}
?> command and i still get the same answer from it..anyne can help wud be great:)
If you make a test page called 'test.php', place the include command in it, with the correct path to the include folder, does it include it?
If it doesn't, and you still get this error, you probably need to set the include path in the apache httpd.conf file, that lives in the apache group/apache2/conf/httpd.conf file, bottom of the file:
<VirtualHost 127.0.0.1:80>
ServerName yoursite
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "c:/websites/yoursite"
<Directory "c:/websites/yoursite">
AllowOverride None
</Directory>
php_value include_path ".;c:/yoursite/includes"
DirectoryIndex index.php index.html index.htm
</VirtualHost>
if you haven't done this php doesn't know where to look for the includes