Warning: main() [function.main]: Unable to access

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Warning: main() [function.main]: Unable to access

Postby flashwebb » 03. October 2006 00:14

Warning: main() [function.main]: Unable to access C:/wwwroot/htmlblacklist.php in C:\wwwroot\html\vacation\index.php on line 2

Warning: main(C:/wwwroot/htmlblacklist.php) [function.main]: failed to open stream: No such file or directory in C:\wwwroot\html\vacation\index.php on line 2

Warning: main() [function.include]: Failed opening 'C:/wwwroot/htmlblacklist.php' for inclusion (include_path='.;C:\Program Files\xampp\php\pear\') in C:\wwwroot\html\vacation\index.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at C:\wwwroot\html\vacation\index.php:2) in C:\wwwroot\html\vacation\themes\hardwired\theme.php on line 893

Warning: Cannot modify header information - headers already sent by (output started at C:\wwwroot\html\vacation\index.php:2) in C:\wwwroot\html\vacation\include\functions.inc.php on line 51

Line 2 is this= include($_SERVER['DOCUMENT_ROOT'] . "blacklist.php");

I must have forget to change something in some config file...becuse the page is working when i run IIS

Peter
flashwebb
 
Posts: 4
Joined: 02. October 2006 10:01

Postby Wiedmann » 03. October 2006 12:26

Unable to access C:/wwwroot/htmlblacklist.php
Code: Select all
include($_SERVER['DOCUMENT_ROOT'] . "blacklist.php");

At least a slash is missing here.
(What is the location of "blacklist.php"?)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby flashwebb » 04. October 2006 08:32

Hi
don't mind the slash..it is not that...it will work if i turn on IIS instead...i think i must forget to change something in apache..but i don't what

Peter
flashwebb
 
Posts: 4
Joined: 02. October 2006 10:01

Postby Wiedmann » 04. October 2006 14:34

don't mind the slash..

Please read my last post a second time. In particular the fat text inside the quote.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby flashwebb » 04. October 2006 22:50

Hi
it is
wwwroot/html

Peter
flashwebb
 
Posts: 4
Joined: 02. October 2006 10:01

Postby Wiedmann » 04. October 2006 23:11

it is
wwwroot/html

That is the answer for which question?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 31 guests