Not sure why not working

Hello,
I am very new to UNIX and PHP. I am using the Apached on a Windows platform. I am learning PHP and I am trying to create a variable with an XML string concatenated together on multiple lines.

When I run this code, I am not getting any results. I am not sure why.

Here is the code:

<?php
$a = 1111;
$b = 2222;
$c = 3333;
$d = 4444;
$e = 5555;
$f = 6666;
$str = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><Transmission><EdProviderData><DetailData><Detail>";
$str = $str + "<IN_PROV>$a</IN_PROV> <IN_CRSE>$b</IN_CRSE> <IN_CDATE>$c</IN_CDATE> <IN_ZIP>$d</IN_ZIP>";
$str = $str + "<IN_LICENSE>$e</IN_LICENSE> <IN_NAME>$f</IN_NAME> </Detail> </DetailData> </EdProviderData> </Transmission>";
function test()
{
   echo global $str;
}
test();
?>

Thanks for your help in advance!!
Eddi Rae

Turn on display_errors then you should see the probkem.

Not used PHP for ages, but do you not use dots (.) to concat strings?

I tried to turn on display_errors in the ini file in several different ways, but the server will not start. I don't see any reference as to the syntax for this. I also don't see where to place in the ini file.

I also tried to turn on in my code... did not display anything.
ini_set('display_errors', true);

As for the dot ... That is what I need to be in my string. How would you do that?

I am more of a Microsoft developer, not UNIX, so this is all new to me.

Thanks!!
Eddi Rae

He was talking about replacing "+" by ".". PHP uses dot for string concatenation, not +.

Thanks!! That was the error. I also found the error.log file in the logs folder of the Apache server. This showed me what my errors were as well.

Thanks again for all your help!!
Eddi Rae