Page 1 of 1

Strange Errors. Can you help me?

Posted: Fri Apr 03, 2009 8:16 am
by granite
Hello there, men!

I have a website which was working ok on its server.
Now, I've sent it to another host and a few problems came up. I get the following errors in the main page:
Warning: main(../funcoes/inc_funcoes.php) [function.main]: failed to open stream: No such file or directory in c:\Inetpub\vhosts\neohost.com.br\httpdocs\gertaxi\admin\classes\noticia.php on line 5

Warning: main() [function.include]: Failed opening '../funcoes/inc_funcoes.php' for inclusion (include_path='.;./includes;./pear') in c:\Inetpub\vhosts\neohost.com.br\httpdocs\gertaxi\admin\classes\noticia.php on line 5

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in c:\Inetpub\vhosts\neohost.com.br\httpdocs\gertaxi\admin\classes\noticia.php on line 14

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in c:\Inetpub\vhosts\neohost.com.br\httpdocs\gertaxi\admin\classes\noticia.php on line 14

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\Inetpub\vhosts\neohost.com.br\httpdocs\gertaxi\admin\classes\noticia.php on line 15

Warning: fopen(../../swf/noticia.xml) [function.fopen]: failed to open stream: No such file or directory in c:\Inetpub\vhosts\neohost.com.br\httpdocs\gertaxi\admin\classes\noticia.php on line 30

Warning: fwrite(): supplied argument is not a valid stream resource in c:\Inetpub\vhosts\neohost.com.br\httpdocs\gertaxi\admin\classes\noticia.php on line 31

Warning: fclose(): supplied argument is not a valid stream resource in c:\Inetpub\vhosts\neohost.com.br\httpdocs\gertaxi\admin\classes\noticia.php on line 32
Needless to say, there's nothing wrong with the code and this "No such file or directory" thing is a lie. Why is this happening?

Thank you.

Re: Strange Errors. Can you help me?

Posted: Fri Apr 03, 2009 10:37 am
by mattpointblank
Are you 100% sure the file is in the folder it's referencing? That error looks pretty clear to me.

Re: Strange Errors. Can you help me?

Posted: Fri Apr 03, 2009 12:19 pm
by granite
here's the line:
include "../funcoes/inc_funcoes.php";

I'm pretty sure all files are where they're supposed to be, and yeah, that's what it's supposed to load.
Also, it can't be permissions because I've already checked them.