Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Ingolme

  1. The error message you are getting indicates that the PHP version is most likely the issue. Make an empty PHP file and run the phpversion() function to verify that the version is what you need it to be.
  2. Your server has to be running PHP 7.1 or higher to allow the public modifier on the const keyword.
  3. Ingolme


    I'm pretty sure that's true. Even if it were supported, I would recommend never using WAV because WAV files are uncompressed and would take up a whole lot of data/bandwidth for your users.
  4. The best way to make the site staff aware of the problem is to click the "REPORT ERROR" button at the bottom of the page, since they almost never visit the forums.
  5. Ingolme

    Undefined Variable

    The $lang_type variable is only being created on specific conditions, if these conditions are not met then you will get a warning. You should initialize $lang_type with a default value outside of all of the if statements.
  6. Browsers have security in place to prevent local scripts from mining information from the user's computer. Aside from that, if the image you are loading is not on your computer then the cross-origin protection will apply. I would suggest installing server software, such as XAMPP, on your computer.
  7. The value is being initialized at the beginning of the script. var slideIndex = 1; showSlides(slideIndex);
  8. The rel attribute tells machines what the purpose of your link is, it can only have specific values. The class attribute just assigns an arbitrary name or set of names to the link, it can have any value.
  9. Ingolme


    What answer are you submitting? It appears to work for me.
  10. You have to run this code on a server which supports PHP. You cannot run PHP files from your computer without installing server software on it.
  11. You should check the Javascript console by pressing F12 in your browser. It has an error message "this.form is null". The reason for that is that these inputs are not between <form> tags.
  12. According to this page, you may be able to contact them at exam [at] w3schools.com
  13. If the links don't have an href attribute, then Google will most likely not give them much weight.
  14. It means that there is no element in x which has index m. You should debug the code and see which value m has when that function is called. Most likely your loop is going 1 less than the smallest index or 1 more than the largest index. It probably is better if you initialize i as 0 and put the increment operation after the rest of the code in the loop has executed. Another issue in your code is that you're calling hide(i) instantly and passing its return value to setTimeout().
  15. It certainly seems to be broken. There's no real way to get in contact with the staff except by using the "Report Error" link at the bottom of the tutorial pages.
  16. You can add some CSS to hide the element when printing using a media query: https://www.w3schools.com/cssref/tryit.asp?filename=trycss3_media
  17. Because PHP runs on the server-side, allowing arbitrary users to run any PHP on their server would make it very easy for hackers to take over the website. I would suggest downloading a local server such as XAMPP to run PHP on your own computer.
  18. Unfortunately, the staff rarely visits the forums. As far as taking length calls out of the loop, it's a negligible performance impact in 99% of situations. If you were writing a heavy time-critical application this would be one of the optimizations you could do to improve it if you find that it's running slow.
  19. Begin writing software, if you run into a problem you can't solve then search online for an answer or ask about it.
  20. It's not the object that's the problem, it's JSON.stringify().
  21. The <pre> element by default allows text to overflow. You should use an element other than <pre>. If you still want a <pre> element there, you can override its behavior with CSS using "white-space: normal;"
  22. Ingolme


    No, void is a completely useless Javascript construct.
  23. It's a "feature" built into iPhone browsers. If you make sure that the font size of the text inside your inputs is at least 16px then iPhone won't try to zoom in to see it.
  24. Yes. Use CSS to set the border width to 0 or the border style to "none"
  25. Ingolme

    Query not working

    The mysql_ library is deprecated, you should be using something else like PDO. I can't tell what the problem is without seeing all of the code. Can you write a very basic program to test it and put the code here? Please use the code block ( <> button) to keep it organized.
  • Create New...