Jump to content

chhorn

Members
  • Content Count

    115
  • Joined

  • Last visited

  • Days Won

    2

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. if you dont have a redis server running, stick to using a file with the functions provided by @kicken - the logic is pretty easy # pseudo code if(file_age > 5 minutes) save api data to file; get data from file;
  2. that's because your update statement is broken. add line breaks to that statement to determine the line that is wrong and think about what could be wrong.
  3. 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.
  4. setFrom is a function $mail->setFrom('from@example.com', 'Mailer'); have a look at the documentation https://github.com/PHPMailer/PHPMailer
  5. Tipp: keep your ears open to the term "rainbow tables"
  6. Maybe you read the FAQ of this forum first:
  7. 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
  8. 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
  9. 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.
  10. that really depends on your task and the data.
  11. 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.
  12. print_r is just a debug function without any format expectations. parsing this is mostly wrong. use a proper data exchange format.
  13. And what's the sql statement then? What data do you expect to show up on that condition? Show an example of both.
  14. 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
×
×
  • 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.