httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darryle Steplight <dstepli...@gmail.com>
Subject Re: [users@httpd] PHP files not being parsed in HTML pages
Date Sat, 30 Jul 2011 21:36:52 GMT
I can't figure out why these conversations keep going on. I thought
the answer was solved with Jeroen Geilman's answer. My answer was
slightly off.

On Sat, Jul 30, 2011 at 5:33 PM, Stormy <stormy22@stormy.ca> wrote:
> At 07:06 PM 7/30/2011 +0100, Mark Rousell wrote:
>>
>> On 30/07/2011 18:43, Jeroen Geilman wrote:
>> >>> So, why does a simple file with phpinfo() work and an html page with
>> >>> an
>> >>> include "xyz.php" NOT render the page as desired in the browser????
>> >>> It just
>> >>> ignores the include.
>> >
>> > HTML does not have an "include" directive.
>> > Please don't confuse PHP with HTML.
>>
>> As an aside and for the avoidance of doubt, whilst they are not strictly
>> part of HTML,
>
> SSI are *text* in a format that can be interpreted by an HTML client.
>
>> Server Side Includes (which include a #include directive)
>> are commonly available to plain HTML on many servers.
>
> If php "includes" as output from the server (SSI) anything that cannot be
> parsed as HTML [or as HTML parsable script, js etc] by the client (browser)
> then it will not be "render[ed ...] as desired in the browser????" which was
> the question in this thread.
>
> "Servers" can send anything, invalid text/html from a php script, whatever
> ... if the client browser cannot parse|interpret the content it is doomed to
> failure.
>
> Best - Paul
>
> Tired old sys-admin
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



-- 
----------------------------------------------
"May the Source be with you."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message