Collected solutions to common problems.
Results 1 to 11 of 11

Thread: Collected solutions to common problems.

  1. #1
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Systems Vehicle "Thrilled To Be Here"
    Posts
    21,774

    Collected Solutions to Common Problems

    Salutations to the Forum,

    This thread is EXPERIMENTAL. The behaviour of this thread, the title of this thread, the contents of this thread, and this thread's very existence may change without notice in future (in fact I hope it will. Except for the last bit. Can't edit something if it's deleted).
    The format is pretty simple. This thread contains links to other threads that discuss the problem in the title, offering solutions, references and so on. These separate threads used to be posts in one thread, but that thread ended up pretty big; and since URLs here can't use page-local anchors, the saving that would have come from using those wasn't available either. So each question has now been split into its own thread, accessible via this index.

    These threads are open, so feel free to post if you think there's anything missing, other problems, details I've forgotten, further references, suggestions about style and layout (I'm terrible at style), or mistakes I've made. I'll go through now and then and combine those suggestions (with recognition) so that over time with community input this thread will become an invaluable resource for people looking for help.

    If you want to write something similar - a survey of solutions to a particular common problem (with citations and whatnot), feel free to do so, post it, and PM me with the link. I'll check it out and see about adding a link to it here. If it's particularly long and detailed or specialised, of course, it would be better as a contributed article (the forum search engine doesn't cover articles, but I suspect they get higher traffic).
    It's halfway to being a wiki. Kind of a moderated wiki.

    Yours Sincerely,
    Weedpacket

    Collected solutions to common problems.
    1. Getting Help At All
    2. Headers Already Sent...
    3. Passing Javascript variables to PHP
    4. Getting the browser to open a new window/in another frame/do something when I click the mouse...
    5. HTML, images and/or attachments in email
    6. Displaying three or four items per row (or column) in a table
    7. PHP Bulk Email - Best Practices
    Last edited by Weedpacket; 07-21-2009 at 01:00 AM.
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

  2. #2
    WARNING: I am watching u! jayant's Avatar
    Join Date
    Aug 2002
    Location
    New Delhi, India
    Posts
    886
    If you haven't found the answer to your problem in this thread, then you will definately find it here.

    remember search, search and search and then only click the damned "New Thread" button.
    Jayant Kumar Gandhi
    Computer Help | GZip/ Page Compression Test | My pic/ How I look?
    Marking the thread as 'resolved' is more important than saying "thanks. that solved it"
    Click "Mark Thread Resolved" in the thread tools and the top of the thread.
    Keep sensible thread titles.

  3. #3
    Senior Member bbaassiri's Avatar
    Join Date
    Oct 2002
    Location
    canada
    Posts
    165
    congrats weedpacket on communicating *good* behaviour on using a forum. kinda goes along the lines rtfm. Remember for newbies that if you are encountering a problem it is highly likely that it has been seen before. Just like code or a program, if you have thought of it, hundreds before you have aswell.

  4. #4
    Unrated... The Chancer's Avatar
    Join Date
    Aug 2002
    Location
    Flying... always flying (apart from when crashed)
    Posts
    1,253
    Can we add a "How to look at E-Mails" section / link

    Just answered three all the same:

    "How can I look at E-Mails and do......?"

    Again - recommendations say Search forum, RTFM, STFW - yet how many just click "New Thread" ??
    The Chancer
    ----------------
    Does This Mean I'm Bored

  5. #5
    Kerflaffles, eh?
    Join Date
    May 2003
    Location
    Pennsylvania, USA
    Posts
    388
    Would be REAL nice if you could create an intermediary page for people so that after they click on "New Thread", it gives them links to the search thing and maybe an actual FAQ. Would be sweet...
    Use the PHP tags when posting PHP.
    Mark all issues as resolved once your question is answered.

    http://amale.zibings.com/
    N2 Framework Yverdon

  6. #6
    Junior Member
    Join Date
    Aug 2004
    Posts
    15
    being a noob myself, how about.....

    Whenever a post goes to resolved, why not copy and paste the question and answer into this very topic and have a list.........

    Thus the question and it's answer gets saved for future reference......

    Sorry if that sounds stupid

    #/ shutdown now -h
    ERROR: shutdown not avaliable

    #/ YODA | shutdown NOW -h
    WARNING: forced shutdown complete

  7. #7
    Member
    Join Date
    Feb 2003
    Posts
    30
    I think you need to direct user to this highly educational document:

    http://www.albinoblacksheep.com/flash/posting.php

  8. #8
    Senior Member
    Join Date
    May 2005
    Location
    Houston, TX
    Posts
    466
    Just a quick coding tip for any new people

    If your writing a function that relys on a return value being 2 different results, you dont need to specify the else condition.

    example:

    PHP Code:

    function my_function($var) {

         if(
    $var == 2) {

              return 
    true;

      } else {

              return 
    false;


    Could be reduced to

    PHP Code:

    function my_function($var) {

         if(
    $var == 2) {

             return 
    true;

    }

         return 
    false;


    Or even more reduction

    PHP Code:

    function my_function($var) {

        if(
    $var == 2) return true;

         return 
    false;


    Or even more reduction

    PHP Code:

    function my_function($var) {

       (
    $var == 2) ? return true : return false;


    Cheers.

  9. #9
    I'm as confused than you PABobo's Avatar
    Join Date
    Oct 2005
    Location
    Anywhere there is a computer
    Posts
    49

    Can others add?

    Hey weedpacket,
    first thanks for all your input saved me quite a bit. There have been issues I have ran into that i couldn't find here or basically anywhere. Through loss of hair many aggravating nights and coffee i have found solutions that i would like to save other people the loss of hair and etc. Can i post or send you?

  10. #10
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Systems Vehicle "Thrilled To Be Here"
    Posts
    21,774
    Quote Originally Posted by PABobo
    Through loss of hair many aggravating nights and coffee i have found solutions that i would like to save other people the loss of hair and etc. Can i post or send you?
    Yes; feel free. I've just added a few lines to the original post outlining how people can go about this.
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

  11. #11
    Senior Member
    Join Date
    Jul 2004
    Location
    Oxford, England
    Posts
    1,983
    Quote Originally Posted by Sayian
    Or even more reduction

    PHP Code:

    function my_function($var) {

       (
    $var == 2) ? return true : return false;


    Cheers.
    Or, even more reduction:


    PHP Code:
    function my_function($var) {

       return (
    $var == 2);



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •