dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Joseph Witchard

Page 1 of 20 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    11
    Views
    1,675

    I'm sorry, I should have been more clear in my...

    I'm sorry, I should have been more clear in my first post.

    I was trying to get just the file name, and not anything before it and not the .php extension. I stated that the string ended as...
  2. Does that turn off all errors? And does it just...

    Does that turn off all errors? And does it just keep PHP from displaying errors by itself? If I wanted to, could I still use:


    echo $mysqli->error;

    ?
  3. Replies
    11
    Views
    1,675

    I thought $1 matched what was in the first...

    I thought $1 matched what was in the first sub-pattern? Like:


    $text = "Hello World";
    echo preg_replace('/(Hello)\s[A-Za-z]+/', '$1', $text);
    // outputs Hello

    I wasn't trying to match the...
  4. Replies
    12
    Views
    2,681

    As always, you three have helped me out. Thanks:)

    As always, you three have helped me out. Thanks:)
  5. Replies
    11
    Views
    1,675

    I know that's what you said to do, but I'm trying...

    I know that's what you said to do, but I'm trying to learn if there's a reason why it acts that way:) Using $1 on patterns in parentheses (the first parentheses pattern) has always worked for me...
  6. Great. Thanks:)

    Great. Thanks:)
  7. Keeping MySQL Improved Errors From Displaying Without @

    Is there a way I can keep MySQL errors from displaying without placing '@' in front of every function I call? Keep in mind that I use PHP's MySQLi extension.

    Thanks!
  8. Really? Is this true for all CSS or just inline...

    Really? Is this true for all CSS or just inline styling?
  9. Replies
    12
    Views
    2,681

    Does that include die()? I know that die() and...

    Does that include die()? I know that die() and exit() do the same thing, but I wasn't sure if equivalent functions/language constructs are included when their siblings are.
  10. Replies
    11
    Views
    1,675

    But I don't understand why stating that the...

    But I don't understand why stating that the string ends in that pattern doesn't work. I use the following in JavaScript to return the cursor to end of of the form field after adding more to the...
  11. [RESOLVED] Setting Textarea Width and Height

    I read that it's better to set the width and height of a textarea tag with CSS rather than with the cols and rows attributes. But, not having cols and rows specified will raise an error when you...
  12. Thank you:)

    Thank you:)
  13. Replies
    12
    Views
    2,681

    Is a destructor called automatically or do you...

    Is a destructor called automatically or do you have to call it when you're done like:

    $a->__destruct();
  14. Replies
    11
    Views
    1,675

    How come it works like that? Thanks, I didn't...

    How come it works like that?

    Thanks, I didn't realize what basename() did:) How come I would need to use look-behinds for a regular expression? I use a similar pattern for one of my JavaScript...
  15. Replies
    12
    Views
    2,681

    So it's not necessarily considered needed...

    So it's not necessarily considered needed practice to unset all of your variables? Just things like closing MySQL connections?
  16. [RESOLVED] Handling Certain Errors

    I read that on the PHP website. How are you supposed to handle those types of errors, then?
  17. Replies
    11
    Views
    1,675

    RegEx Oddities (To Me, Anyway)

    $errfile = preg_replace('/^.+\/([a-zA-Z0-9_-]+)\.php$/e', '(strtoupper($1))', $errfile);


    $errfile = preg_replace('/\/([a-zA-Z0-9_-]+)\.php$/', '($1)', $errfile);

    In the first one, if I use...
  18. Replies
    12
    Views
    2,681

    Do you think you could maybe give me a code...

    Do you think you could maybe give me a code example? (Nothing too complicated, mind you; I'm still new to OOP.)
  19. Replies
    12
    Views
    2,681

    [RESOLVED] Class Destructor Method

    Is there any reason to define a destructor method for your classes? I just wrote my first OOP script, and I got to thinking about the __destructor method, but I never bother to get rid of the data in...
  20. Replies
    2
    Views
    1,976

    But why won't they work that way? I'm trying to...

    But why won't they work that way? I'm trying to learn from my mistakes so as to make fewer of them in the future.
  21. Replies
    4
    Views
    1,983

    Thanks:)

    Thanks:)
  22. Replies
    2
    Views
    1,976

    Nav Buttons Mess Up When Not Floated

    * {margin: 0px; padding: 0px; }
    html {
    margin: 0px;
    padding: 0px;
    height: 100%;
    }

    body {
    background-color: #000000;
    font-family: Tahoma, Georgia, Verdana, Arial, Times,...
  23. Replies
    4
    Views
    1,983

    I thought objects and classes were the same?

    I thought objects and classes were the same?
  24. Replies
    4
    Views
    1,983

    [RESOLVED] Using This vs. Self

    What is the difference between using $this->var and self::var? I've been reading tutorials, but I still don't understand.
  25. Replies
    7
    Views
    1,092

    What exactly is $context? I see what it outputs,...

    What exactly is $context? I see what it outputs, but I don't understand it. For example, I ran a test yesterday by assigning an undefined constant to a variable, and the output of $context was array.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles