ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

/r/n on creating a text file

May 09, 2011 4:16pm

Subscribe [3]
  • #1 / May 09, 2011 4:16pm

    jgreenstein

    29 posts

    i am having a real hard time creating a text file in the right format

    it seems to be related to the way the line breaks are seen. do i need to create /r/n line breaks?

    how do i create the dos line breaks in expression engine?

    thanks

    Jeff

  • #2 / May 10, 2011 4:26am

    John Henry Donovan

    12339 posts

    Jeff,

    Can you tell us some more context around what you are trying to do please?
    Where are you trying to create your text file? Using an EE template of generating one from PHP?

  • #3 / May 10, 2011 12:33pm

    jgreenstein

    29 posts

    i think i figured it out

    i am curious though if am creating a php file can i put ee tags inside php or do those need to be separate? i think what i have below does not work…

    <?php

    {XXX}...
    ?>

  • #4 / May 11, 2011 9:40am

    Sue Crocker

    26054 posts

    Hi, jgreenstein.

    You can use PHP in EE templates, but you have to set the template to allow PHP and put it in either input or output mode.

    Input mode is normally outside a loop such as the exp:channel:entries tag, and output mode is inside.

    But oftentimes you might not need to use PHP at all, it depends on what you’re trying to do.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases