first time posting here.
So here it goes: I came across a very strange error and after wasting a lot of time debugging the file I found out, to my surprise, that what was causing the error were some comment lines with //.
In my .php file there was something like this:
<table>
<tr>
<td>
<?php
//se porto alegre
if($cd_empr == 1){ ?>
<a href="../home/index.php">Home</a> ><a href="../porto_poa/porto_poa_apresentacao.php"> Porto de Porto Alegre</a> > Operadores
<?php
//se pelotas
}else if($cd_empr == 2){ ?>
<a href="../home/index.php">Home</a> ><a href="../porto_pel/porto_pel_apresentacao.php"> Porto de Pelotas</a> > Operadores
<?php } ?>
</td>
</tr>
</table>
This was causing the page to just go blank and on FireBug the only error message I get is "NetworkError: 500 Internal Server Error".
When I erase those // comment lines or replace them with /* comment */, the error is gone.
Does this have anything to do with the server's PHP Version (which is 5.3.3)? I'm asking this because I have many other files like this that are running OK on a local machine, but when I tried running them on a remote hosting server I stumbled with this problem.
Thanks in advance and sorry for the dumb question.
Edit: updated with the actual code as asked.