tag:blogger.com,1999:blog-34454975.post747276246339091402..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: Script Type PHP :)Andrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-34454975.post-72100198470836900782008-04-16T00:12:00.000+02:002008-04-16T00:12:00.000+02:00ok for strpos ... anyway, the important thing is t...ok for strpos ... anyway, the important thing is that false !== 0, so basically a check like if(indexOf($a, $b) < 0) is the same of if(indexOf($a, $b) === false), because these cannot be ambiguous.<BR/><BR/>In my old example, I used an improbable ambiguity because of my lazy nature :D<BR/><BR/>Finally, thank you to visit my blog.<BR/>CheersAndrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-90495854109521251882008-04-16T00:05:00.000+02:002008-04-16T00:05:00.000+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/17099558871718729628noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-12863327521050732222008-04-15T23:22:00.000+02:002008-04-15T23:22:00.000+02:00>> But javascript is prototyping language otherwis...>> But javascript is prototyping language otherwise php<BR/><BR/>I've implemented prototype behaviour in my framework too, just stay tuned, ok? ;)<BR/><BR/>Finally, I gree about strpos but in this case I absolutely know what I am doing and there's no way to have a false positive with that check.<BR/>The reason is simple, type="text" cannot be the first char, and if it is, the output is a non-sense.<BR/><BR/>Anyway, I removed preg_replace_callback (please read the update) because with DOM classes, there's no reason to prefere a proge with problems if some var inside contain, for example, a < /script> in a string.<BR/><BR/>RegardsAndrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-73698256557336331442008-04-15T22:42:00.000+02:002008-04-15T22:42:00.000+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/17099558871718729628noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-41759051371977350462008-04-15T18:14:00.000+02:002008-04-15T18:14:00.000+02:00wow, that's insane. i'm going to have to take a cl...wow, that's insane. i'm going to have to take a closer look at this technique, i've never used the ob_start() callback parameter before.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-7054456830973814452008-04-15T11:35:00.000+02:002008-04-15T11:35:00.000+02:00JavaScript Onload no i don't think that crazy prog...<A HREF="http://www.ajaxlines.com/ajax/stuff/article/javascript_onload.php" REL="nofollow">JavaScript Onload</A> no i don't think that crazy programmeAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-44930475964059163772008-04-15T10:08:00.000+02:002008-04-15T10:08:00.000+02:00because JavaScript 3rd edition is the best scripti...because JavaScript 3rd edition is the best scripting language I've ever used? :D<BR/><BR/>There is a lot of stuff that I would like to bring in PHP ... and basically that's what I am doing with my PHP framework, but it is still under construction :geek:Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-91273082052227380412008-04-15T09:31:00.000+02:002008-04-15T09:31:00.000+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/17099558871718729628noreply@blogger.com