FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » why php echo does not show up in HTML?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: why php echo does not show up in HTML? [message #181658 is a reply to message #181657] Fri, 24 May 2013 17:30 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 5/24/2013 1:04 PM, Tim Streater wrote:
> In article <kno313$kpa$1(at)dont-email(dot)me>,
> Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:
>
>> On 5/24/2013 11:47 AM, Tim Streater wrote:
>>> In article <knnr88$4bg$1(at)dont-email(dot)me>,
>>> Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:
>>>
>>>> On 5/24/2013 9:40 AM, Tim Streater wrote:
>>>
>>>> > Personally I add:
>>>> >
>>>> > AddType application/x-httpd-php .phtml
>>>> >
>>>> > to the apache config file, and use that for files containing any
>> PHP.
>>>> > That way the PHP interpreter is only involved when a file
>> actually has
>>>> > PHP in it.
>
>>>> What's the difference between using .phtml and .php (other than the
>>>> former is non-standard and will not work on all systems)?
>>>
>>> None, I don't suppose, but it was the standard where I used to work. I
>>> just followed it. I use .php for scripts that *only* contain php.
>
>> That's reasonable, as long as you only run on servers you control. Of
>> course, someone else's server could cause a problem.
>
> Yes, in-house servers.
>

I should also add - I do something kinda similar, but not. Files which
only contain PHP code are going to be included in other files. So I'll
have .php as the main extension, and those which will be included as
..inc.php (for included php).

Then there is a subset of that - class files, which I define as .class.php.

You'll never see any of those in a URL, though, since they are all kept
outside the website's document root.

I find it works for me, and is compatible with most hosting companies
(those who do not allow storing files outside of the document root
aren't work using, IMHO).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP Contact Form, mt-rand(), problem Validating 1 input
Next Topic: Parsing mbox files with Windows Php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 22:43:27 GMT 2024

Total time taken to generate the page: 0.04109 seconds