Jump to content

Baronen

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.webdevelopmenttips.com/

Profile Information

  • Gender
    Not Telling

Baronen's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Google has updated their "Let's make the web faster" PHP article. They have now added that you should avoid Getters and Setters and set the value directly to the property. What do you guys think about that? I use getters and setters very often, i think you get a much cleaner code, altough i have never done any performance tests. Read googles suggestions at http://code.google.com/speed/articles/optimizing-php.html.
  2. SELECT * FROM tbl WHERE DATE_FORMAT(datefield, '%Y-%m-%d') > CURDATE() - INTERVAL 7 DAY This is one way, i think it should work, not tested though
  3. As MadTechie writes: My guess is that the message column in the database is of type Int.
  4. Without an error it's hard But make sure tbl1 and tbl2 has the same number of columns, this is required because you select *
  5. # Redirect .php files to .html files (SEO friendly) [internal and External] RewriteBase / RewriteRule ^(.*)\.php$ /$1.html [R=301,L] RewriteRule ^(.*)\.html$ $1.php [R=301,L] You have to change your RewriteBase from / to /website I think it would do the trick
  6. Hey Guys. I'm a PHP-developer from Sweden who is new at phpfreaks.com, and so far i'm liking it. At my Swedish blog I have had a discussion with a .NET developer who says that the use of Method Chaining is "bad practice" and makes the code hard to read. I use chains in my projects and personally I like them i think the code is easier to read. What do you guys think about Method Chaining, "bad practice", hard to read?, better perfomance?
×
×
  • 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.