• Content count

  • Joined

  • Last visited

  • Days Won


justsomeguy last won the day on June 19

justsomeguy had the most liked content!

Community Reputation

901 Excellent


About justsomeguy

  • Rank
    More Human Than Human
  • Birthday 06/03/1979

Previous Fields

  • Languages
    Focusing on PHP and JavaScript

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Gender
  • Location

Recent Profile Visitors

263,573 profile views
  1. Something has to happen when you run that code in the earlier post. Either it's going to create a new image, or there's going to be an error. If it's not creating a new image, then make sure you're looking for error messages in an error log and that all errors are being reported. You can add this to the top of your code: ini_set('display_errors', 1); error_reporting(E_ALL);
  2. If you put all of the coordinates in an array then you can use that loop variable to access each element in the array.
  3. ajax

    You don't execute the query in Javascript in the browser, database queries are executed on the server. You should send any data that needs to be part of the query to the server, execute the query there, and return the query result back to the browser. It's also a terrible idea to send the actual SQL query from the browser to the server, that's a fantastic way to get your site hacked. Send only the data that needs to be part of the query, and on the server use a prepared statement to add the data to the SQL query and send it to the database.
  4. Are you actually hosting the videos files? If so, your main concerns will be disk space and bandwidth.
  5. In the database, you store the timestamp of their last activity, so any time they load a page or click on a link you save the timestamp in the database. The number of people online is the number of people who have their last activity within a certain time range, like 10 or 15 minutes.
  6. That code sets the videoNode.src property to load the video, you can set that with any URL to have it play. Most of that code is about building the URL for a local file, if you already have a URL then you don't need much of that code.
  7. What happens when you run that?
  8. That custom 404 page doesn't give a lot of information, it doesn't help that it redirects to 404.html. Maybe the redirection isn't working. The normal way to redirect though is to send a Location header with the new URL. But, for testing, I would suggest not redirecting and making sure the PHP code works. Your PHP code has some errors in it, so maybe the server sees the PHP errors and redirects to 404 for some reason. Here are some of the issues with your PHP code: You're trying to call a function called $POST, but $POST isn't defined. If you want to get submitted values you get them from $_POST, which is an array, not a function. So, for example, you would use $_POST['name']. If your database connection fails you don't stop the script, the rest of the code still runs without a database connection. When you call mysqli_query, you used !$con which is going to send a boolean value instead of the actual connection. You need to use prepared statements when you're sending data to the database. The mysqli extension supports prepared statements, you need to use them to make sure your queries run and protect against SQL injection attacks. You send the same text ('Not inserted') regardless of whether or not the record was inserted in the database. If you use echo to send any output, sending a header after that will not work.
  9. I'm not sure what your question is, but it looks like you're trying to use a variable called tracingPresets that isn't defined. I'm not sure if your syntax for defining those variables is correct either.
  10. Surely that code would work with any valid URL for a video, right? Is there a reason that it's limited to the local machine?
  11. What does that link point to? Your code above says post.php, but the screenshot shows form.php. Are you pointing to the right file? And, if so, why would your server claim that a file isn't there if it is? If that's the case then you probably need to ask your host why it's claiming that files which exist don't.
  12. What's the problem, you submit the form and get a 404? If that's the case, then make sure the file with the form and the file that you're submitting to are in the same folder.
  13. Search for the account name for your version of Windows or IIS. It used be called IUSR_ followed by the machine name.
  14. I'm not sure how Windows permissions specifically work, but in addition to Everyone make sure that you have the IIS account also set up with permissions. Maybe the IIS account specifically doesn't have read access and that overwrites the permissions for Everyone, but like I'm said I'm not sure specifically how it works in Windows.
  15. I'm not sure what you mean by that. I'm just saying that in terms of validation, sanitizing, etc, that you can't rely on Javascript, it's a convenience for the user at best, and that the final word is what you do on the server. As long as the server is sanitizing the data and not trusting that the form submitted everything in the right format then you should be fine.