Page 1 of 1

Error in running index page

Posted: Fri Jun 01, 2007 1:49 pm
by mhsohail
Everah | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


hi i am new member of this forum and I need [size=150][color=green]your[/color][/size] [s][b]ur[/b][/s] your help please, I am running win Xp , using [b]PHPTriad[/b] for running website on my system. I place the project in htdocs and try to run it on local host but it give me error and i am not get success to solve this problem can u you guys help in this , that how can I solve this problem 
thanks in adv advance. I'll show you the error which is coming 

[b]Warning:[/b] Failed opening 'c:/apache/htdocs/includes/config.inc.php' for inclusion (include_path='.;c:\apache\php\pear') in c:\apache\htdocs\ielts4u\index.php on line 3 

[b]Warning:[/b] Failed opening 'INCLUDE_DIRheader.php' for inclusion (include_path='.;c:\apache\php\pear') in c:\apache\htdocs\ielts4u\index.php on line 39 


[b]Warning: [/b]Failed opening 'INCLUDE_DIRleftmenu.php' for inclusion (include_path='.;c:\apache\php\pear') in c:\apache\htdocs\ielts4u\index.php on line 46 



[b]here is the include line in index.php[/b]

Code: Select all

<? 
session_start();
include ($HTTP_SERVER_VARS['DOCUMENT_ROOT']."/includes/config.inc.php"); 
?>

Everah | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Fri Jun 01, 2007 1:53 pm
by RobertGonzalez
Is the file you are trying to include in that path? Have you tried just calling the file using:

Code: Select all

<?php
include 'filename.php'; // or the actual path from where the file is
?>
Also, $HTTP_SERVER_VARS is deprecated. You should be using $_SERVER.

Posted: Fri Jun 01, 2007 1:54 pm
by feyd
Duplicate thread.. again.

You are near the acceptable limits friend. I would not push your luck further.