Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/27/2019 in all areas

  1. the path being used in the opendir() statement either has a hard-coded '/home/sites/' in it or is using a variable that has that incorrect value in it. based on the path where the code is actually at, that part of the path should be - /home/customer/www/
    2 points
  2. Massive MASSIVE thank you guys, that fixed it! 😀😀😀😀
    1 point
  3. Don't screenshot code. Post the code using the code icon (<>) and select PHP.
    1 point
  4. To add to what Mac said, usually there are some configuration files involved. We have no way of saying for sure without code to look at, but a typical strategy would be to set up a variable or constant that contains the site root. Mac helpfully highlighted the differences for you. You should do a search through the source files for '/home/sites' and make sure that is replaced with '/home/customer/www'. Sometimes these configurations are stored in database tables, so that might be the problem if it's not hardcoded. There is no way for us to know for sure again without looking at some of the sourcecode for the site.
    1 point
  5. You would need to involve javascript. You could do this almost all in javascript then do an ajax call to send the data to php. Here's a guide that shows how to listen for sound and make a reactive page. It should give you an idea of how to start. https://hackernoon.com/creative-coding-using-the-microphone-to-make-sound-reactive-art-part1-164fd3d972f3
    1 point
  6. It's unclear to me what exactly your goal is, but most likely the answer is no. PHP doesn't really have the ability to play sounds or listen for sounds. Try and clarify what your end goal is and maybe some better help could be provided. For example, are you talking making a web page with a stop watch, or some CLI script?
    1 point
  7. Either of these functions will do what you want, and without you having to recreate the wheel.
    1 point
  8. IF you don't understand what I said above, take a fresh look at the code I provided you earlier and read it carefully and try to understand what you are doing differently.
    1 point
  9. Or you could have just said: $cat_name = str_replace('&', 'and ', strtolower($cat_name)); No need to define arrays for this purpose nor to create a second field to hold category name.
    1 point
This leaderboard is set to New York/GMT-04:00
×
×
  • 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.