Remember that memcached is only intended to be a cache of data that is already stored in a more permanent place. It's not supposed to store fresh data.
I dunno where you're working, but if you have even basic PHP chops you should probably be making more than this. What area of the country?
One of your greatest strengths as a PHP programmer should be your flexibility. PHP is so tightly coupled to HTML that you should really have excellent HTML / CSS / JS+jQuery skills to be "the whole package", as it were. This will make you very valuable to lots of different people.
Python makes it much easier to write good code by enforcing a lot of good practices that PHP will wink and let pass. It also has a lot of really awesome datamunging ability that takes several times the code in PHP.
That said, it is not a web language first-and-foremost, as PHP is. So you'll need a web framework to take care of things that PHP handles for you. Most common: web2py, Django, Flask, Pylons.
PHP lets you drop in some code into an HTML file and run with it in five minutes. It's easier by far to get started since it was designed for the web. Python is more flexible (and I think it's hella fun to write) but it takes a lot of getting used to if you just want a quick-and-dirty app.
Learn both if you want, I did. I would pick PHP first, though.
Frameworks are very nice (CakePHP, Kohana, Zend) but they hide some of the low-level implementation. It's really a distinction of whether you need to learn PHP, or a framework built on PHP.
I can't find the specific article I'm thinking of, but there was a discussion recently that frameworks should be used to ease the pain of the developer implementing a login system for the nth time, not to provide a drop-in black box that you use without knowing the details.
PHP of all languages is so friendly to use. This also means you can pick up bad practices easily, because it's so forgiving.
I would at least do some projects on your own that implement your own login functions, say, before just using a framework. For many small sites, that could be all you need. If you're eventually looking to do something more enterprise-y a framework helps alleviate much of the repetitive heavy lifting.
That guy's Summer Sale badge is at level 3,333, so yeah... it doesn't end :P
Google "database unique constraint"
I like Limonade an awful lot.
http://limonade-php.github.com/
It's your image paths, you need to set them to absolute paths instead of relative ones.
Much easier to just add one day and look between an entire week, e.g., BETWEEN '2012-08-01' AND '2012-08-08'.
http://www.underconsideration.com/brandnew/archives/follow-up_gapgate.php
You might look into the evercookie:
http://samy.pl/evercookie/
They're supposedly working on a redesign at the moment, but I agree.
And yep, a website is tied to a (sub)domain. Each website can contain multiple apps in subdirectories, though you'll often just mount one app to /
This makes it easy to blow an app away and replace it.
Webfaction. Does exactly what you want.
Remember that memcached is only intended to be a cache of data that is already stored in a more permanent place. It's not supposed to store fresh data.
Didn't even load in Firefox 5 beta.
Time To Live, though he really just means expiration time.
Gah. Please take this code out back and shoot it. At least printf() so you can make it generic.
Ugly so I can compact it for posting on Reddit but you can heredoc a template and such to make it clean and easy to follow.
Gads, are we back in BASIC days?
I started my first 9-5 after college making $90k, doing software dev. If you don't live in the wrong place, you're just in the wrong line of work :P
Okay, Midwest I can see that being an entry-level salary, though I'd still look at moving up soon :P
Do you have portfolio pieces / active sites you've worked on, any self-written side projects?
I dunno where you're working, but if you have even basic PHP chops you should probably be making more than this. What area of the country?
One of your greatest strengths as a PHP programmer should be your flexibility. PHP is so tightly coupled to HTML that you should really have excellent HTML / CSS / JS+jQuery skills to be "the whole package", as it were. This will make you very valuable to lots of different people.
Python makes it much easier to write good code by enforcing a lot of good practices that PHP will wink and let pass. It also has a lot of really awesome datamunging ability that takes several times the code in PHP.
That said, it is not a web language first-and-foremost, as PHP is. So you'll need a web framework to take care of things that PHP handles for you. Most common: web2py, Django, Flask, Pylons.
PHP lets you drop in some code into an HTML file and run with it in five minutes. It's easier by far to get started since it was designed for the web. Python is more flexible (and I think it's hella fun to write) but it takes a lot of getting used to if you just want a quick-and-dirty app.
Learn both if you want, I did. I would pick PHP first, though.
Frameworks are very nice (CakePHP, Kohana, Zend) but they hide some of the low-level implementation. It's really a distinction of whether you need to learn PHP, or a framework built on PHP.
I can't find the specific article I'm thinking of, but there was a discussion recently that frameworks should be used to ease the pain of the developer implementing a login system for the nth time, not to provide a drop-in black box that you use without knowing the details.
PHP of all languages is so friendly to use. This also means you can pick up bad practices easily, because it's so forgiving.
I would at least do some projects on your own that implement your own login functions, say, before just using a framework. For many small sites, that could be all you need. If you're eventually looking to do something more enterprise-y a framework helps alleviate much of the repetitive heavy lifting.
Require the user to enter their existing password as part of the password change process.
End of this list.
Back to top