include path problem

Discussion in 'PHP' started by promotingspace.net, Jul 21, 2007.

  1. #1
    Hi
    I had my site on local and used no path for my includes. I mean all files where in the same directory and i simply used include ' file.php '; and had no problem
    But now I have uploaded the files ( all in the same directories of course) but receive errors like this:
    Warning: main(db.php) [function.main]: failed to open stream: No such file or directory in /home/t44kf3ar/public_html/signup1.php on line 4

    Warning: main(db.php) [function.main]: failed to open stream: No such file or directory in /home/t44kf3ar/public_html/signup1.php on line 4

    Warning: main(db.php) [function.main]: failed to open stream: No such file or directory in /home/t44kf3ar/public_html/signup1.php on line 4

    Warning: main() [function.include]: Failed opening 'db.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/t44kf3ar/public_html/signup1.php on line 4
    what is the fastest solution?
    what is the best solution?
     
    promotingspace.net, Jul 21, 2007 IP
  2. promotingspace.net

    promotingspace.net Peon

    Messages:
    361
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    solved!
    the problem was something else
     
    promotingspace.net, Jul 21, 2007 IP