Jump to content

error on my code,please help me find the fault.thanks


jossylala

Recommended Posts

this the error i get:Warning:

include(/includes/

config.inc.php)

[ function.include]: failed to

open stream: No such file or

directory in /home2/

infotec7/public_html/

noticeone/index.php on line

1

Warning: include()

[function.include]: Failed

opening '/includes/

config.inc.php' for inclusion

(include_path='.:/usr/lib64/

php') in /home2/infotec7/

public_html/noticeone/

index.php on line 1

Fatal error: Call to

undefined function

selectFrom() in /home2/

infotec7/public_html/

noticeone/index.php on line

3

here is my index.Php file please tell me what i did wrong.

thanks <? include

($HTTP_SERVER_VARS

["DOCUMENT_ROOT"] ."/includes/

config.inc.php");

$page_data = selectFrom("SELECT

description FROM

".TBL_CONTENT." WHERE id = 10");

?>

 

i did change it and i got this error: Warning: include(/includes/

dbuserpass.php)

[ function.include]: failed to

open stream: No such file or

directory in /home2/

infotec7/public_html/

noticeone/includes/

config.inc.php on line 32

Warning: include()

[function.include]: Failed

opening '/includes/

dbuserpass.php' for inclusion

(include_path='.:/usr/lib64/

php') in /home2/infotec7/

public_html/noticeone/

includes/config.inc.phpon

line 32

Warning: include(/includes/

common.inc.php)

[ function.include]: failed to

open stream: No such file or

directory in /home2/

infotec7/public_html/

noticeone/includes/

config.inc.php on line 33

Warning: include()

[function.include]: Failed

opening '/includes/

common.inc.php' for

inclusion (include_path='.:/

usr/lib64/php') in /home2/

infotec7/public_html/

noticeone/includes/

config.inc.php on line 33

Warning: include(/includes/

db.php) [function.include]:

failed to open stream: No

such file or directory in /

home2/infotec7/

public_html/noticeone/

includes/config.inc.phpon

line 34

Warning: include()

[function.include]: Failed

opening '/includes/db.php'

for inclusion

(include_path='.:/usr/lib64/

php') in /home2/infotec7/

public_html/noticeone/

includes/config.inc.phpon

line 34

Warning: include(/includes/

commonfunction.php)

[ function.include]: failed to

open stream: No such file or

directory in /home2/

infotec7/public_html/

noticeone/includes/

config.inc.php on line 35

Warning: include()

[function.include]: Failed

opening '/includes/

commonfunction.php' for

inclusion (include_path='.:/

usr/lib64/php') in /home2/

infotec7/public_html/

noticeone/includes/

config.inc.php on line 35

Fatal error: Call to

undefined function

dbConnection() in /home2/

infotec7/public_html/

noticeone/includes/

config.inc.php on line 37

Based on the path being shown in the error message -

 

Warning: include(/includes/dbuserpass.php)

 

There is no value before the first / in the path.

 

A) What is the line of code with the include() statement?

B) If there is no value for $_SERVER['DOCUMENT_ROOT'], you will either need to get your web host to find and fix what is causing that or you will need to set the value yourself at the start of your script.

 

And what are you using to post the information in narrow columns? Because it is extremely hard to read.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.