Unable to display echo message

Discussion in 'PHP' started by veeravenkatesh, Apr 28, 2007.

  1. #1
    HI Guys,

    i am try to display "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" using echo.

    but when i run this script, nothing is displaying on page.

    can any one help in displaying this echo message when i hit this php page.

    Regards,
    Venkat
     
    veeravenkatesh, Apr 28, 2007 IP
  2. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #2
    View -> Source

    ...and you'll see it's there :)
     
    SoKickIt, Apr 28, 2007 IP
  3. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #3
    as SoCkickit said ... check it in the source .

    Since your browser will interpret the code before displaying it , they will interpret the xml as tags and will place them as code .
     
    commandos, Apr 28, 2007 IP
    jdR!pper likes this.
  4. xubz

    xubz Peon

    Messages:
    18
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    try
    echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?" . ">";
    Code (markup):
    I Get the same problem if I pair "?>"

    Regards,
     
    xubz, Apr 28, 2007 IP
  5. IhateScam

    IhateScam Peon

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Is your PHP turned to "safe"?
    If yes, uncheck it.
    It will work.
     
    IhateScam, Apr 28, 2007 IP
  6. veeravenkatesh

    veeravenkatesh Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    HI guy,

    thanks a lot. its working.

    i am submitting a message recorded using vxml. so any one can help me in save the message in php.
     
    veeravenkatesh, Apr 29, 2007 IP