$get = mysql_query("SELECT msg FROM users_statuslog WHERE id = '$id' AND uID = '$USER'"); $msgs = mysql_fetch_row($get); foreach($msgs as $msg) unlink('../images/status/photo/' . $msg);
Oops. I was too quick. This cannot be solved this way.
$get = mysql_query("SELECT msg FROM users_statuslog WHERE id = '$id' AND uID = '$USER'"); $show = mysql_fetch_row($get); unlink('../images/status/photo/' . $show[0]);
@user457827 This is right, but has no advantage over what you used to have. I made the assumption mysql_* functions can do the same as PDO (grabbing all values from a column) and grabbed the first function that looked like ... the closest one. My fault.
Hey guys.. Just testing a login script.. I have the md5(password) in database but when i try validatiing, the md5(same passwd) is diff from the stored value.. am i missing something?
I personnally find this ridiculous, if it's hashed it will always be the same size in the database
the length doesn't change anything, on the other side you should probably set a minimum length for the password to make sure people don't use password like 123
lemme read more about it. last time i read bout it. was for joomla only. i think
np...its google.
cant see support for fb in the list of social networks
its amazing how long ive been web developing and to find out how pagination if not well done can cause infinite loops during crawling... well not really infinite. i wish they would stress this out in those php books
@SirLojik Are you talking about a system where page 1 links to page 2, and page 2 links to page 1? Properly programmed crawlers shouldn't follow links to pages they've already visited...
@SirLojik the rel='nofollow' doesn't tell crawlers not to follow the link, it just says not to store the relationship between the linked pages (as a method of demonstrating the "important links")... en.wikipedia.org/wiki/Nofollow
I think it really depends on the company. I know a few CTOs that won't hire anyone with more than one certification (they feel that it's a pointless display, and that people who have a lot of them tend to be making up for other lacking qualities)
I'm not saying I agree with it, but I know some people in hiring positions that feel that way...
I think in the end, it doesn't really matter if you have one or not. Sure, it may push you over the edge on getting an interview (and I stress may, depending on the market and type of position), but it's not going to get you the job...
Hi,
Ive been researching into PHP frameworks. I am trying to understand the utility of these frameworks.
For e.g. does facebook use a framework? I guess not.
Also, say I am developing a product which I want to sell users. Now suppose a use a framework like Zend, then I am unnecessarily imposi...
If you don't know which one to pick, Sir Lojik.. go with what most people go with.. Zend probably. Once you know it, you might have found out why you dont like it, and pick a new one that doesn't have that problem :)
I want to auto-generate a readable URL from any natural text, like this:
Latest article: About German letters - Handling äöü and ß!
would ideally be changed to this
latest-article-about-german-letters-handling-aou-and-ss.html
It should work for all latin based languages and I want to ...
So, since we're talking about frameworks, which framework do you think it would be best to learn if you eventually wanted to get a job as a PHP developer?
if only job angle is involved then i would suggest zend, as zend is promoting the framework alot , and i think the demand for zend framework developers are going to grow alot in coming times
Hence it would help when job hunting :) Frankly anything that gets you thinking in organized terms of reusable code libraries and separation of logic and display is a step in the right direction
nobody interested in debugging or profiling, but in building apps only. I am curious, what are these framework users will do when their framework-based application will stop working
Looked at one of our servers today - it seems to be running Zend Optimizer but no opcode cache. Considering we're not using Zend Guard this seems utterly pointless and from what i've read the minute gains from having Zend Optimizer are ruined by the fact we have no opcode cache. Anyone?
anyway, for a cms system you only need to support the limited subset of your target audience (the ones who actually use the cms). but all the front end stuff should be cross browser compatible