Php File Showing As Text

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

    Php File Showing As Text

    Hi All
    I have tried to upload a tested PHP file to my server and every time it gets
    accessed it displays itself as text and does nothing that its supposed
    to...Any ideas why?
    George


  • Garp

    #2
    Re: Php File Showing As Text


    "george" <NOSPAM@btinter net.com> wrote in message
    news:c599gu$gc1 $1@hercules.bti nternet.com...[color=blue]
    > Hi All
    > I have tried to upload a tested PHP file to my server and every time it[/color]
    gets[color=blue]
    > accessed it displays itself as text and does nothing that its supposed
    > to...Any ideas why?
    > George[/color]

    Where to begin? I'll go first.

    Does your file have the right extension for the server to treat as PHP?

    Garp


    Comment

    • Quintin Russ

      #3
      Re: Php File Showing As Text

      "george" <NOSPAM@btinter net.com> wrote in message news:<c599gu$gc 1$1@hercules.bt internet.com>.. .[color=blue]
      > Hi All
      > I have tried to upload a tested PHP file to my server and every time it gets
      > accessed it displays itself as text and does nothing that its supposed
      > to...Any ideas why?
      > George[/color]


      Does your web host support PHP scripts?

      Some web hosts dont have PHP installed on them, meaning that the PHP
      script will just be returned as text.

      Comment

      • george

        #4
        Re: Php File Showing As Text


        "Quintin Russ" <google@sitetec k.co.nz> wrote in message
        news:932dea67.0 404112238.6167b 7da@posting.goo gle.com...[color=blue]
        > "george" <NOSPAM@btinter net.com> wrote in message[/color]
        news:<c599gu$gc 1$1@hercules.bt internet.com>.. .[color=blue][color=green]
        > > Hi All
        > > I have tried to upload a tested PHP file to my server and every time it[/color][/color]
        gets[color=blue][color=green]
        > > accessed it displays itself as text and does nothing that its supposed
        > > to...Any ideas why?
        > > George[/color]
        >
        >
        > Does your web host support PHP scripts?
        >
        > Some web hosts dont have PHP installed on them, meaning that the PHP
        > script will just be returned as text.[/color]

        Yes, it does support PHP...


        Comment

        • kingofkolt

          #5
          Re: Php File Showing As Text

          "george" <NOSPAM@btinter net.com> wrote in message
          news:c5e7sm$sf9 $1@titan.btinte rnet.com...[color=blue]
          >
          > "Quintin Russ" <google@sitetec k.co.nz> wrote in message
          > news:932dea67.0 404112238.6167b 7da@posting.goo gle.com...[color=green]
          > > "george" <NOSPAM@btinter net.com> wrote in message[/color]
          > news:<c599gu$gc 1$1@hercules.bt internet.com>.. .[color=green][color=darkred]
          > > > Hi All
          > > > I have tried to upload a tested PHP file to my server and every time[/color][/color][/color]
          it[color=blue]
          > gets[color=green][color=darkred]
          > > > accessed it displays itself as text and does nothing that its supposed
          > > > to...Any ideas why?
          > > > George[/color]
          > >
          > >
          > > Does your web host support PHP scripts?
          > >
          > > Some web hosts dont have PHP installed on them, meaning that the PHP
          > > script will just be returned as text.[/color]
          >
          > Yes, it does support PHP...
          >
          >[/color]

          as Garp said, maybe you dont have the right extension.


          Comment

          • Michael Vilain

            #6
            Re: Php File Showing As Text

            In article <c5e7sm$sf9$1@t itan.btinternet .com>,
            "george" <NOSPAM@btinter net.com> wrote:
            [color=blue]
            > "Quintin Russ" <google@sitetec k.co.nz> wrote in message
            > news:932dea67.0 404112238.6167b 7da@posting.goo gle.com...[color=green]
            > > "george" <NOSPAM@btinter net.com> wrote in message[/color]
            > news:<c599gu$gc 1$1@hercules.bt internet.com>.. .[color=green][color=darkred]
            > > > Hi All
            > > > I have tried to upload a tested PHP file to my server and every time it[/color][/color]
            > gets[color=green][color=darkred]
            > > > accessed it displays itself as text and does nothing that its supposed
            > > > to...Any ideas why?
            > > > George[/color]
            > >
            > >
            > > Does your web host support PHP scripts?
            > >
            > > Some web hosts dont have PHP installed on them, meaning that the PHP
            > > script will just be returned as text.[/color]
            >
            > Yes, it does support PHP...[/color]

            Post the file. Or try this in a file called test.php:

            <?php phpinfo(); ?>

            If it just displays it, your server isn't configured to use mod_php and
            you'll have to run everything as a CGI script. Might as well use perl
            in that case.

            --
            DeeDee, don't press that button! DeeDee! NO! Dee...



            Comment

            • Chung Leong

              #7
              Re: Php File Showing As Text

              "george" <NOSPAM@btinter net.com> wrote in message
              news:c599gu$gc1 $1@hercules.bti nternet.com...[color=blue]
              > Hi All
              > I have tried to upload a tested PHP file to my server and every time it[/color]
              gets[color=blue]
              > accessed it displays itself as text and does nothing that its supposed
              > to...Any ideas why?
              > George[/color]

              The file was perhaps saved as Unicode?



              Comment

              Working...