The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-22-2009
EddiRae EddiRae is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 7
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0