I'm having a problem with some .php files that I wrote to implement the PHPMailer on a website. I wrote all the code locally using WAMP Server (ver 2.4) and, when testing, it all worked fine. And then the problems began, because when I uploaded the files on the server in which the website is located, instead of redirecting to the .php files and execute them, I obtained only blank pages.
I thought that the problem could be the folders path, but I checked them and they where correct. At that point, I thought that the problem could have be the PHP version that was older on WAMP server (ver 5.4.16) than in the website server (ver 5.4.45). So I tried to install PHP ver 5.4.45 on my WAMP server too, but I had an error where it was said that this PHP version was not compatible with the Apache version. So I tried to install another version of Apache as well, but then it didn't work because another version of PHP was needed.
After that, I completely uninstalled WAMP server and installed the latest version (ver 3.0.0) and tried executing the .php files with PHP ver 5.6.16, and actually they worked without any problem.
After that, I tried to install PHP 5.4.45 on this new version of WAMP server too, but gave me same problem of the Apache version. I can't really understand what the problem could be, someone has had this problem or similar to me before and solved it?
I used this tutorial to install the PHP ver 5.4.45 on WAMP (http://forum.wampserver.com/read.php?2,125016,125018) and I did all the steps, so I can't understand why it does not work on the server.
A blank, white page when viewing a PHP page usually means there's been a fatal error which has stopped the page from loading.
By default, errors are not set to be displayed on the screen, but they will be in your server log files. These will usually be called something like apache logs, or error logs. Your web host will help you find these.
These will then tell you what the error is, on what page, and what line number.