Php File Showing As Text – PHP

  php

Q(Question):

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

A(Answer):

"george" <NO****@btinternet.com> wrote in message
news:c5**********@hercules.btinternet.com…

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

Where to begin? I’ll go first.

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

Garp

A(Answer):

"george" <NO****@btinternet.com> wrote in message news:<c5**********@hercules.btinternet.com>…

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

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.

A(Answer):

"Quintin Russ" <go****@siteteck.co.nz> wrote in message
news:93**************************@posting.google.c om…

"george" <NO****@btinternet.com> wrote in message

news:<c5**********@hercules.btinternet.com>…

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

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.

Yes, it does support PHP…

A(Answer):

"george" <NO****@btinternet.com> wrote in message
news:c5**********@titan.btinternet.com…

"Quintin Russ" <go****@siteteck.co.nz> wrote in message
news:93**************************@posting.google.c om…

"george" <NO****@btinternet.com> wrote in message news:<c5**********@hercules.btinternet.com>…

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

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.

Yes, it does support PHP…

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

A(Answer):

In article <c5**********@titan.btinternet.com>,
"george" <NO****@btinternet.com> wrote:

"Quintin Russ" <go****@siteteck.co.nz> wrote in message
news:93**************************@posting.google.c om…

"george" <NO****@btinternet.com> wrote in message

news:<c5**********@hercules.btinternet.com>…

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

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.

Yes, it does support PHP…

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…

A(Answer):

"george" <NO****@btinternet.com> wrote in message
news:c5**********@hercules.btinternet.com…

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

The file was perhaps saved as Unicode?

LEAVE A COMMENT