![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script not working..."sort" not working properly.... | Rahulpict | Shell Programming and Scripting | 23 | 03-16-2009 11:13 AM |
| GUI not working... CLI is working fine | bharu_sri | SUN Solaris | 4 | 12-23-2008 12:35 AM |
| sed not working | logic0 | UNIX for Dummies Questions & Answers | 4 | 06-05-2007 03:55 AM |
| not working | Mandab | Shell Programming and Scripting | 2 | 05-15-2007 04:28 AM |
| reg:rm -R is not working | mokri_1980 | SCO | 1 | 09-16-2005 02:13 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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: 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 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|