Community discussion forum

ASP - PHP - JSP ... which is better?

  • 1 month ago

    I am working on a site in which i need it to print text from a file to a form. Right now i am using the include function. Main problem with this is, i want the ability to edit php code in a the box, and with include, the code is processed. I am wondering if there is a way to print the text from a file, ignoring all php code so i get the whole thing in the text area.

    Whatever size fits your website layout. Just don't make it too high pushing the main contents down the page.

    http://www.infysolutions.com

    Outsourcing software development

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 1 month ago

    Hi Peter,

    welcome to developerFusion! All three languages contain methods for reading text from a file... so whichever language you choose, you could do this. For example, in PHP you could do something like this:

    <?
    $fh = fopen('sometemplate.txt','r');
    while (!feof($fh)){
      $line = fgets($fh);
      echo $line;
    }
    fclose($fh);
    ?>
    

    which would spit the contents of the file out (including any server-side markup)

    Hope that helps!

  • 11 days ago

    Greets Peter, and welcome.

    I'm a newcomer here myself, but I guess that's picking between asp, php and jsp and wondering which is best would be a pain in the a$$ for any coder, cause basically, they're all the same. Just use what you like most. I use php.

    Regards.

Post a reply

Enter your message below

Sign in or Join us (it's free).