I just got the latest XAMPP, ran the setup batch file, and copied my website into the htdocs folder. When I tried accessing it through localhost, I got an include error.
This is the line causing the problem in my .php file (line 15):
- Code: Select all
<?php include "\xampplite\htdocs\StudioC\titlebar.inc"; ?>
When I access the page, I get this error:
- Code: Select all
Warning: include( mpplite\htdocs\StudioC itlebar.inc) [function.include]: failed to open stream: Invalid argument in H:\xampplite\htdocs\StudioC\Outdoor-Corrine\corrine.php on line 15
Warning: include() [function.include]: Failed opening ' mpplite\htdocs\StudioC itlebar.inc' for inclusion (include_path='.;H:\xampplite\php\pear\') in H:\xampplite\htdocs\StudioC\Outdoor-Corrine\corrine.php on line 15
It works fine on my commercial ISP's web server though.
Does anyone know what I'm doing wrong?[/code]