Error in running index page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
mhsohail
Forum Newbie
Posts: 3
Joined: Fri Jun 01, 2007 6:29 am

Error in running index page

Post 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]
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Duplicate thread.. again.

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