Page 2 of 2 First 12
  • Jump to page:
    #16
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by Sepodati
    Man... part of me wants to believe this is Arty or someone running the long con because this is SO ****ing out there. I don't think anyone could keep up acting this narcissistic and clueless for so long, though.
    I've been like this for half a dacade now and my family continuously believe every word I say when I tell them I'm building programs (.exe computer softwares and now .php webscripts) that will rock the world and save the world prom poverty.
    I sometimes think to myself how come they never think like ... (what you just thought).
    And now, I find programmers in this forum believing in me too or it seems that way because they have not been rude enough to hint otherwise.
    Go to daniweb forum and see how rude they were to me. But not enough like you, though.
    Catacaustic and Kicken here would get a link to my venture as they have been polite and patient so far. Catacaustic mostly patient enough not to lash-out and tell me he does not believe me (I know he does not believe me from his hints but atleast he was not rude enough to say it). And Kicken always polite and never even made hints he does not believe me and so i don;t know whether he's in the same boat with Catacaustic.
    As for you, you're like the shark in the water. Lol!
    I might drop you a link too just to s**t (quieten you up for good) you up for good if I feel you won't abuse my website.
    Tonight I started working on something which I will explain to Catacaustic. Not bothering with you.

    Btw, don't blame others for believing me. They can see I'm working and not just talking. I open threads now and then and that tells them I'm working.
    And if I'm working then I must be onto something. Meaning, I must be building something. That's as far as they go. But just because I'm building something does not mean it's gonna work. But, why be skeptical without seeing them first ? Why open your big mouth and then see it get trampled and humiliated later-on or "sussed-out" (id you don;t know what that means then goolign it!) ? Their sensible enough to give me the "benefit of the doubt". You should be like that too.

    Actually, I won't bother giving you my link. I don't trust you. I'll get others to setup clones and then better to drop you a PM to check it out. That way, you won't be able to abuse my servers bearing any grudge that I proved you wrong and quietened you up for good. Sussed you out.

    EDIT: Just remembered, gw1500se does not trust me either but he still provides all the help he can. Have to drop him a PM too. I'll get on his good books from then!
    And, Benanaman and me have some history in a few forums. Even though he does not like me, he still helps whenever he can even after trailing me to other forums and trying to get me banned there. After all his actions on other forums, I'm surprised he most recently bothered to help me out with a code sample here. He deserves a PM too. I don't think I'll get in his good books to become his fav but I reckon he would give me some respect and see me in a new light.
    As for you, when you see me proved you wrong, I think you'll just start hating me even more.
    Last edited by UniqueIdeaMan; January 21st, 2018 at 10:50 AM.
  2. #17
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Caro, Michigan
    Posts
    14,950
    Rep Power
    4554
    It's been six months and you're still ****ing around with single and double quotes.

    Feel free to come around and Winklevoss me when you hit it big and I'll eat all the crow you want, but I'm confident I'm on the right side of history here.
    -- Cigars, whiskey and wild, wild women. --
  4. #18
  5. No Profile Picture
    Contributing User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,465
    Rep Power
    653
    Just for grins how about the OP posting the difference between double and single quotes in the PHP context. Based on the OP's extensive reading of PHP basics.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  6. #19
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by Sepodati
    Man... part of me wants to believe this is Arty or someone running the long con because this is SO ****ing out there. I don't think anyone could keep up acting this narcissistic and clueless for so long, though.
    I know narcissisticism is real unintelligent. But to tell you the truth, I can't help it and neither will you if ONLY you knew how much intelligent I am becoming day by day.
    It's like I always come-up with a solution. Shall I change my Username to "Mr. Solution" ?
  8. #20
  9. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by gw1500se
    Just for grins how about the OP posting the difference between double and single quotes in the PHP context. Based on the OP's extensive reading of PHP basics.
    Well for starters, these are valid:
    PHP Code:
    echo 'Get Lost!';
    echo 
    "Get Lost!"
    PHP Code:
    $greeting get lost;
    $greeting "get lost"
    Note the escaping:
    PHP Code:
    echo "Your Video File \"$file_name\" has been uploaded successfully! You will get notified once your ID has been verified successfully.</h3>"
    Not sure about this one and so might aswell experiment it out one day but I reckon it is valid though as I think I did experiment that once 12 mnths back:
    PHP Code:
    $greeting 'get lost'
    Invalid:
    PHP Code:
    echo 'Your Video File \"$file_name\" has been uploaded successfully! You will get notified once your ID has been verified successfully.</h3>'
    In short, if you want the variable value to show up then don't use sngle quotes. Don't do this:
    PHP Code:
    echo 'Your Video File "$file_name" has been uploaded successfully! You will get notified once your ID has been verified successfully.</h3>'
    Nor this:
    PHP Code:
    echo 'Your Video File \"$file_name\" has been uploaded successfully! You will get notified once your ID has been verified successfully.</h3>'
    But do this instead:
    PHP Code:
    echo "Your Video File \"$file_name\" has been uploaded successfully! You will get notified once your ID has been verified successfully.</h3>"
    Also, no need to use the concatenator inside a dble quote. Concatenator combines 2 strings. And that means it combines the words that are inside 2 sngle quotes.
    In short, use the sngl quote in echoes for LITERALs.

    My memory is not good like it used to be 25yrs earlier. But, I guess I remembered enough about the differences between a sngle and dble quote.
    And yes, I did make lots of mistakes regarding these 2 quotes which like you other forums picked-up on. I needed telling a few times before I started to remember things what I learnt.

    PHP Code:
    ECHOS & STRINGS<br>
    <?php
    //Strings have no length limit.
    //To output a string, you can either echo a string in quotes ("I love using php!")/('I love using php!') or echo a string variable ($myString = "I love using php!")/($myString = 'I love using php!').
    /*To echo a string or a variable, it is not required to quote it. Nor, end it with a semi colon. 
    Valid String Echos: 
    Eg 1a. echo 123. 
    Eg 2a. echo 123;. 
    Eg 3a. echo "123". 
    Eg 4a. echo "123";. 
    Eg 5a. echo '123'. 
    Eg 6a. echo '123';.

    http://www.dyn-web.com/php/strings/type.php
    The echo function is not able to successfully convert an array to a string. All it can do is issue a notice and then display Array. 
    However, you can display the contents of arrays using the var_dump function.


    Valid Variable Echos (with semi colon at the end):
    Eg 1b. $variable = 123. echo $variable;

    Eg 2b. $variable = "123";. echo $variable;
    Eg 3b. $variable = '123'. echo $variable;

    Eg 4b. $variable = "123";. echo "$variable";
    Eg 5b. $variable = '123'. echo "$variable";

    Eg 6b. $variable = 123;. echo "$variable";

    Valid Variable Echos (without semi colon at the end):
    Eg 1b. $variable = 123. echo $variable

    Eg 2b. $variable = "123";. echo $variable
    Eg 3b. $variable = '123'. echo $variable

    Eg 4b. $variable = "123";. echo "$variable"
    Eg 5b. $variable = '123'. echo "$variable"

    Eg 6b. $variable = 123;. echo "$variable"

    NOTE: To echo a STRING, it doesn't matter if you are directly echoing the STRING or echoing it via a VARIABLE. The string does not have to be quoted. Neither the variable that holds the string.
    If you quote the variable, make sure not to use single quotes. Else, the variable name would be echoed without being escaped. Echoed literally.
    Eg. 
    $variable = Hello World;
    echo '$variable';

    Would output:
    '$variable'.
    */

    //Don't use quotes (single or double) inside a string unless it is escaped.

    //Echo is not a function, rather a language construct.
    //Escape quotes that are within the string with a backslash. To escape a quote just place a backslash directly before the quotation mark, i.e.1 \" & i.e.2 \'.
    //The backslash will tell PHP that you want the quotation to be used within the string and NOT to be used to end echo's string.
    //Use single quotes (apostrophes) for quotes inside your double quoted echo. (echo "I said: 'I love using php!'").
    //Use double quotes for quotes inside your single quoted echo. (echo 'I said: "I love using php!"').

    //Before you can use a string you have to create it! A string can be used directly in a function or it can be stored in a variable.
    //Double-quotes allow for many special escaped characters to be used that you cannot do with a single-quote string. Once again, a backslash is used to escape a character. Exmple:
    //Note: If you try to escape a character that doesn't need to be, such as an apostrophe, then the backslash will show up when you output the string.

    /*These escaped characters are not very useful for outputting to a web page because HTML ignore extra white space. A tab, newline, and carriage return are all EXAMPLEs of extra (ignorable) white space. However, when writing to a file that may be read by human eyes these escaped characters are a valuable tool!
    $newline = "A newline is \n";
    $return = "A carriage return is \r";
    $tab = "A tab is \t";
    $dollar = "A dollar sign is \$";
    $doublequote = "A double-quote is \"";
    */


    /* Strings that are delimited by double quotes (as in "this") are preprocessed in both the following two ways by PHP −

    Certain character sequences beginning with backslash (\) are replaced with special characters

    Variable names (starting with $) are replaced with string representations of their values.

    The escape-sequence replacements are −

    \n is replaced by the newline character
    \r is replaced by the carriage-return character
    \t is replaced by the tab character
    \$ is replaced by the dollar sign itself ($)
    \" is replaced by a single double-quote (")
    \\ is replaced by a single backslash (\)

    */
    ?>

    Eg 1a:
    <?php
    $myString 
    "This is a variable value!";
    echo 
    $myString;
    ?>
    <br>

    Eg 1b:
    <?php
    $myString 
    'This is a variable value!';
    echo 
    $myString;
    ?>
    <br>

    Eg 2a:
    <?php
    $myString 
    "This is a variable value!";
    echo 
    "$myString";
    ?>
    <br>

    Eg 2b:
    <?php
    $myString 
    'This is a variable value!';
    echo 
    '$myString'//Variable value won't show-up unless variable name is within double quotes or no quotes. This is due to the variable being taken literally as a string within the single quotes.
    ?>
    <br>

    Eg 3a:
    <?php
    $myString 
    "This is a variable value!";
    echo 
    '$myString'//Variable value won't show-up unless variable name is within double quotes or no quotes. This is due to the variable being taken literally as a string within the single quotes.
    ?>
    <br>

    Eg 3b:
    <?php
    $myString 
    'This is a variable value!';
    echo 
    "$myString";
    ?>
    <br>

    Eg 4a:
    <?php
    echo "This is a literal string!";
    ?>
    <br>

    Eg 4b:
    <?php
    echo 'This is a literal string!';
    ?>
    <br>
    <br>

    Eg 5:
    //NOTE: FINDOUT WHY THE ECHOED STRING IS GOING IN THE NEXT LINE !!!
    <?php
    echo "<h1>I love using PHP!</h1>";
    ?>
    <br>
    <br>

    Eg 6:
    //NOTE: FINDOUT WHY THE ECHOED STRING IS GOING IN THE NEXT LINE !!!
    //FINDOUT WHY THE <h1> & </h1> is not literally echoed!
    <?php
    echo '<h1>I love using PHP!</h1>';
    ?>
    <br>
    <br>


    Eg 1:
    <?php
    //If the echoed string is in double quotes then use single quotes for the quoted part of the string.
    echo "<h5 class='specialH5'>I love using PHP!</h5>";
    ?>
    <br>

    Eg 2:
    <?php
    //If the echoed string is in single quotes then use double quotes for the quoted part of the string.
    echo '<h5 class="specialH5">I love using PHP!</h5>';
    ?>
    <br>

    Eg 3:
    <?php
    //If both the echoed string and quoted part of the string is in double quotes then escape the quoted part of the string with a backward slash.
    echo "<h5 class=\"specialH5\">I love using PHP!</h5>";
    ?>
    <br>

    Eg 4:
    <?php
    //If both the echoed string and quoted part of the string is in single quotes then escape the quoted part of the string with a backward slash.
    echo '<h5 class=\'specialH5\'>I love using PHP!</h5>';
    ?>
    <br>
    <br>

    <?php

    ?>
    <br>
    <br>
    I only pasted above about 5% of my notes as I get this forum warning: The text that you have entered is too long (45618 characters). Please shorten it to 30000 characters long.

    So, from 1 to 10, where 10 is best. How well did I do and how well did I satisfy you ?
    I'll wait for Catacaustic and Kicken's score too.
    Last edited by UniqueIdeaMan; February 16th, 2018 at 10:47 AM.
  10. #21
  11. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,425
    Rep Power
    2105
    A score for that? I hate to say it, but at most it would be 1 out of 10. You've just regurgitated text book examples.

    What was asked was... What is the difference between using single and double quotes? Here's a hint: It's not in how they are typed. Single and double quotes are processed differently by the PHP parser, but do you know how they are treated differently?. That's what gw1500se was asking about.
  12. #22
  13. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by Catacaustic
    A score for that? I hate to say it, but at most it would be 1 out of 10. You've just regurgitated text book examples.

    What was asked was... What is the difference between using single and double quotes? Here's a hint: It's not in how they are typed. Single and double quotes are processed differently by the PHP parser, but do you know how they are treated differently?. That's what gw1500se was asking about.
    Did I not mention that anything inside single quotes are strings ? Anything inside double quotes can get processed.
    if you want to literally echo something then use the single quotes. Else, the dbl. That is the basic without getting too much into it. And yes, I know about the escapings and all that.
    echo "He said: \"Bog off!\"".
    But best to do it:
    echo "He said: 'Bog off!'".
  14. #23
  15. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by Catacaustic
    A score for that? I hate to say it, but at most it would be 1 out of 10. You've just regurgitated text book examples.

    What was asked was... What is the difference between using single and double quotes? Here's a hint: It's not in how they are typed. Single and double quotes are processed differently by the PHP parser, but do you know how they are treated differently?. That's what gw1500se was asking about.
    Did I not mention that anything inside single quotes are strings ? Anything inside double quotes can get processed.
    if you want to literally echo something then use the single quotes. Else, the dbl. That is the basic without getting too much into it. And yes, I know about the escapings and all that.
    echo "He said: \"Bog off!\"";
    But best to do it:
    echo "He said: 'Bog off!'";
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo