Jump to content

xylex

Members
  • Posts

    292
  • Joined

  • Last visited

Everything posted by xylex

  1. I like to cook without an oven or stovetop, just an open fire. I don't have to worry about any of those confusing dials or buttons, I can just put stuff right on there. People have been telling me for years that I can get faster, more consistent results using an oven to do things like bake a cake or make a casserole, but I think they're wrong. I'm really good with just a pile of wood and some matches.
  2. Doing something like this to "lower the bar" is almost always a bad idea. Which is why I have no idea why GOTO was added in 5.3. If $: is defined by the specific script as a call to one specific function, where is the portability/reusability of the code? If you try to standardize it that $: is a synonym for mysql_real_escape_string, then what about using the code with other databases? If you use a library that overrides what the $: does, then what if that stops your data from being escaped? There are just way to many bad things that I could see happening to justify taking the risk to save an extra 10 keystrokes each time.
  3. A 30" monitor turned vertically will give you this. You get 40 lines now with 900 px, a 30" vertical gets you 2560 px, and is wider than your current display. 40 lines/900 = 113 lines/2560 But in my opinion, I've worked with both 24" and 30" monitors before, and with either one, I've never found myself using the entire display for a single window because it's really a waste of space. You can only follow so many lines of code in your field of vision before it's just peripheral noise. Right now, on my dev machine, I have dual 24" monitors, with Eclipse in one and Firefox surrounded by 4 terminal windows in the other. When I was using a 30", Eclipse was about the same size as I have it now and I had some terminal windows around that.
  4. Plasma TV's don't give you that kind of resolution. A 1080P plasma is 1920x1080, so it just looks like crap when you get text that big reading it up close. If you go larger than 1920x1400 or so, normal resolution for a 24", you get into needing to use the dual mode on video cards, so you'll need to step it in that area if you want more than one 30". And you can get like 4 24" monitors and a decent video cards to drive them all for cheaper than a 30".
  5. There's basically three categories for IDE's these days Eclipse based - Zend, Aptana, PDT and PHPEclipse Zend is a commercial product, pricey compared to all the free options, but generally considered to be the most complete PHP IDE out there. PDT is a free open source project now backed by Zend, and is similar but less robust than the full Zend IDE. Aptana is a good IDE, free for the basic PHP editor, and commercially backed. Though not quite as extensive as Zend when it comes to PHP, Aptana studio supports many other languages and can give you a more consistent set of features/functionality/behavior than using the language specific plugins if you are jumping language to language a lot PHPEclipse used to be the main Eclipse editor for PHP, but with Zend making the push with PDT, there seems to be dwindling support and use of this NetBeans based I only know of the main PHP addon for NetBeans. I've typically seen this used more by Java guys/environments who also do PHP than a lot of straight PHP guys using it, but this is backed by Sun, the owners of MySQL, and it looks like they're trying to do some cool integration between the two there, so I wouldn't sell it short. Everything else It's pretty rare that I talk to someone anymore who works in a team environment that isn't using an Eclipse or a NetBeans based IDE. Not that they're necessarily bad, but when the other ones are really good, widely used and supported, and can be customized easily to work with many languages and dev environments, they kind of set the standard.
  6. You're asking for an abstract run time on an abstract query inside an abstract script running on an abstract cloud system? Any reason you can't just add the million records and try it out? It'll only take a few minutes.
  7. Flash considers www.domain.com a separate server than domain.com, so there's a check to prevent XSS or spoof type attacks. You either need to remove the prefix part of the full URL - "http://www" - where you're point the Flash to the server and use a relative path, or you need to allow www.domain.com to share information cross domain with domain.com by adding a crossdomain.xml file to your webroot.
  8. Make a normal web page and serve the gzipped version?
  9. foreach ($_POST as $key=>$val) { if ($val !== "") { if ($key == "q1" || $key == "q2" || $key == "q3" || $key == "q4") { } elseif ($key == "q5") { } $r = mysql_query($q); } } You're running the query every time whether or not $key matches the if/elseif, so the post key=> value pairs for "submit" and "token" are causing a query to be run with the last set value of $q.
  10. Isn't that question about as relevant as when clients ask how much an average website costs? My favorite response to that is that bbc.co.uk has an annual budget of around £145 million, so they should budget for something around there for the same type of quality.
  11. Yeah, it's pretty accurate I think. I passed my ZCE test a few years back and I know I failed the at least the DOM stuff then. The last time Zend talked about it that I know of, the test had an 85% pass rate, so I wouldn't stress about it too much. And for the same reasons, I don't really see a lot of value in the certification other than to show people you're serious enough about PHP that you're willing to invest $125 in a piece of paper about it.
  12. session_regenerate_id() is a necessary thing to do to prevent session fixation attacks, so yes, this is really important to include if you have a forever cookie. Also, make sure that your algorithm to generate a unique key for a forever login cookie is sufficiently difficult to figure out and should probably include some part of the user's password in the pre-hash value. Recently, there was a commercial CMS that went open source, and showed that the forever cookie was just an md5 of the publicly available user id salted with a 6 digit number picked on install, so that would take someone about two minutes to get admin access.
  13. At least you didn't post a question asking what it stood for.
  14. Even more so than the LMGTFY type questions, the type of posts that drive me nuts on this board are How do I do XXXXXXX without using <<Industry standard method here>> because (pick one: I tried doing it once and it was hard I don't like it for personal reasons I just want to be different) These ones I'm really surprised so many of you guys still have the patience to deal with.
  15. I'm not sure if I quite understand what these columns are all doing, but if I'm following correctly, you want to return bookingSlots where there isn't a match with that slot id and room in bookings, basically a negative join? For stuff like that, I usually do a left join on the table and limit the results to where the results from that table is null. So in your case, maybe something like $sql = " SELECT bs.id from bookingSlots bs LEFT JOIN bookings b ON (bs.id = b.slotId AND b.roomID='$roomId') WHERE b.id IS NULL"
  16. Careful how you use that. Hex values, like 0x61646D696E, pass the is_numeric() check, but become a string value if entered unquoted into a MySQL db query. You might be better off using filter_var() or casting to an int if a number is what you always want.
  17. Make sure you have a default value if you do that if the session value isn't set, since (int) NULL is also < 5
  18. There's always a way in. If a browser can do it, so can cURL. The only real question is is it worth it? Chances are, if these blocks are in place, you're in violation of site agreements for how you're retrieving the information, and they can come after you if you try to use whatever you're scraping for anything. And since they control the server, it's also pretty easy to get into a cat and mouse game of them trying a new way to block and you having to circumvent it, and it gets to be a royal PITA. And simpjd, you're probably not going to get much help from this forum on it unless you have a legitimate need to do it and can explain that to us.
  19. I'm half-joking there. But if you can figure out a way to get extremely low cost content, for example by partnering with a photographer who has photos you can use, and focus on a fetish website instead of just the general porn stuff so you have a clear target market, it's not too difficult to make $200-$300 a month selling photosets or subscriptions. I've done several of these in the past, and was able to get a few grand a site selling them off after awhile. To Corbin's point, for most people that would be considered no money or losing money if they were paying one of us to do this or trying to make a living from it, but for a side gig to just get something going, in the past I was always been able to generate some sort of revenue from this type of site.
  20. What currency are we talking about here? Assuming you didn't sign an agreement saying you wouldn't work side jobs, it's not too difficult to make some extra money doing that. Or, go into business for yourself of the side. Put together a script that you sell on Hotscripts. Make a small revenue generating website. And when all else fails, Internet pornography has a pretty high success rate with relatively low investment.
  21. It's not a MySQL issue. You need to back way up, your code doesn't match what you're saying, so please explain what it is you trying to do, and post your HTML form as well.
  22. View source on that rendering, I'm sure it's all there, just not displayed because the browser sees everything from <?php.....> as a big invalid tag, then starts displaying after that. Like Ken said, the PHP isn't being parsed. Make sure it's installed correctly and that you have PHP set as a handler in your httpd.conf.
  23. A lot of what everyone else has said, and as an e-commerce web provider, I probably wouldn't advertise security as "new," even if it's a new area of service that you offer, since hopefully you included security already in sites you designed.
  24. You need a many to many relationship setup. Scrap your categories column in toys and add a table of toys->categories, and query off of that.
  25. The first comment http://us.php.net/imagecreatefrompng
×
×
  • 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.