Scheduler with SQL Server 2012

I am having trouble getting the Scheduler to connect to a MS SQL Server database. If I run my php code by itself, I am able to retrieve the data:

<?xml version='1.0' encoding='utf-8' ?>

However, if I try to run the php code through the Scheduler, the php code displays in a pop-up window and doesn’t load any data (see attached screenshot).

Here is the client-side coding that is calling the php file. If I load one of the pre-build xml files, the scheduler loads with no issues at all. This only happens when I try to load data from SQL:

<!doctype html>

Basic initialization html, body{ margin:0px; padding:0px; height:100%; overflow:hidden; }
 
 

Hi,
from your screenshot it looks like the server treats your php file as a static file - writes file contents into http response, instead of calling PHP interpreter for it. The simplest explanation would be that you don’t have a php installed or configured
What server do you use (apache, nginx, iis, etc.) ? Please check this article
php.net/manual/en/install.php