I am calling a PHP script to download a file by clicking on HTML anchor <a>. I place some debugging information in that script and want to print it out during that script execution. However, this does not get printed out.
Example: I have an HTML anchor such as:
<a href="PHP/fileDownload.php?upload_id=1"> ▼ </a>
In the fileDownload.php script I have:
<?php
include 'ChromePhp.php';
require_once 'mysqlConnect.php';
echo "test\n test\n test\n test\n test\n test\n test\n test\n test\n test";
...
After I click the link, no test string contained within echo statement is printed out.
Could anybody clarify this for me, please? Is there a way to make echo statement work in my situation?
ini_set('display_errors',1); error_reporting(E_ALL);to the top of your script and refresh the page.