Ok, now I see: the page is not complete. If you check the headers you will see that the server returns status code 500
:
HTTP/1.1 500 Internal Server Error
Connection: close
Content-Type: text/html
Date: Tue, 11 Mar 2014 17:16:39 GMT
Server: Apache
Transfer-Encoding: chunked
X-Powered-By: PleskLin
You should check the Apache error log, and also the PHP error log. You could also enable the error reporting by adding:
error_reporting(E_ALL);
to the top of page, by reloading the page you should see eventual errors in the script.
If my code works perfectly before. then is the problem is the php compiler on my webhosting sites? or any chenges from the new PHP version? what do you think. this code also run perfectly on my localhost.
Yes, it could be a problem with the hosting configuration if, for example, your version of PHP loads a module that is missing in the hosting version.