problem with simple php code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • alice@fearofdolls.com

    #16
    Re: problem with simple php code

    >============== ====

    Maybe I'll try it in Word.
    >
    >
    (Top posting fixed)
    >
    Word is definitely the WRONG way to go. You need an ASCII text editor,
    not a word processor.
    >
    In fact, WORD will give you exactly the problem you're seeing, even if
    you save it in text format. Even the x'93' and x'94" characters.
    >
    What should I be creating it in then? The book I'm reading doesn't
    really say. I new that Notepad would allow me to save it with the .php
    name.
    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • Geoff Muldoon

      #17
      Re: problem with simple php code

      alice@fearofdol ls.com says...
      That must be the problem, but I am using notepad. What else can I use
      that would not change it?
      Heaps of other code/text editors, my favourite for PHP is Crimson Editor,
      syntax highlighting, built-in FTP. Google for it.

      Geoff M

      Comment

      • Jerry Stuckle

        #18
        Re: problem with simple php code

        alice@fearofdol ls.com wrote:
        Jerry Stuckle wrote:
        >
        >>alice@fearofd olls.com wrote:
        >>
        >>>alice@fearof dolls.com wrote:
        >>>
        >>>
        >>>>>Are you really using MS Notepad, or are you using something else? x'93'
        >>>>>and x'94' are the left and right quote symbols in some other programs
        >>>>>like Wordpad, but I haven't seen Notepad save them that way.
        >>>>>
        >>>>
        >>>>That must be the problem, but I am using notepad. What else can I use
        >>>>that would not change it?
        >>>>
        >>>>
        >>>>
        >>>>>Also, you're transferring ascii data, so you should be using ascii
        >>>>>transfer mode. But that won't cause this problem.
        >>>>>
        >>>>
        >>>Well transfering it in ASCII didn't help.
        >>>
        >>
        >>No, ASCII just affects the newline characters. But if you're uploading
        >>the a Unix system you'll see them each line has an extra ^M in a Unix
        >>editor such as vim.
        >>
        >>I've tried it here on W2K and W2K3 Server, and I haven't been able to
        >>duplicate it. But I find it easy to do in word processors.
        >>
        >
        >
        Well here's another problem...if I create it in word, I can't save it
        as a .php file. I could save it as .txt then change it, but won't that
        mess it up?
        >
        >
        >>It's a very interesting problem. Wish I had an answer for you.
        >>
        >>--
        >>============= =====
        >>Remove the "x" from my email address
        >>Jerry Stuckle
        >>JDS Computer Training Corp.
        >>jstucklex@att global.net
        >>============= =====
        >
        >
        True, you do have to rename it. But renaming it can't screw up the file
        - it's already been screwed up by Word.

        I have no idea why notepad doesn't work for you. It always has for me.

        As for other possibilities - try googling for

        notepad replacement

        A bunch of them come up, most of them free. Some people I know use
        Notepad2. I personally like textpad, but that's a commercial product
        (only $30, but worth it, IMHO).


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

        Comment

        • alice@fearofdolls.com

          #19
          Re: problem with simple php code


          Jerry Stuckle wrote:
          alice@fearofdol ls.com wrote:
          Jerry Stuckle wrote:
          >alice@fearofdo lls.com wrote:
          >
          >>alice@fearofd olls.com wrote:
          >>
          >>
          >>>>Are you really using MS Notepad, or are you using something else? x'93'
          >>>>and x'94' are the left and right quote symbols in some other programs
          >>>>like Wordpad, but I haven't seen Notepad save them that way.
          >>>>
          >>>
          >>>That must be the problem, but I am using notepad. What else can I use
          >>>that would not change it?
          >>>
          >>>
          >>>
          >>>>Also, you're transferring ascii data, so you should be using ascii
          >>>>transfer mode. But that won't cause this problem.
          >>>>
          >>>
          >>Well transfering it in ASCII didn't help.
          >>
          >
          >No, ASCII just affects the newline characters. But if you're uploading
          >the a Unix system you'll see them each line has an extra ^M in a Unix
          >editor such as vim.
          >
          >I've tried it here on W2K and W2K3 Server, and I haven't been able to
          >duplicate it. But I find it easy to do in word processors.
          >

          Well here's another problem...if I create it in word, I can't save it
          as a .php file. I could save it as .txt then change it, but won't that
          mess it up?

          >It's a very interesting problem. Wish I had an answer for you.
          >
          >--
          >============== ====
          >Remove the "x" from my email address
          >Jerry Stuckle
          >JDS Computer Training Corp.
          >jstucklex@attg lobal.net
          >============== ====
          >
          True, you do have to rename it. But renaming it can't screw up the file
          - it's already been screwed up by Word.
          >
          I have no idea why notepad doesn't work for you. It always has for me.
          >
          As for other possibilities - try googling for
          >
          notepad replacement
          >
          A bunch of them come up, most of them free. Some people I know use
          Notepad2. I personally like textpad, but that's a commercial product
          (only $30, but worth it, IMHO).
          >
          >
          Well that was it. I found a program called Notepad++, and after using
          that it worked fine. Apparently Windows Notepad adds something to it
          that doens't translate well.
          Thanks :-)
          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstucklex@attgl obal.net
          =============== ===

          Comment

          • Geoff Berrow

            #20
            Re: problem with simple php code

            Message-ID: <1164168766.688 071.280280@e3g2 000cwe.googlegr oups.comfrom
            alice@fearofdol ls.com contained the following:
            >Well that was it. I found a program called Notepad++, and after using
            >that it worked fine. Apparently Windows Notepad adds something to it
            >that doens't translate well.
            >Thanks :-)
            That's the one I use. It's great.

            Do you have your computer set to hide common extensions?
            (clutching at straws here...)

            --
            Geoff Berrow (put thecat out to email)
            It's only Usenet, no one dies.
            My opinions, not the committee's, mine.
            Simple RFDs http://www.ckdog.co.uk/rfdmaker/

            Comment

            Working...