Jump to content

waynew

Members
  • Posts

    2,405
  • Joined

  • Last visited

Everything posted by waynew

  1. What bad practises/mistakes/misconceptions do you see time and time again - in regards to PHP? inb4 or die(mysql_error())
  2. NOSHOW.jpg is the file that they'll be shown instead.
  3. Why not store the references in MySQL?
  4. Use can set a time limit for your scripts: http://php.net/manual/en/function.set-time-limit.php
  5. You can stop hotlinking by putting this into a .htaccess file and uploading it to the main document root of your website:
  6. You're going track each variable back to its original source. If you do that, I promise you'll find the problem. You're very liberal with how you copy your variables.
  7. I love it. However a little bit more space could be used between the items in the right column.
  8. Where are you getting $print_pur_po_total from?
  9. 1 MILL GET
  10. Quotes.....?
  11. No. Never.
  12. Postgresql allows prepared statements http://www.postgresql.org/docs/8.1/interactive/sql-prepare.html Other than that, you can whitelist items. If you have a checkbox, make sure that what the user has submitted is actually in those checkboxes. Numbers? Parse them as integers.
  13. Firstly, you're not cleaning those incoming POST variables with mysql_real_escape_string(). Secondly, have you thought about hashing your passwords so that they don't get stored as plaintext (md5, sha1 etc)? Thirdly, have you made sure that two accounts can't have the same login combination? That can be done by not allowing email addresses that are already registered or by requiring the user to verify his/her email address before loggin in. Two or more accounts having the same login on your system would cause all of those accounts to get "locked out". Fourthly, you should be checking for errors in your queries by doing this: $obtainlogin=mysql_query("SELECT * FROM networks WHERE username='$user' && password='$pass'") or trigger_error(mysql_error());
  14. CV.......... ???????
  15. Sorry man. I get put off when somebody bashes something, only to prop it up a few posts later.
  16. Oh and I have a session class too.
  17. Open source is for communists.
  18. I have this problem ALOT. Even on "established" hosting services. 755 usually doesn't work for me.
  19. If you become very familiar with the PHP AND MySQL date functions, you'll have no problem. Focus on those.
  20. He said HTML arrays.
  21. You need to read http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
  22. Obviously this "scraping" of pricing data is being carried out by a cron job, or something along those lines. Simply implement the scraper script before the results are taken out of your database.
  23. Oh wow thanks OP. It's not at all obvious that you're marketing something.
×
×
  • 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.