PHP is rendered like a txt file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kinney.aaron@gmail.com

    PHP is rendered like a txt file

    I am new to PHP, trying to learn the ropes if you will. Now, I
    published a .php file to a web server through FTP about an hour ago,
    expecting it to be rendered like an HTML file, except with a .php
    extension. I was surprised to see it came out looking like a text file.
    Can anyone help me with this, or tell me what I did wrong? Thanks.

    Aaron Kinney

  • Peter Fox

    #2
    Re: PHP is rendered like a txt file

    Following on from 's message. . .[color=blue]
    >I am new to PHP, trying to learn the ropes if you will. Now, I
    >published a .php file to a web server through FTP about an hour ago,
    >expecting it to be rendered like an HTML file, except with a .php
    >extension. I was surprised to see it came out looking like a text file.
    >Can anyone help me with this, or tell me what I did wrong? Thanks.
    >
    >Aaron Kinney
    >[/color]

    The web server doesn't know about php. It is an add-on _at the server_
    which many web hosts charge extra for. Either get your host to support
    php or set up your own for development purposes - (That's not a single
    button click but there's plenty of documentation.)



    --
    PETER FOX Not the same since the pancake business flopped
    peterfox@eminen t.demon.co.uk.n ot.this.bit.no. html
    2 Tees Close, Witham, Essex.
    Gravity beer in Essex <http://www.eminent.dem on.co.uk>

    Comment

    • R. Rajesh Jeba Anbiah

      #3
      Re: PHP is rendered like a txt file

      kinney.aaron@gm ail.com wrote:[color=blue]
      > I am new to PHP, trying to learn the ropes if you will. Now, I
      > published a .php file to a web server through FTP about an hour ago,
      > expecting it to be rendered like an HTML file, except with a .php
      > extension. I was surprised to see it came out looking like a text file.
      > Can anyone help me with this, or tell me what I did wrong? Thanks.[/color]

      FWIW, <news:111099444 1.546648.198450 @l41g2000cwc.go oglegroups.com>
      ( http://groups.google.com/group/comp....77ae082bba11b3 )

      --
      <?php echo 'Just another PHP saint'; ?>
      Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

      Comment

      Working...