Re: [PHP] Re: More thoughts about PHP: Taglibs

2001-09-12 Thread Eugene Lee

On Tue, Sep 11, 2001 at 11:14:30AM -0400, Michael Kimsal wrote:
: 
: Perhaps you should just use cold fusion then, if you're that
: hot and heavy into tag-based languages.
: 
: tagservlet.com has a Java/CF hybrid which may hold some interest.
: 
: PHP's strength, IMO, is that it's NOT a tag-based language.  You can create
: any functions you want and call them already from a ? ? combination
: 
: ?=myFunction($params);?

ColdFusion 5 finally allows users to define functions, so the above
strength for PHP is now a strength for ColdFusion.


-- 
Eugene Lee
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: More thoughts about PHP: Taglibs

2001-09-11 Thread _lallous

Yep this is not bad!
 html
 Hello, showusername/.  Your last login was showlastlogin/.p
 /html

and now using PHP's short tags, you can make it even prettier:

 html
 Hello, ?=showusername()?.  Your last login was ?=showlastlogin()?.p
 /html

Right?

Dr. Evil [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 It seems to me that one of the problems with PHP is that you have to
 include code in your HTML pages.  Even with the cleanest design, you
 end up with HTML that looks like this:

 html
 Hello, ?php showusername(); ?.  Your last login was ?php
 showlastlogin(); ?.p
 /html

 This is ok, but it seems to me that java taglibs provide a more
 elegant way to do the same things:

 html
 Hello, showusername/.  Your last login was showlastlogin/.p
 /html

 This lets the backend stuff be completely separated from the html
 design part of things.  What do people think of this?  I'm just now
 learning JSP so I'm thinking about the differences between PHP and
 JSP.

 In general, both are powerful ways of creating dynamic websites, but
 they have different characteristics and are better for different
 things.  I'm learning java but I will continue to use both, depending
 on the task.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: More thoughts about PHP: Taglibs

2001-09-11 Thread nicolas costes

maybe one day, PHP will implement user defined tags 
this could be an idea, if this is prooved to be useful.



(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr

ORIGINAL MESSAGE-

Yep this is not bad!
 html
 Hello, showusername/.  Your last login was showlastlogin/.p
 /html

and now using PHP's short tags, you can make it even prettier:

 html
 Hello, ?=showusername()?.  Your last login was ?=showlastlogin()?.p
 /html

Right?

Dr. Evil [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 It seems to me that one of the problems with PHP is that you have to
 include code in your HTML pages.  Even with the cleanest design, you
 end up with HTML that looks like this:

 html
 Hello, ?php showusername(); ?.  Your last login was ?php
 showlastlogin(); ?.p
 /html

 This is ok, but it seems to me that java taglibs provide a more
 elegant way to do the same things:

 html
 Hello, showusername/.  Your last login was showlastlogin/.p
 /html

 This lets the backend stuff be completely separated from the html
 design part of things.  What do people think of this?  I'm just now
 learning JSP so I'm thinking about the differences between PHP and
 JSP.

 In general, both are powerful ways of creating dynamic websites, but
 they have different characteristics and are better for different
 things.  I'm learning java but I will continue to use both, depending
 on the task.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED] 



Re: [PHP] Re: More thoughts about PHP: Taglibs

2001-09-11 Thread Michael Kimsal

Perhaps you should just use cold fusion then, if you're that
hot and heavy into tag-based languages.

tagservlet.com has a Java/CF hybrid which may hold some interest.

PHP's strength, IMO, is that it's NOT a tag-based language.  You can create
any functions you want and call them already from a ? ? combination

?=myFunction($params);?


Separating code/content is a much stronger idea, with just variable 
replacements
in the 'template'.  In the examples below, how do you gracefully handle 
errors?
You don't - not without addding more code to the file.  

Or look more into XML/XSLT stuff.  

nicolas costes wrote:

maybe one day, PHP will implement user defined tags 
this could be an idea, if this is prooved to be useful.



(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr

ORIGINAL MESSAGE-

Yep this is not bad!

html
Hello, showusername/.  Your last login was showlastlogin/.p
/html


and now using PHP's short tags, you can make it even prettier:

 html
 Hello, ?=showusername()?.  Your last login was ?=showlastlogin()?.p
 /html

Right?

Dr. Evil [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

It seems to me that one of the problems with PHP is that you have to
include code in your HTML pages.  Even with the cleanest design, you
end up with HTML that looks like this:

html
Hello, ?php showusername(); ?.  Your last login was ?php
showlastlogin(); ?.p
/html

This is ok, but it seems to me that java taglibs provide a more
elegant way to do the same things:

html
Hello, showusername/.  Your last login was showlastlogin/.p
/html

This lets the backend stuff be completely separated from the html
design part of things.  What do people think of this?  I'm just now
learning JSP so I'm thinking about the differences between PHP and
JSP.

In general, both are powerful ways of creating dynamic websites, but
they have different characteristics and are better for different
things.  I'm learning java but I will continue to use both, depending
on the task.







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]