require_once function

Discussion in 'PHP' started by Shaimaa, Feb 8, 2010.

  1. #1
    I have uploaded a library on a host and there is a file called abc.php in it

    under the path:

    /public_html/fb-platform/php

    and there is another file called index.php under the following path:

    /public_html/shaimaa

    and in the index.php file I want to include abc.php file within the index.php file

    and when I write the following


    require_once '../fb-platform/php/abc.php';  
    PHP:

    or the full path

    a messgae says:

    Fatal error: Class 'abc' not found in /home/mooledco/public_html/shaimaa/index.php on line 13

    How can I solve this problem? I think that the path is written in a wrong way but I don't know how to solve this problem

    Thank you in advance
     
    Shaimaa, Feb 8, 2010 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    require_once ('../fb-platform/php/abc.php');
    PHP:
     
    digitalpoint, Feb 8, 2010 IP
  3. Shaimaa

    Shaimaa Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank You a lot.
    It's done
     
    Shaimaa, Feb 8, 2010 IP