Jump to content

premiso

Members
  • Posts

    6,951
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by premiso

  1. function mssql_escape($data) { if(is_numeric($data)) return $data; $unpacked = unpack('H*hex', $data); return '0x' . $unpacked['hex']; } Taken from: http://stackoverflow.com/a/574821/398519
  2. Not even linking to it. If anyone were to even write about torrenting or reference a movie or a site that is not kosher (which could just have 1 copyright infringement from an image) that site can be taken down just for even discussing the matter. It is much, much worse than people seem to think. It is disgusting.
  3. Some interesting stuff: http://www.vice.com/read/pipa-supporters-copyright-violations
  4. I prefer Geany for Windows Its not Java, which is a huge + in my book. May not have all the flashy features, but is a nice lightweight IDE.
  5. Didn't you guys invent the rotary washing line too? Where would we be without those, eh? That we did, but I think our contributions to medicine are probably the most significant. - Penicillin - Bionic Ear - Aspro - Spray on Skin - Zinc Cream - Ultrasound - Latex Gloves - Flu Vaccine - Night and Day contact lenses - Heart Pacemaker - Anthrax Vaccine to name a few, and we pioneered microsurgery. Some of other inventions/discoveries/innovations include... - Combine Harvester - The Sarich Engine - Wave Piercing Catamaran - Differential Gears - The 'Ute' (which is different to the 'pickup truck' developed in the USA) - Black Box Flight Recorder - Variable Ratio Rack and Pinion Steering - Hyshot Scramjet Engine - Electric Drill - Two Stroke Lawn Mower - Notepad - Telephane (yes Telephane, not Telephone) - Garage Roller Door - Salt Water Chlorination of Swimming Pools - Pre-paid Postage - Xerox Photocopying - Polymer Bank Notes - Blast Glass - Refrigeration - Vegemite (controversial topic as of late since the iSnack 2.0 incident) - Wine Cask - CETO Wave Energy System - Calyx Drill - Uniloc Software Protection (which after Microsoft copied, lost approx half a billion for stealing the technology) - Wireless LAN IEEE 802.11 - Samba Software - Google Maps (developed by a couple of Danish-Australian brothers in Sydney, believe it or not) - Feature Films (The Story of the Kelly Gang, 1906, ran for more than an hour) - The Australian Crawl - Race Cam - Speedo Swimwear - The Mills Cross - Gene Shears - SILEX - Synroc - The Stobie Pole I can't speak for the USA, but we improved it Well I'm rooting for you, oh wait, that means something else in Aus lol Yes lets keep quoting full posts instead of trimming them, I like it!
  6. What are the sed problems?
  7. http://stackoverflow.com/a/143148/398519 If you are on Linux, that should work. And sorry, I missed the "full view of a website".
  8. http://bit.ly/weXnln Sometimes it is easier to just google it.
  9. If they have ffmpeg installed, yes.
  10. Nope. Just make sure to optimize your database so it doesn't slow your site down from the queries and you should be good. There is another option, which is offloading that to something like Google Anayltics, and just let them take care of it. But if you want to be able to query it and show it to the visitors, nope there is not a better method.
  11. I find it offensive too. I mean in Transformers, it was not Japan who found them, it was the United States. So Transformers should be considered American. How rude.
  12. The best practice I can tell you is to practice safe stringing. Cheers! http://phpsec.org/ Good resource and googleable with "PHP Security"
  13. echo "Lat: " . $all_address2['latitude'] . " Long: " . $all_address2['longitude']; Simply by understanding how arrays work.
  14. Talk about Mr. Buzz Killington
  15. I thought Russia's lines were too cold to have any type of internet...infact wasn't that what the cold war was about? Trying to get internet to Russia while fighting the cold...
  16. while ($info = mysql_fetch_array( $data )) { echo $info['location']; } Is that what you are looking for?
  17. Wut? What are you talking about? You know, a virtual snapshot...duh?
  18. I don't think so. I think it has just been scrapped till the devs can actually agree on stuff. So for now it is just going to be 5.x versions, and I doubt they will drop MySQL support in 5.x, too many apps depend on it.
  19. If you are going to do that, why not just use the $_GLOBALS array? Either or, once you are doing initiating your connection, I would destroy that array index, but that is my preference. Generally, most people store it outside of the Document Root for safe keepings. But either or if your server is compromised via a rogue include or similar, your data is at risk, so that is just a matter of preference I guess. You are better to make sure that you have your bases covered on the security end over worrying where they should be put, imo.
  20. It looks proper to me. If you want to better prevent against SQL Injections, look into using Prepared Statements via PDO / MySQLi.
  21. I think your main issue is not having the RewriteBase (I think thats what it is) set to be /, without that you need to add the beginning slash: RewriteRule ^/profile$ /profile.php [NC,L] And see how that goes. Also make sure that MultiViews is turned off as that could be affecting it too.
  22. It depends on how you want it to fail. There is the SQL SYNTAX, which you could just change INSERT to something different. Or there is a violation of some type of restraint, such as a duplicate id on a primary key field, a non-unique item on a unique field etc. With what you have given, it is impossible for us to guide you without knowing how you want to fail and seeing the relevant sql structure / code.
  23. $string = 'dsadsasddsasda @Andrzej Jeziorski: z\dsadsadsadsasd @Karol Orzechowski:'; preg_match_all('#@(.*?):#s', $string, $matches); print_r($matches); Outputs: Array ( [0] => Array ( [0] => @Andrzej Jeziorski: [1] => @Karol Orzechowski: ) [1] => Array ( [0] => Andrzej Jeziorski [1] => Karol Orzechowski ) )
  24. Use curl, if it is installed: 45 9 * * * /usr/bin/curl --silent --compressed curl http://site.com/cron.php > /dev/null >2 &1 Or wget if it is installed: 45 9 * * * /usr/bin/wget -q http://site.com/cron.php > /dev/null >2 &1
×
×
  • 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.