"Andre Dubuc" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

> I've noticed that many people on the list code in 'pure' php, i.e.
>
> I would like to understand the reasons for writing code in this manner,
when
> all my code works fine, displays great: am I missing something important
> here? Btw, I use the 'php' ending for all file names.
>
> Your thoughts, opinions and suggestions would be greatly appreciated --
I'd
> like to do what is best.

I can think of one other reason you would use pure... possibly not very
valid, but still...

Imagine you have a page where, if a password passed from another page is
correct, you want to show some data on the Web page, but if the password is
incorrect you want to show a warning and under no circumstances let them see
the data. If you used mixed, they could simply read the source of the page
to see that data... but with pure, the only source on the page is what PHP
actually prints out, so they won't see anything they shouldn't.


--
--------------------------------------------
_ _
o o    Jason Teagle
 <      [EMAIL PROTECTED]
 v
--------------------------------------------



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

Reply via email to