Warning: noob! php require directory not found

Status
Not open for further replies.

boneless

New Member
Messages
3
Reaction score
0
Points
0
hello guys!

im new to x10hosting and im glad that i found this cool site :cool:

i would like to inquire my problem about an error appearing in my website

in my local machine... the require is working but when i uploaded it into my site hosted here at x10hosting, im having some problems with require() in php

Code:
[B]Warning[/B]:  require(config.inc.php) [[URL="http://boneless.x10hosting.com/function.require"]function.require[/URL]]: failed to open stream: No such file or directory in [B]/home/boneless/public_html/includes/MySQL.inc.php[/B] on line [B]33[/B]

[B]Fatal error[/B]:  require() [[URL="http://boneless.x10hosting.com/function.require"]function.require[/URL]]: Failed opening required 'config.inc.php' (include_path='.:/x10hosting/php1/lib/php') in [B]/home/boneless/public_html/includes/MySQL.inc.php[/B] on line [B]33[/B]

the mysql.inc.php is located in my INCLUDES folder together with my config.inc.php. i tried also putting require("includes/config.inc.php") but nothing happens... how can i resolve this one? :frown:
 

boneless

New Member
Messages
3
Reaction score
0
Points
0
thanks for the reply :happysad:

x10hosting upgraded my account into an intermediate account.

but unfortunately, the problem is still the same. how can i resolve this issue?
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
That problem isn't caused by what version of PHP you have configured for your account.

Make sure that the filenames and the relative paths to the files are correct.

Is the file MySQL.inc.php being included by a script in another directory?
 

boneless

New Member
Messages
3
Reaction score
0
Points
0
my Functions.inc.php and MySQL.inc.php is located at the public_html/includes folder together with config.inc.php

PHP:
/*--------------------------------------------------------------
    Server Side Includes (SSI)
  -------------------------------------------------------------- */    
    require('includes/Functions.inc.php');
    require('includes/MySQL.inc.php');
/*-------------------------------------------------------------- */

i coded this application using Apache 2.2, PHP5 and MySQL5 in windows machine. how can i fix this problem :(
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
If they are all in the same folder you would not want to use includes/ So it should just be
Functions.inc.php
MySQL.inc.php
without the includes/ before it.

-Corey
 
Status
Not open for further replies.
Top