simple echo

Discussion in 'PHP' started by rigas, Jan 8, 2010.

  1. rigas

    rigas Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    hello is not there. at mozila firefox i get a blank page. at IE7 i get a pop up that asks if i want to open it and then nothing
     
    rigas, Jan 9, 2010 IP
  2. rigas

    rigas Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    yes i have them installed and the file is at localhost
     
    rigas, Jan 9, 2010 IP
  3. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #23
    What is the name of the folder you have placed test.php into ?
     
    MyVodaFone, Jan 9, 2010 IP
  4. rigas

    rigas Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #24
    C:\xampp\htdocs

    running the codes at this folder, typing http://127.0.0.1/test.php at the browser i managed to see "hello" at the browser :D

    
    $xp = new XsltProcessor();
    $xsl = new DomDocument;
    $xsl->load('p06166.xsl');
    $xp->importStylesheet($xsl);
    $xml_doc = new DomDocument;
    $xml_doc->load('p06166.xml');
    echo $xp->transformToXML($xml_doc);
    
    PHP:
    running the code above i am trying to preview the xml to the browser applying the templates contained in the xsl. i only get a banch of characters. no stylesheet is applied. any ideas? tnx for the help so far :)
     
    rigas, Jan 9, 2010 IP