Strange Errors. Can you help me?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
granite
Forum Commoner
Posts: 44
Joined: Mon Feb 09, 2009 10:52 am

Strange Errors. Can you help me?

Post 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.
mattpointblank
Forum Contributor
Posts: 304
Joined: Tue Dec 23, 2008 6:29 am

Re: Strange Errors. Can you help me?

Post by mattpointblank »

Are you 100% sure the file is in the folder it's referencing? That error looks pretty clear to me.
granite
Forum Commoner
Posts: 44
Joined: Mon Feb 09, 2009 10:52 am

Re: Strange Errors. Can you help me?

Post 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.
Post Reply