Re: WebDNA vs PHP
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54795
interpreted = N
texte = yup. but when youre dealing with lots of html code, that use " 's. itsbetter to escape from php.because for every ", you have to escape it using a \".eg:echo "
| ";or?>
| I just find it easier to read this way. personal preference i guess :)----- Original Message ----- From: "Marc Kaiwi"
To: "WebDNA Talk" Sent: Wednesday, December 10, 2003 10:01 AMSubject: Re: WebDNA vs PHP> Yes but it's either:> if($x){echo "hello $name";} ?> <---- 29 characters> or> if($x){ ?> hello echo $name?> } ?> <--- 34 characters>> ... and to keep this a little on the WebDNA topic here I'll compare. In> WebDNA I would use something like:>> [showif x=True] hello [name][/showif] <--- 34 characters>> hahahahha .... : c)>> On Tuesday, December 9, 2003, at 02:49 PM, Rajeev Kumar wrote:>> > You dont have to echo() or print(). you can just escape from the php> > portion> > of the code using ?> and .> >> > eg:> > ....> > ...> > if ($variable) { ?>> > html code here
> > }> > ...> > ...> >> >> > ----- Original Message -----> > From: "Marc Kaiwi" > > To: "WebDNA Talk" > > Sent: Wednesday, December 10, 2003 6:33 AM> > Subject: WebDNA vs PHP> >> >> >> Well I've been working with php/mysql for (only) about a week now ...> >> very cool! I'm excited about it. I'm converting a website I wrote> >> some> >> years ago in perl/DBM to php/mysql, the server hosting it doesn't> >> support WebDNA so that option is out unfortunately.> >>> >> Here's the one big advantage (IMHO) that WebDNA has over PHP : WebDNA> >> integrates better with html in that it allows you to use straight html> >> inside contexts without wrapping them in a print() or echo()> >> statements, this can be a real time saver. Other than that, php seems> >> to be just as quick to code and develop, it seems to be just a fast> >> and> >> full featured. PHP's big advantage may be that it's powerful, free and> >> integrates with MySQL so well.> >>> >> Just a few thoughts as I make my way through the dark. Looking for the> >> light switch which has got to be here somewhere, I know it.> >>> >> Signed: Marc Kaiwi> >>> >>> >> -------------------------------------------------------------> >> This message is sent to you because you are subscribed to> >> the mailing list .> >> To unsubscribe, E-mail to: > >> To switch to the DIGEST mode, E-mail to> > > >> Web Archive of this list is at: http://webdna.smithmicro.com/> >> >> > -------------------------------------------------------------> > This message is sent to you because you are subscribed to> > the mailing list .> > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to> > > > Web Archive of this list is at: http://webdna.smithmicro.com/> >> >> Signed: Marc Kaiwi>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
yup. but when youre dealing with lots of html code, that use " 's. itsbetter to escape from php.because for every ", you have to escape it using a \".eg:echo " | ";or?> | I just find it easier to read this way. personal preference i guess :)----- Original Message ----- From: "Marc Kaiwi" To: "WebDNA Talk" Sent: Wednesday, December 10, 2003 10:01 AMSubject: Re: WebDNA vs PHP> Yes but it's either:> if($x){echo "hello $name";} ?> <---- 29 characters> or> if($x){ ?> hello echo $name?> } ?> <--- 34 characters>> ... and to keep this a little on the WebDNA topic here I'll compare. In> WebDNA I would use something like:>> [showif x=True] hello [name][/showif] <--- 34 characters>> hahahahha .... : c)>> On Tuesday, December 9, 2003, at 02:49 PM, Rajeev Kumar wrote:>> > You dont have to echo() or print(). you can just escape from the php> > portion> > of the code using ?> and .> >> > eg:> > ....> > ...> > if ($variable) { ?>> > html code here
> > }> > ...> > ...> >> >> > ----- Original Message -----> > From: "Marc Kaiwi" > > To: "WebDNA Talk" > > Sent: Wednesday, December 10, 2003 6:33 AM> > Subject: WebDNA vs PHP> >> >> >> Well I've been working with php/mysql for (only) about a week now ...> >> very cool! I'm excited about it. I'm converting a website I wrote> >> some> >> years ago in perl/DBM to php/mysql, the server hosting it doesn't> >> support WebDNA so that option is out unfortunately.> >>> >> Here's the one big advantage (IMHO) that WebDNA has over PHP : WebDNA> >> integrates better with html in that it allows you to use straight html> >> inside contexts without wrapping them in a print() or echo()> >> statements, this can be a real time saver. Other than that, php seems> >> to be just as quick to code and develop, it seems to be just a fast> >> and> >> full featured. PHP's big advantage may be that it's powerful, free and> >> integrates with MySQL so well.> >>> >> Just a few thoughts as I make my way through the dark. Looking for the> >> light switch which has got to be here somewhere, I know it.> >>> >> Signed: Marc Kaiwi> >>> >>> >> -------------------------------------------------------------> >> This message is sent to you because you are subscribed to> >> the mailing list .> >> To unsubscribe, E-mail to: > >> To switch to the DIGEST mode, E-mail to> > > >> Web Archive of this list is at: http://webdna.smithmicro.com/> >> >> > -------------------------------------------------------------> > This message is sent to you because you are subscribed to> > the mailing list .> > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to> > > > Web Archive of this list is at: http://webdna.smithmicro.com/> >> >> Signed: Marc Kaiwi>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"Rajeev Kumar"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Third try - Looking for a Programmer (2004)
Ooops-Serial Number for NT (1997)
wc 2 pro users - sites, quotes wanted (1997)
# fields limited? (1997)
Navigator 4.0 & tables (1997)
[WebDNA] OSX users (2009)
Help! WebCat2 bug (1997)
Fwd: Problems with Webcatalog Plug-in (1997)
[OT] WebDNA Family Album (2004)
protect tag on NT IIS (1997)
Pithy questions on webcommerce & siteedit (1997)
Comments in db? (1997)
Problems with [Applescript] (1997)
problems with 2 tags (1997)
Using webcat to roll apache logs (2002)
WebCatalog Plugin: Getting Data Canceled (2000)
WebCat2b13MacPlugIn - syntax to convert date (1997)
Dummy Credit Card Number for debug? (1997)
shownext not showing next...still r2 (1997)
Setting up shop (1997)