Re: newbie question

From: Date: Wed, 16 Sep 2015 19:15:59 +0000
Subject: Re: newbie question
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-325118@lists.php.net to get a copy of this message
> On Sep 16, 2015, at 2:35 PM, Ashley Sheridan <ash@ashleysheridan.co.uk> wrote: > Almost. Actually, it's the web server which sees that as non-php content and just outputs > it to the standard output to be sent to your browser. most web servers, when not told what type of > content is being sent (with a header call) will default to HTML. I think (I may be wrong) the process will default to text. For example, try placing a html file with nothing but a word in it and give it a ..html extension. The Browser will simply print the word without any HTML tags. > It's still HTML in your PHP files, hence the need for the specific file extension. Unless you use a htacess file to force the Server to process .html as ..php. Cheers, tedd _______________ tedd sperling tedd@sperling.com

« previous php.general (#325118) next »