Re: newbie question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Sep 16, 2015, at 2:35 PM, Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxx






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux