Re: [WebDNA] WebDNA vs. php war ;-)
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104818
interpreted = N
texte = It would need the around it to work... But I can't use it without the HTTP_HOST and PHP_SELF lines or it bombs. Relative directories won't work.As for a better way, I don't know... I've been using this snippet for at least 5 years.Dan Strong wrote:> Is that 100% accurate (trying to head off the nitpickers...), i.e. is > it valid without " page and it will work?>> -Dan Strong> http://www.DanStrong.com>>> On 2/19/2010 12:27 PM, Matthew Bohne wrote:>> How about I start with one that I wrote a function to emulate >> WebDNA's capabilities...>>>> $location="index.php;>> header('location: >> http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/'.$location); >>>> (Note: Can not be used after any other headers are written)>>>> versus>>>> [text show=f]location=index.dna[/text]>> [redirect [location]]>> (Note: Can be anywhere on the page)>>>>>> Dan Strong wrote:>>> Provide me with these accurate comparisons and I'll do a 2nd >>> "corrected" vid. Note: the original vid cannot be "replaced:" on >>> youtube.>>>>>> -Dan Strong>>> http://www.DanStrong.com>>>>>>>>> On 2/19/2010 12:10 PM, Donovan Brooke wrote:>>>> Paul Willis wrote:>>>>> At the risk of being chased off the list some commentators do have >>>>> a point.>>>>>>>>>> A lot of the PHP example code is padded out unnecessarily. Why are >>>>> the tags included on separate lines, why isn't there a >>>>> similar at the top of each example? Not to >>>>> mention that many setups work with ?> short PHP tags>>>>>>>>>> You don't have to set a variable and then echo it, you can just >>>>> print it straight out etc., for instance...>>>>>>>>>> >>>> $browser = $_SERVER['HTTP_USER_AGENT'];>>>>> print "$browser";>>>>> ?>>>>>>>>>>> could be...>>>>>>>>>> echo ($_SERVER['HTTP_USER_AGENT']);?>>>>>>>>>>> There are also various (unnecessary) lines of error checking code >>>>> included in the PHP samples.>>>>>>>>>> The thing is WebNDA is simpler to code than PHP we don't have to >>>>> 'cheat' to prove it.>>>>>>>>>> echo ($_SERVER['HTTP_USER_AGENT']);?> is still longer and >>>>> messier than [browsername]>>>>>>>>>> Paul>>>>>>>>>>>> I agree 100% Paul (though I love the general presentation of Dan's >>>> vid!). Comparisons have to be accurate else you lose "clout". Many >>>> of the examples being put out there, including many of them on >>>> webdna.us, could be presented much more accurately and WebDNA will >>>> still "win" the majority of them. You are right.>>>>>>>> Donovan>>>>>>>>>>>>>>>>>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list
.>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> old archives: http://dev.webdna.us/TalkListArchive/>>> Bug Reporting: >>> http://forum.webdna.us/eucabb.html?page=topics&category=288>>>>>>>>>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> old archives: http://dev.webdna.us/TalkListArchive/>> Bug Reporting: >> http://forum.webdna.us/eucabb.html?page=topics&category=288> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: > http://forum.webdna.us/eucabb.html?page=topics&category=288>>
Associated Messages, from the most recent to the oldest:
It would need the around it to work... But I can't use it without the HTTP_HOST and PHP_SELF lines or it bombs. Relative directories won't work.As for a better way, I don't know... I've been using this snippet for at least 5 years.Dan Strong wrote:> Is that 100% accurate (trying to head off the nitpickers...), i.e. is > it valid without " page and it will work?>> -Dan Strong> http://www.DanStrong.com>>> On 2/19/2010 12:27 PM, Matthew Bohne wrote:>> How about I start with one that I wrote a function to emulate >> WebDNA's capabilities...>>>> $location="index.php;>> header('location: >> http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/'.$location); >>>> (Note: Can not be used after any other headers are written)>>>> versus>>>> [text show=f]location=index.dna[/text]>> [redirect [location]]>> (Note: Can be anywhere on the page)>>>>>> Dan Strong wrote:>>> Provide me with these accurate comparisons and I'll do a 2nd >>> "corrected" vid. Note: the original vid cannot be "replaced:" on >>> youtube.>>>>>> -Dan Strong>>> http://www.DanStrong.com>>>>>>>>> On 2/19/2010 12:10 PM, Donovan Brooke wrote:>>>> Paul Willis wrote:>>>>> At the risk of being chased off the list some commentators do have >>>>> a point.>>>>>>>>>> A lot of the PHP example code is padded out unnecessarily. Why are >>>>> the tags included on separate lines, why isn't there a >>>>> similar at the top of each example? Not to >>>>> mention that many setups work with ?> short PHP tags>>>>>>>>>> You don't have to set a variable and then echo it, you can just >>>>> print it straight out etc., for instance...>>>>>>>>>> >>>> $browser = $_SERVER['HTTP_USER_AGENT'];>>>>> print "$browser";>>>>> ?>>>>>>>>>>> could be...>>>>>>>>>> echo ($_SERVER['HTTP_USER_AGENT']);?>>>>>>>>>>> There are also various (unnecessary) lines of error checking code >>>>> included in the PHP samples.>>>>>>>>>> The thing is WebNDA is simpler to code than PHP we don't have to >>>>> 'cheat' to prove it.>>>>>>>>>> echo ($_SERVER['HTTP_USER_AGENT']);?> is still longer and >>>>> messier than [browsername]>>>>>>>>>> Paul>>>>>>>>>>>> I agree 100% Paul (though I love the general presentation of Dan's >>>> vid!). Comparisons have to be accurate else you lose "clout". Many >>>> of the examples being put out there, including many of them on >>>> webdna.us, could be presented much more accurately and WebDNA will >>>> still "win" the majority of them. You are right.>>>>>>>> Donovan>>>>>>>>>>>>>>>>>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> old archives: http://dev.webdna.us/TalkListArchive/>>> Bug Reporting: >>> http://forum.webdna.us/eucabb.html?page=topics&category=288>>>>>>>>>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> old archives: http://dev.webdna.us/TalkListArchive/>> Bug Reporting: >> http://forum.webdna.us/eucabb.html?page=topics&category=288> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: > http://forum.webdna.us/eucabb.html?page=topics&category=288>>
Matthew Bohne
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:
Multiple Merchant Accounts? (1997)
Re:no [search] with NT (1997)
WebCat2b12--[searchstring] bug (1997)
Bizarre behavior texta behavior (2004)
syntax question, not in online refernce (1997)
About Include (2001)
expired beta (1997)
WebDNA permissions? (2002)
Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997)
WebCat2 Append problem (B14Macacgi) (1997)
encrypted query string trouble on OSX (2001)
Ampersand (1997)
Bug at start of Apache 2 with iTools 7 (2003)
Max Record length restated as maybe bug (1997)
Nav. 4 probs with cart - Serious problem (1997)
Next (1997)
Sendmail on OSX/Communigate Pro (2002)
Suffix Mapping (1997)
WebCatalog2 Feature Feedback (1996)
Summing fields (1997)