problem echo not displaying text on web

Discussion in 'PHP' started by zalearth, Jul 5, 2010.

  1. #1
    when i try using webhosting to test my web system... there is no text displayed....
    no problem occur while using standalone server...

    i dont know what is the problems here...
    is it bcoz the text is to long that webserver cannot process the output?

    please help me solve this. ty

    here my code ...

     
    zalearth, Jul 5, 2010 IP
  2. Kaimi

    Kaimi Peon

    Messages:
    60
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    echo $text_papar_utama = paparan_utama($nama_sekolah, $tahun, $content);

    replace with

    echo paparan_utama($nama_sekolah, $tahun, $content);
     
    Kaimi, Jul 5, 2010 IP
  3. webal

    webal Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    try this

    $text_papar_utama = paparan_utama($nama_sekolah, $tahun, $content);
    echo $text_papar_utama;
     
    webal, Jul 5, 2010 IP
  4. zalearth

    zalearth Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    still cant fix it... i've tried using str_split but still no use...
    but when i change from .php to .html... text appear but everything is messed...
    i dont know wat to do now...
     
    zalearth, Jul 5, 2010 IP
  5. zalearth

    zalearth Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i try code like this
    and what shows on my webpage source code is only this...
    it seem like after <?php.... code is gone

    for ur info... my server use php ver. 5.2.13...
     
    zalearth, Jul 5, 2010 IP
  6. zalearth

    zalearth Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i just found out that everything written after function will be missing... like this...

    and it will only show "test before function" on my webpage...

    i dont know how to solve this prob... pls someone help me
     
    zalearth, Jul 5, 2010 IP
  7. pig2cat

    pig2cat Active Member

    Messages:
    299
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #7
    turn error reporting on or run the script via cli to see what error it gets
     
    pig2cat, Jul 5, 2010 IP
  8. zalearth

    zalearth Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    error reporting is disable by admin... i cant change that...
    i didnt recieve any error on my page...
    currently im using free webhosting just to evaluate my system...
    and what is cli?
     
    zalearth, Jul 5, 2010 IP