By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,746 Members | 1,780 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,746 IT Pros & Developers. It's quick & easy.

Php File Showing As Text

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a

"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
Jul 17 '05 #2

P: n/a
"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.
Jul 17 '05 #3

P: n/a

"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...
Jul 17 '05 #4

P: n/a
"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.
Jul 17 '05 #5

P: n/a
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...

Jul 17 '05 #6

P: n/a
"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?

Jul 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.