PHP is rendered like a txt file  
Author Message
kinney.aaron





PostPosted: 2006-1-9 7:08:58 Top

php-general, 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





PostPosted: 2006-1-9 17:28:00 Top

php-general >> PHP is rendered like a txt file Following on from 's message. . .
>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
>

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
email***@***.com
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>
 
R. Rajesh Jeba Anbiah





PostPosted: 2006-1-9 17:40:00 Top

php-general >> PHP is rendered like a txt file email***@***.com wrote:
> 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.

FWIW, <news:email***@***.com>
( http://groups.google.com/group/comp.lang.php/msg/1577ae082bba11b3 )