Upload does not work online, part of the Upload class code appears on the screen

3

I created a project in PHP using the CodeIgniter that uploads an image to the server. Locally it works perfectly, however, online, hosted on a Locaweb server ( Windows Platform ) presents an error, when I upload it appears part of the code of the class Upload , the pure source code!

I do not understand, I have already looked at the entire file and can not find a problem, but I will continue to search. I just want to know how this is possible, should the source code not always be hidden?

    
asked by anonymous 01.07.2014 / 15:16

1 answer

3

When part of the source code is displayed on the screen, it means that your code has short_open_tag <? and on the server this policy is disabled. To resolve this change all occurrences of:

<?

by

<?php
    
01.07.2014 / 15:22