Page 1 of 1

include path problem

Posted: Sun Jul 22, 2007 12:33 am
by m2babaey
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?

Posted: Sun Jul 22, 2007 12:46 am
by m2babaey
solved!
the problem was something else