Re: [PHP] Script Analysis (was Conclusion of "use strict"...)
**On Sat, Mar 21, 2009 at 10:27 AM, Hans Schultz wrote: > Hi Virgilio, > Thanks for that last link, I just know need to figure out why my Netbeans > doesn't work > like that (although I am using latest version) > > On Sat, 21 Mar 2009 10:56:46 +0100, Virgilio Quilario < > virgilio.quila...@gmail.com> wrote: > > Hi Hans, >> >> Is this what you are looking for? >> >> Debug PHP code using Xdebug: You can inspect local variables, set >> watches, set breakpoints, and evaluate code live. Navigate to >> declarations, types and files using Go To shortcuts and hypertext >> links. >> >> It is from this url: >> http://www.netbeans.org/features/php/ >> >> Or maybe this. >> It highlights those variables not initialized. >> See the screencast. >> http://www.netbeans.org/kb/docs/php/php-editor-screencast.html >> >> Maybe should try it sometime. >> >> Best wishes, >> >> Virgil >> http://www.jampmark.com >> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > XDebug is not easy to set up. I have a couple of Windows (and a couple of Linux) boxes that I have tried. The instructions are generally *really *simple... and ineffective (for me). However, it looks like if you're smart enough then it is really smashing. :)
Re: [PHP] Script Analysis (was Conclusion of "use strict"...)
Hi Virgilio, Thanks for that last link, I just know need to figure out why my Netbeans doesn't work like that (although I am using latest version) On Sat, 21 Mar 2009 10:56:46 +0100, Virgilio Quilario wrote: Hi Hans, Is this what you are looking for? Debug PHP code using Xdebug: You can inspect local variables, set watches, set breakpoints, and evaluate code live. Navigate to declarations, types and files using Go To shortcuts and hypertext links. It is from this url: http://www.netbeans.org/features/php/ Or maybe this. It highlights those variables not initialized. See the screencast. http://www.netbeans.org/kb/docs/php/php-editor-screencast.html Maybe should try it sometime. Best wishes, Virgil http://www.jampmark.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Script Analysis (was Conclusion of "use strict"...)
Using it (and Codenizer within), this is completely different thing... Regards > > Hi guys, > > Check out Netbeans IDE for PHP. > http://www.netbeans.org/features/php/ > > Your wishes answered. > Though it doesn't have "use strict" but it tracks variables for you. > > Virgil > http://www.jampmark.com _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Script Analysis (was Conclusion of "use strict"...)
> Thanks, > I downloaded Netbeans week or two ago and I found all that. I thought there > is > something more advanced (these things have any decent editor/ide (for > example > eclipse + pdt also have all that)). We are talking completely different > level > of checks :-) In the end I may switch to non-free version of Codenizer > (unless > someone points me how to check for at least non-initialized variables with > Netbeans, and save me 20$ :-) > Hi Hans, Is this what you are looking for? Debug PHP code using Xdebug: You can inspect local variables, set watches, set breakpoints, and evaluate code live. Navigate to declarations, types and files using Go To shortcuts and hypertext links. It is from this url: http://www.netbeans.org/features/php/ Or maybe this. It highlights those variables not initialized. See the screencast. http://www.netbeans.org/kb/docs/php/php-editor-screencast.html Maybe should try it sometime. Best wishes, Virgil http://www.jampmark.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Script Analysis (was Conclusion of "use strict"...)
Thanks, I downloaded Netbeans week or two ago and I found all that. I thought there is something more advanced (these things have any decent editor/ide (for example eclipse + pdt also have all that)). We are talking completely different level of checks :-) In the end I may switch to non-free version of Codenizer (unless someone points me how to check for at least non-initialized variables with Netbeans, and save me 20$ :-) On Sat, 21 Mar 2009 01:17:20 +0100, George Larson wrote: Ooops! Those were v5.5 videos.. A little newer stuff is here: http://www.netbeans.org/kb/docs/screencasts.html On Fri, Mar 20, 2009 at 7:44 PM, George Larson wrote: Netbeans does have some sick fanciness... Auto-suggest, leaving your cursor over a variable momentarily highlights it everywhere in the code and define labeled folding points. You can press CTRL-R to rename that variable everywhere it is used in the code. If you can figure out how to set it up with xdebug (I'm working on it) then you can have step-by-step debugging. NetBeans is well worth giving a chance, in my opinion. You can check out some videos if you don't want to risk the time. ( http://www.netbeans.org/kb/55/flash.html) On Fri, Mar 20, 2009 at 5:07 PM, Hans Schultz wrote: On Fri, 20 Mar 2009 15:45:09 +0100, Virgilio Quilario < virgilio.quila...@gmail.com> wrote: On Fri, Mar 20, 2009 at 6:47 PM, Pierre Lilliman wrote: I have been using same program for some (not very long time), and I find it very useful, although it has some annoying things (inability to work with all kinds of include expressions). Still I think every serious PHP developer should consider using something like this. Cheers --- On Thu, 3/19/09, Hans Schultz wrote: If someone is still interested in problem I found litle tool that is pretty close to detecting errors in PHP at compile time (compile time rghhh :P). It is Codenizer (http://www.softwarehood.com/Codenizer/), I am still checking it, if someone uses it it would be nice to share experience :) Hi guys, Check out Netbeans IDE for PHP. http://www.netbeans.org/features/php/ Your wishes answered. Though it doesn't have "use strict" but it tracks variables for you. Virgil http://www.jampmark.com Can you please elaborate on this (using Netbeans to track variables), I know what Codenizer does, but I didn't manage to make Netbeans to do this "variable track"? Few guys also mentioned that but I couldn't really find that feature? TIA -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Script Analysis (was Conclusion of "use strict"...)
Ooops! Those were v5.5 videos.. A little newer stuff is here: http://www.netbeans.org/kb/docs/screencasts.html On Fri, Mar 20, 2009 at 7:44 PM, George Larson wrote: > Netbeans does have some sick fanciness... Auto-suggest, leaving your > cursor over a variable momentarily highlights it everywhere in the code and > define labeled folding points. You can press CTRL-R to rename that variable > everywhere it is used in the code. If you can figure out how to set it up > with xdebug (I'm working on it) then you can have step-by-step debugging. > NetBeans is well worth giving a chance, in my opinion. You can check out > some videos if you don't want to risk the time. ( > http://www.netbeans.org/kb/55/flash.html) > > On Fri, Mar 20, 2009 at 5:07 PM, Hans Schultz wrote: > >> >> On Fri, 20 Mar 2009 15:45:09 +0100, Virgilio Quilario < >> virgilio.quila...@gmail.com> wrote: >> >> On Fri, Mar 20, 2009 at 6:47 PM, Pierre Lilliman >>> wrote: >>> I have been using same program for some (not very long time), and I find it very useful, although it has some annoying things (inability to work with all kinds of include expressions). Still I think every serious PHP developer should consider using something like this. Cheers --- On Thu, 3/19/09, Hans Schultz wrote: If someone is still interested in problem I found litle tool that is pretty close to detecting errors in PHP at compile time (compile time rghhh :P). It is Codenizer (http://www.softwarehood.com/Codenizer/), I am still checking it, if someone uses it it would be nice to share experience :) >>> Hi guys, >>> >>> Check out Netbeans IDE for PHP. >>> http://www.netbeans.org/features/php/ >>> >>> Your wishes answered. >>> Though it doesn't have "use strict" but it tracks variables for you. >>> >>> Virgil >>> http://www.jampmark.com >>> >> >> Can you please elaborate on this (using Netbeans to track variables), I >> know what Codenizer does, but I didn't manage to make Netbeans to do this >> "variable track"? Few guys also mentioned that but I couldn't really find >> that feature? >> >> TIA >> >> -- >> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> >
Re: [PHP] Script Analysis (was Conclusion of "use strict"...)
Netbeans does have some sick fanciness... Auto-suggest, leaving your cursor over a variable momentarily highlights it everywhere in the code and define labeled folding points. You can press CTRL-R to rename that variable everywhere it is used in the code. If you can figure out how to set it up with xdebug (I'm working on it) then you can have step-by-step debugging. NetBeans is well worth giving a chance, in my opinion. You can check out some videos if you don't want to risk the time. ( http://www.netbeans.org/kb/55/flash.html) On Fri, Mar 20, 2009 at 5:07 PM, Hans Schultz wrote: > > On Fri, 20 Mar 2009 15:45:09 +0100, Virgilio Quilario < > virgilio.quila...@gmail.com> wrote: > > On Fri, Mar 20, 2009 at 6:47 PM, Pierre Lilliman >> wrote: >> >>> >>> I have been using same program for some (not very long time), and I find >>> it very useful, although it has some annoying things (inability to work with >>> all kinds of include expressions). Still I think every serious PHP developer >>> should consider using something like this. >>> >>> Cheers >>> >>> --- On Thu, 3/19/09, Hans Schultz wrote: >>> >>> If someone is still interested in problem I found litle tool that is >>> pretty close to detecting errors in PHP at compile time (compile time >>> rghhh :P). It is Codenizer (http://www.softwarehood.com/Codenizer/), >>> I am still checking it, if someone uses it it would be nice to share >>> experience :) >>> >>> >> Hi guys, >> >> Check out Netbeans IDE for PHP. >> http://www.netbeans.org/features/php/ >> >> Your wishes answered. >> Though it doesn't have "use strict" but it tracks variables for you. >> >> Virgil >> http://www.jampmark.com >> > > Can you please elaborate on this (using Netbeans to track variables), I > know what Codenizer does, but I didn't manage to make Netbeans to do this > "variable track"? Few guys also mentioned that but I couldn't really find > that feature? > > TIA > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Re: [PHP] Script Analysis (was Conclusion of "use strict"...)
On Fri, 20 Mar 2009 15:45:09 +0100, Virgilio Quilario wrote: On Fri, Mar 20, 2009 at 6:47 PM, Pierre Lilliman wrote: I have been using same program for some (not very long time), and I find it very useful, although it has some annoying things (inability to work with all kinds of include expressions). Still I think every serious PHP developer should consider using something like this. Cheers --- On Thu, 3/19/09, Hans Schultz wrote: If someone is still interested in problem I found litle tool that is pretty close to detecting errors in PHP at compile time (compile time rghhh :P). It is Codenizer (http://www.softwarehood.com/Codenizer/), I am still checking it, if someone uses it it would be nice to share experience :) Hi guys, Check out Netbeans IDE for PHP. http://www.netbeans.org/features/php/ Your wishes answered. Though it doesn't have "use strict" but it tracks variables for you. Virgil http://www.jampmark.com Can you please elaborate on this (using Netbeans to track variables), I know what Codenizer does, but I didn't manage to make Netbeans to do this "variable track"? Few guys also mentioned that but I couldn't really find that feature? TIA -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Script Analysis (was Conclusion of "use strict"...)
On Fri, Mar 20, 2009 at 6:47 PM, Pierre Lilliman wrote: > > I have been using same program for some (not very long time), and I find it > very useful, although it has some annoying things (inability to work with all > kinds of include expressions). Still I think every serious PHP developer > should consider using something like this. > > Cheers > > --- On Thu, 3/19/09, Hans Schultz wrote: > > If someone is still interested in problem I found litle tool that is pretty > close to detecting errors in PHP at compile time (compile time rghhh :P). > It is Codenizer (http://www.softwarehood.com/Codenizer/), I am still checking > it, if someone uses it it would be nice to share experience :) > > On Wed, 04 Mar 2009 11:03:04 +0100, Hans Schultz wrote: > >> Concluding, and one idea...I think I received satisfying advices on >> everything but first question (Detection of typos and other simple >> mistakes). And we were talking also about being able to catch them at >> compile time, then if php at all has compile time etc. Today one thing >> crossed my mind -- if there is compiler for php maybe it can catch these >> errors natively, like java compiler for java? Unfortunatelly there is no >> recent version available for windows so I can't test it myself >> (http://www.roadsend.com/home/index.php?pageID=compiler). I am interesting >> if someone is using it, and if it can detect this simple mistakes (I am >> using eclipse + php plugin, but I feel there is something wrong in depending >> on editor to detect programming errors :-) ) >> Regards to all, >> --- On Thu, 2/26/09, Ovidiu Rosoiu wrote: >> From: Ovidiu Rosoiu >> Subject: Re: [PHP] "use strict" or similar in PHP? >> To: "Hans Schultz" >> Cc: php-general@lists.php.net >> Date: Thursday, February 26, 2009, 9:14 PM >> >> Hans Schultz wrote: >>> Hello, >>> I am beginner with PHP and prior to PHP I have worked with java for some >> time >>> and with perl for very short period. I can't help to notice some >> things that >>> are little annoyance for me with PHP, but I am sure someone more >> experienced >>> can help me :-) >>> Is there in PHP something like "use strict" from perl? I find it >> pretty >>> annoying to need to run script over and over again just to find out that I >>> made typo in variable name. >>> Is there some way for PHP to cache some data on the page? I like very much >>> PHP's speed but it would be even better to be able to cache some >> frequently >>> used data from database? >>> Also regarding databases, I liked a lot java's way of sending data to >> database >>> using parameters ("select * from user where username = ?" and >> then passing >>> parameter separately with database doing necessary escaping and >> everything). >>> Is there something like PHPDBC similar to JDBC? >> Hi guys, Check out Netbeans IDE for PHP. http://www.netbeans.org/features/php/ Your wishes answered. Though it doesn't have "use strict" but it tracks variables for you. Virgil http://www.jampmark.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Script Analysis (was Conclusion of "use strict"...)
On Fri, 2009-03-20 at 11:47 +0100, Pierre Lilliman wrote: > I have been using same program for some (not very long time), and I find it > very useful, although it has some annoying things (inability to work with all > kinds of include expressions). Still I think every serious PHP developer > should consider using something like this. Considered... and duly discarded. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php