myspace script errors

Discussion in 'PHP' started by usmcpv, Sep 25, 2006.

  1. #1
    I am trying to install a myspace script on my server. I am getting errors on every page except the main page, such as "Warning: main(ROOT_DIR/include/db.php): failed to open stream: No such file or directory in...."

    My website is 4profiles.net. Can someone familiar with this script please tell me how this is fixed?

    I have never had a problem like this before with any other scripts. I tried editing the config.php file in many ways and I still get this error. I'm not sure if the problem is because I am running it on a windows server.
     
    usmcpv, Sep 25, 2006 IP
  2. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Judging from the error, the program cannot find the file because it cannot find the directory "ROOT_DIR/include/"

    If you have a variable which equals "ROOT_DIR" in the configuration file, I would change that to the actual root directory on your machine for the site.

    For instance, "c:/mywebsite" if the files are located in the directory "c:/mywebsite/include"
     
    clancey, Sep 25, 2006 IP
  3. usmcpv

    usmcpv Peon

    Messages:
    283
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I tried that and still got the same error. I think I need linux and apache. I don't think it's ISS and windows compatible. Does anyone know if this is the case or had the same problem? I have installed the free script without problem.
     
    usmcpv, Sep 26, 2006 IP
  4. JosS

    JosS Guest

    Messages:
    369
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have the same script. Make sure that file is uploaded. For some reason my upload kept cutting that folder upload out, for some unknown reason.
     
    JosS, Sep 26, 2006 IP
  5. usmcpv

    usmcpv Peon

    Messages:
    283
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It turns out this script needs apache to run. It does not work on IIS. After changing to a linux server it works. Thanks
     
    usmcpv, Sep 27, 2006 IP