webmaster1 Posted April 17, 2010 Share Posted April 17, 2010 Often, I'll put off asking certain questions in the PHP coding help section because I can't justify starting up an entire thread for a question that requires quick verification or theoretical explanation rather than appraising specific blocks of code. e.g. What's the difference between destroying and killing a session? Rather than posting a thread for the above example I'd usually just make an educated guess but a quickfire thread could easily dispel any ambiguity. I believe that such a thread would be popular due to the answers being less laborious. I for one, would lurk around the thread frequently in hopes of assisting a fellow members. Thread Specifications: One continuous stickied thread that is never closed. Questions must be brief, require a brief response and of a theoretical, conceptual or verifiable nature. Thread scope: I'd be happy to seethis in the PHP coding help section but the HTML and CSS sections would be a bonus. Just some food for thought. I could be alone on this. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/ Share on other sites More sharing options...
oni-kun Posted April 17, 2010 Share Posted April 17, 2010 We do have an IRC channel which was designed for this. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043640 Share on other sites More sharing options...
webmaster1 Posted April 17, 2010 Author Share Posted April 17, 2010 I see. Just found it through google: http://www.phpfreaks.com/page/irc-live-chat I'm not very familiar with IRC. I've ended up on a Mibbit page asking me to choose a channel. Is IRC currently used a whole lot between members in relation to quickfire coding help? Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043657 Share on other sites More sharing options...
Daniel0 Posted April 17, 2010 Share Posted April 17, 2010 Well, the IRC server is currently down. For now you may join ##phpfreaks on irc.freenode.net. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043658 Share on other sites More sharing options...
salathe Posted April 17, 2010 Share Posted April 17, 2010 Fire away in this thread. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043672 Share on other sites More sharing options...
webmaster1 Posted April 17, 2010 Author Share Posted April 17, 2010 Well, the IRC server is currently down. For now you may join ##phpfreaks on irc.freenode.net. Thanks. Fire away in this thread. Alritey. Do I need to close all of my database connections? (mysql_close($link);) Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043674 Share on other sites More sharing options...
Daniel0 Posted April 17, 2010 Share Posted April 17, 2010 Alritey. Do I need to close all of my database connections? (mysql_close($link);) Normally, no. PHP's garbage collection will free the resource when script execution ends. You only need to do that if you for whatever reason need to close it before that happens. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043677 Share on other sites More sharing options...
webmaster1 Posted April 17, 2010 Author Share Posted April 17, 2010 Cheers. What's the best free PHP editor featuring colored keywords and suggestions à la Dreamweaver? Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043686 Share on other sites More sharing options...
webmaster1 Posted April 17, 2010 Author Share Posted April 17, 2010 Is there such a thing as using the include() or require() functions too much? Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043687 Share on other sites More sharing options...
webmaster1 Posted April 17, 2010 Author Share Posted April 17, 2010 Is there a difference between <?php and <? ? Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043689 Share on other sites More sharing options...
salathe Posted April 17, 2010 Share Posted April 17, 2010 Cheers. What's the best free PHP editor featuring colored keywords and suggestions à la Dreamweaver? Try and bunch and work it out for yourself. This question is so subjective that any editor or IDE that we named could really not suit you. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043691 Share on other sites More sharing options...
salathe Posted April 17, 2010 Share Posted April 17, 2010 Is there such a thing as using the include() or require() functions too much? Yes, but you have to be using some really mammoth codebase or doing something silly to reach that "too much" level. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043693 Share on other sites More sharing options...
salathe Posted April 17, 2010 Share Posted April 17, 2010 Is there a difference between <?php and <? ? Three characters. Also, the short tag might not be turned on (there's a php.ini short_open_tag setting for that) so you cannot always assume it will be available. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043694 Share on other sites More sharing options...
webmaster1 Posted April 17, 2010 Author Share Posted April 17, 2010 Cheers, salathe! Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043702 Share on other sites More sharing options...
TeddyKiller Posted April 17, 2010 Share Posted April 17, 2010 For PHP tags, you could also use.. <% and <script language="php"></script> Although like salathe stated.. short tags can be turned off, and on via PHP.ini. I haven't used <% on the web yet. The short tags are <? and <%. I think the script method is always on.. not sure if you can turn it off. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043703 Share on other sites More sharing options...
cags Posted April 17, 2010 Share Posted April 17, 2010 The <% tags aren't short tags (well ok so they are the same length as short_tags, hence they are short in length, but they aren't controlled by the short_open_tag setting) they are ASP style tags and are controlled via the asp_tags settings in php.ini. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043743 Share on other sites More sharing options...
TeddyKiller Posted April 17, 2010 Share Posted April 17, 2010 The <% tags aren't short tags (well ok so they are the same length as short_tags, hence they are short in length, but they aren't controlled by the short_open_tag setting) they are ASP style tags and are controlled via the asp_tags settings in php.ini. Ahh, I knew they were ASP, aswell as <? is SGML, just thought they were both controlled as short tags. Oh well, my mistake Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043766 Share on other sites More sharing options...
oni-kun Posted April 17, 2010 Share Posted April 17, 2010 Three characters. Also, the short tag might not be turned on (there's a php.ini short_open_tag setting for that) so you cannot always assume it will be available. Maybe short tags should be placed into the swear (in programming language?) filter on SMF. [ot]So many "shy" emoticons you use[/ot] Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043959 Share on other sites More sharing options...
salathe Posted April 17, 2010 Share Posted April 17, 2010 Maybe short tags should be placed into the swear (in programming language?) filter on SMF. Maybe. Sure, why not. [ot]So many "shy" emoticons you use[/ot] It's a faithful reflection of my personality. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043963 Share on other sites More sharing options...
TeddyKiller Posted April 17, 2010 Share Posted April 17, 2010 Maybe short tags should be placed into the swear (in programming language?) filter on SMF. Maybe. Sure, why not. Filtering it to be the long php tags? Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043967 Share on other sites More sharing options...
oni-kun Posted April 18, 2010 Share Posted April 18, 2010 I like the idea, I mean the simplicity of asking something without all the overhead is nice. But it's just simply not such a good practise. Users may get confused if a lot is posted, and it may defer somewhat amount of valued traffic (such as SE indexing), IRC just seems most familiar for it, a lot of good posters hang around there. I guess this thread could be a suitable mini-Q&A thread for awhile, it's not bad in any way if one has a lot of random questions they're wondering about, It's more productive than a prolonged thread in PHP Help that only attracts a few people who've only read the title (that won't know there are other questions within) Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043987 Share on other sites More sharing options...
TeddyKiller Posted April 18, 2010 Share Posted April 18, 2010 Yeah. I guess we could make a thread simply called "Quickfire Q&A Thread" This will make it a more permenant solution to this actual thread, and giving users the chance to post questions inside as the title would say it all. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1043989 Share on other sites More sharing options...
oni-kun Posted April 18, 2010 Share Posted April 18, 2010 PHP Help is "Do you need help with some code you wrote?" and miscellaneous questions thread would fit nicely here But it's really not a 'need', Maybe write a suggestion in the appropriate forum and see what comes of it! Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1044003 Share on other sites More sharing options...
premiso Posted April 18, 2010 Share Posted April 18, 2010 "Quickfire Q&A Thread" That would work until Oni-kun finds the topic and ventures it off topic with one of his rants. Which is most likely this has never been done. It would be too easy to go off topic, like I just have done for this thread. Soon enough Thorpe may come along and lock it for going so far off topic Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1044008 Share on other sites More sharing options...
oni-kun Posted April 18, 2010 Share Posted April 18, 2010 On topic supportive thoughts about the thread was too much? Why don't you grow up and follow what you're preaching. Quote Link to comment https://forums.phpfreaks.com/topic/198834-can-we-get-a-quickfire-qa-thread/#findComment-1044010 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.