extra newline characters when ftp'ing php scripts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matthew Crouch

    extra newline characters when ftp'ing php scripts

    I just used FileZilla (on windows) to download a site for testing in IE,
    and it seems a couple of newline characters are added to all the php
    scripts.

    This isn't much of a problem until I get to my AJAX stuff, where I have
    to include a couple of scripts before setting the xml content-type header.

    All the scripts are also double-spaced, which I suspect is the same
    issue Anyone seen this?
  • petersprc@gmail.com

    #2
    Re: extra newline characters when ftp'ing php scripts

    Maybe try downloading in binary mode instead of ascii? The Transfer ->
    Transfer Type -Binary option might help.

    Matthew Crouch wrote:
    I just used FileZilla (on windows) to download a site for testing in IE,
    and it seems a couple of newline characters are added to all the php
    scripts.
    >
    This isn't much of a problem until I get to my AJAX stuff, where I have
    to include a couple of scripts before setting the xml content-type header.
    >
    All the scripts are also double-spaced, which I suspect is the same
    issue Anyone seen this?

    Comment

    • petersprc@gmail.com

      #3
      Re: extra newline characters when ftp'ing php scripts

      You might try viewing it in a diff editor too if that's the problem.

      peters...@gmail .com wrote:
      Maybe try downloading in binary mode instead of ascii? The Transfer ->
      Transfer Type -Binary option might help.
      >
      Matthew Crouch wrote:
      I just used FileZilla (on windows) to download a site for testing in IE,
      and it seems a couple of newline characters are added to all the php
      scripts.

      This isn't much of a problem until I get to my AJAX stuff, where I have
      to include a couple of scripts before setting the xml content-type header.

      All the scripts are also double-spaced, which I suspect is the same
      issue Anyone seen this?

      Comment

      • Jerry Stuckle

        #4
        Re: extra newline characters when ftp'ing php scripts

        Matthew Crouch wrote:
        I just used FileZilla (on windows) to download a site for testing in IE,
        and it seems a couple of newline characters are added to all the php
        scripts.
        >
        This isn't much of a problem until I get to my AJAX stuff, where I have
        to include a couple of scripts before setting the xml content-type header.
        >
        All the scripts are also double-spaced, which I suspect is the same
        issue Anyone seen this?
        Matthew,

        This isn't a PHP problem. Rather, you should be looking in the
        FileZilla support forums on SourceForge.

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        Working...