Jump to content

Can we get a quickfire Q&A thread?


webmaster1

Recommended Posts

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Is there a difference between

<?php

and

<?

?

 

Three characters. :shy:

 

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. 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Three characters. :shy:

 

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]

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

PHP Help is "Do you need help with some code you wrote?" and miscellaneous questions thread would fit nicely here  :shy: But it's really not a 'need', Maybe write a suggestion in the appropriate forum and see what comes of it!

Link to comment
Share on other sites

"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 ;)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.