Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. I would put the PDFs in a non public folder, and then access them from there in PHP.
  2. you could make an array of numbers using range, and then shuffle it and unset it one by one.
  3. Probably not, since those are three very different color formats. You might want to write each one as a function and then have one large function that checks each.
  4. You could show the message on the next page that you redirect to.
  5. The version of PHP is not why the site is getting "hacked". It's probably due to poor coding. If you don't know enough to fix it, you'll need to do lots of research on things like SQL injection, or hire someone to do it for you. Redoing everything will take more time than fixing existing bugs, and probably create new bugs.
  6. try changing :imagejpeg($destimg,$prod_img_thumb,90) or die('Problem In saving'); to: imagejpeg($destimg,$prod_img_thumb,90); and see if it prints a better error.
  7. You could have looked some of this up in the manual, like define()
  8. Uhm. Froogle is for shopping. I mean, you can buy cookies on it, but not this kind.
  9. http://php.net/explode will help.
  10. <?php $values = array(); if(count($_POST)){ foreach($_POST AS $k=>$v){ if(isset($v) && strlen(trim($v)){ $values[$k] = trim($v); } } print_r($values); }else{ print 'no posted'; } ?>
  11. Jessica

    Security

    Make sure there is validation. IE, how does the script know when to run? Do you manually access it? Put a password on it. Is it a cron job? Move it to a non-public folder.
  12. First of all don't end your form before your submit button. Secondly, you could put the data in the session instead of posting it. Post values can easily be edited.
  13. I didn't realize you meant a database table, I thought you were printing them in an html table. You wouldn't want to change the IDs, that messes up the integrity of the table. It would make the ID a meaningless number if it kept changing.
  14. Well post your code. I'm not going to write a whole bunch of example code when it's probably just one line that needs to be added to yours. Like I said, add a line counter.
  15. The PHP Manual, smartass. http://www.php.net/manual/en/ref.errorfunc.php It says "1". Not "on". Using ini_set('display_errors', 1); works on my PHP4 and 5 systems on Linux. I don't know if Mac's are different. You didn't bother to answer my other questions, so I guess you didn't try either suggestion. Good luck. darkfreaks, why would 2 mean off? That doesn't sound right at all...where do you see that? If anything, 1 means on and 0 means off.
  16. use a line counter to number them instead of using the index. So when you loop through add 1 to a variable each time. Unless they can be sorted, then use sort.
  17. Make sure you have errors enabled at the top of the page: ini_set('display_errors', 1); error_reporting(E_ALL);
  18. Maybe it's the slash in front of URL. It looks like you're trying to print index "/URL" of the array $name. What is the error? Also, is there a reason you split your strings so weird? You know you can have a string go on more than on line right? Try using single quoted strings and concatenate them with the variables.
  19. There is no such thing as a capital number, so you must mean something else?
  20. Sending email with PHP is hard? What? And how is it spam? Anyone who asks what to send obviously hasn't read the sort of things freakstyle posted. That's what multipart alternative is for. Geez.
  21. Please do not start a new topic for the same problem. Someone already addressed your issue on the other thread.
  22. lol where are you getting these stats cooldude? As hvle said, we're not in the 90's. Most people don't use pine to check their email anymore. And as long as you send BOTH does it fing matter?
  23. Well considering the manual says the default is 1, excuuuuse me. Also, I use PHP5 and I set it to 1 or 0 and it always works to turn it on and off. Does it work if you use ini_set? With the version of PHP you're using, perhaps you should try setting it to "stdout".
×
×
  • 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.