Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


chhorn last won the day on April 29 2019

chhorn had the most liked content!

Community Reputation

9 Neutral

About chhorn

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. you strpos() for the first comma, substr() the string into $quantity and $identifier, then create $countable[$identifier] and assign $quantity if not exists, or add up.
  2. setFrom is a function $mail->setFrom('from@example.com', 'Mailer'); have a look at the documentation https://github.com/PHPMailer/PHPMailer
  3. Tipp: keep your ears open to the term "rainbow tables"
  4. Maybe you read the FAQ of this forum first:
  5. Yes, windows OS, there's a linux hint in the thread: https://stackoverflow.com/questions/8773043/how-to-play-a-sound-file-using-php-script-only
  6. the only hint i found was something like exec('powershell -c (New-Object Media.SoundPlayer "C:\Windows\Media\notify.wav").PlaySync();'); but that's at least windows OS specific, but actually worked on my machine
  7. if the software runs on your machine with enough priviledges you can play a sound by using exec() with appropriate comand line arguments to a local mp3-player.
  8. that really depends on your task and the data.
  9. It's not a bug, parsing print_r is not an inteded feature. if you still think it's a bug, you can just open an issue in the bugtracker, but i bet you get a similar answer.
  10. print_r is just a debug function without any format expectations. parsing this is mostly wrong. use a proper data exchange format.
  11. if ::1 then echo
  12. And what's the sql statement then? What data do you expect to show up on that condition? Show an example of both.
  13. This depends on the image format an what exactly "resizing" means in this way. When you use the compression feature of PNG the dimensions of that image (width, height, color depth) stay the same and that process is perfectly reversible as PNG is a lossless format, the codec just tries to put as much information as possible into as less bytes as needed, this may result in higher CPU usage. Using JPEG compression you destroy image details and it's irreversible. If you change any dimension or cut something off of your image that information is lost, no matter what format you use. But for the exac
  14. you are updating the record after displaying it. check https://en.wikipedia.org/wiki/IPO_model also $Submit is never defined, check https://www.php.net/manual/en/security.globals.php
  15. replace print_r with var_dump to see what the variables actually contain. Check every condition if it really matches your expected values, like var_dump($residue) and so on. As this is a recursive function it may be of interest to have a static iteration number and all given function arguments to display. As this is a working example (good!) you can test this first online to see if may be a configuration issue on your machine https://3v4l.org/VC646
  • 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.