Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. Well, then you have your answer, don't you?
  2. Daniel0

    PHP CLI

    You can do it on any platform. Check out the PHP manual for more information. It's got a section about the CLI.
  3. Daniel0

    PHP CLI

    That is because CLI means Command Line Interface. So PHP CLI would be using PHP from the command line.
  4. Your question is unclear. You'll have to elaborate if you want any useful answer. Read this HOWTO: http://catb.org/~esr/faqs/smart-questions.html
  5. I would say it's common sense. These kinds of people are not going to read stickies.
  6. You can perhaps check this out: http://svnbook.red-bean.com/
  7. I usually use a reset stylesheet and then use em for font sizes.
  8. It's the only editor I know of that cannot even interpret LF as a new line.
  9. Because it saves you from starting from scratch on every single project. If it's a good framework it'll also be well tested both using unit tests, but also in real development environments. This gives you a kind of quality assurance.
  10. The court ruling forbidding the sale of Word will never be enforced, I think. Thousands of companies throughout the world (including governments) are relying on Word. Just further shows that software patents are disruptive and useless.
  11. I think the hardware requirements are actually lower. It does seem much more snappy than Vista. For regular browsing I rarely go above 50% memory usage even though Firefox is a major memory hog. The new taskbar takes a little while getting used to though. Another neat thing is that when you're on the Power Saver profile and are running on battery, W7 automatically turns off the glass transparency for extra battery time.
  12. With what? You never asked a question...
  13. I think W7 is an awesome OS. I've been using it since the final RTM was leaked. Now I'll just have to wait for an, uh... way of activating it. Or wait until I can get it on MSDNAA.
  14. Uh... why don't you do if ($result = mysql_query("SELECT COUNT(*) FROM signup WHERE username = '" . mysql_real_escape_string($_POST['username']) . "'")) { $res = mysql_fetch_array($result); $ok = (bool) $res[0]; } else { $ok = false; } ? Instead of linearly searching through all rows? Of course you'll need an index on the username field.
  15. Are you referring to Zune HD? My understanding is its browser is based on IE 7 (but I could be wrong here). Seems like it's using something called Mobile IE6, which, as far as I can tell, does not follow the version numbers of the normal IE.
  16. Likely you're not the server admin. Contact your host.
  17. No, because that would also block 208.130.63.201, which is not part of that interval. Surely treating the IP address as a single unsigned integer (like it already is) would be easier. By the way, it's called an octet, not a quadrant.
  18. The Zune Something is using IE6 as its rendering engine...
  19. I don't quite understand your problem. Could you elaborate a bit or perhaps show some (pseudo)code?
  20. You need to remember that an IP address is ONE unsigned integer, not four. The dotted representation is only for humans, not for computers. Represented as an unsigned integer in base 10, the IP address of phpfreaks.com (66.97.171.5) is: 1113697029 So imagine we want to ban 66.0.0.0/8 we are blocking the range 1107296256 (66.0.0.0) to 1124073471 (66.255.255.255). It is clear that 1107296256 <= 1113697029 <= 1124073471. Thus the PHP Freaks IP address is within the range and is banned. Assuming you have the four octets in variables $oc1, $oc2, $oc3, $oc4, the numeric representation of the IP address is given by: In case you're wondering, assuming $on are the four octets of a dotted IP address, the numeric representation is given by: $ip = ($o1 << 24) + ($o2 << 16) + ($o3 << + $o4;
  21. I believe they are just sample IP addresses, ignace
  22. If you want to block an IP address interval, just do like this (we'll assume the user IP address is in $userIpAddress): $lowerBound = '100.111.222.333'; $upperBound = '200.111.222.333'; $userIpAddressInt = ip2long($userIpAddress); if (ip2long($lowerBound) >= $userIpAddressInt && ip2long($upperBound) <= $userIpAddressInt) { echo 'go away'; }
  23. Hence the reason why you would just outline the full ownership terms in the contract. No misunderstandings.
  24. I don't think there is much I can show. You setup an SVN (or git, mercurial, CVS, etc.) repository. You commit all changes there. On the production server you do a checkout/update or an export of the repository. If you have experience with version control software you'll know what I mean, otherwise you probably won't. Even if you don't want to use this approach for deployment, I would recommending using some sort of version control regardless.
  25. In fact, this is the footer on PHP Freaks: <div id="footer"> <p id="links">Designed by and developed by <a href="http://www.multimedia-technologies.com">Multimedia Technologies</a> and <a href="http://degeberg.com">Daniel Egeberg</a></p> <p>Copyright © PHP Freaks | <a href="http://www.thewebfreaks.com">The Web Freaks</a></p> </div> 81.43% of my visits come from phpfreaks.com. Then again, my website is shit, so there is not really anything to see there.
×
×
  • 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.