fatal error!:

require_once() error

Page 1 of 1

5 Replies - 993 Views - Last Post: 16 July 2010 - 06:02 PM Rate Topic: -----

#1 AjusJudy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 20-February 08

fatal error!:

Posted 16 July 2010 - 04:43 AM

what kind of error is this? my page was just running fine.

Warning: require_once(../php/main.php) [function.require-once]: failed to open stream: No such file or directory in.................... line 7

Fatal error: require_once() [function.require]: Failed opening required '../php/main.php' (include_path='.;C:\php5\pear') in..........................line 7.
Is This A Good Question/Topic? 0
  • +

Replies To: fatal error!:

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3524
  • View blog
  • Posts: 10,169
  • Joined: 08-June 10

Re: fatal error!:

Posted 16 July 2010 - 04:46 AM

it’s as stated in the error message, the script couldn’t find the referenced file.
Was This Post Helpful? 2
  • +
  • -

#3 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,495
  • Joined: 23-August 08

Re: fatal error!:

Posted 16 July 2010 - 04:47 AM

Seems pretty clear to me? You're saying you require the file main.php to be included in your script from the location ../php, but it's not there.

EDIT: Damn, ninja'd again!

This post has been edited by JackOfAllTrades: 16 July 2010 - 04:47 AM

Was This Post Helpful? 0
  • +
  • -

#4 AjusJudy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 20-February 08

Re: fatal error!:

Posted 16 July 2010 - 05:26 AM

View PostJackOfAllTrades, on 16 July 2010 - 03:47 AM, said:

Seems pretty clear to me? You're saying you require the file main.php to be included in your script from the location ../php, but it's not there.

EDIT: Damn, ninja'd again!



the file is right there. main.php is inside php folder. i don't understand.
Was This Post Helpful? 0
  • +
  • -

#5 Nakor  Icon User is offline

  • Professional Lurker
  • member icon

Reputation: 444
  • View blog
  • Posts: 1,492
  • Joined: 28-April 09

Re: fatal error!:

Posted 16 July 2010 - 05:55 AM

if it looks like this
require_once(../php/main.php)


try changing it to something like this
require_once("../php/main.php")


Or you might try posting that block of code so we can maybe see what's going on there
Was This Post Helpful? 1
  • +
  • -

#6 Valek  Icon User is offline

  • The Real Skynet
  • member icon

Reputation: 542
  • View blog
  • Posts: 1,713
  • Joined: 08-November 08

Re: fatal error!:

Posted 16 July 2010 - 06:02 PM

Are you trying to get to a file inside a 'php' folder in the directory the script is running in, or one directory 'above' it? If you're aiming for the same directory, it'd be one dot, not two.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1