Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


justsomeguy last won the day on August 16

justsomeguy had the most liked content!

Community Reputation

919 Excellent


About justsomeguy

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

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Gender
  • Location

Previous Fields

  • Languages
    Focusing on PHP and JavaScript

Recent Profile Visitors

266,881 profile views
  1. Feedback on database design

    I'm talking about the columns in the game table, not the gametag and gameplatform tables. The unique constraint on something like the gametag table should be the gameID and tagID, not an autonumber. The combination of the gameID and tagID is what needs to be unique, you wouldn't want multiple records with the same values for those fields. That's why it should be the primary key, and making it the primary key will also help with searching.
  2. The $_SESSION Variable - Who Owns It? Where Is It Stored?

    All options have multiple ways to get set, and a default. You can create a phpinfo page to check the local and master values of every setting. They describe the default behavior, your configuration might differ. That will be the session.cookie_lifetime option. http://php.net/manual/en/session.configuration.php
  3. Localhost

    Maybe you didn't do the port fowarding thingy correctly, or maybe your ISP is just blocking incoming traffic on port 80.
  4. Feedback on database design

    Are the GameTagID and GamePlatformID columns in the game table left over from something else? It doesn't look like those are necessary. For the gameplatform and gametag tables, I would get rid of the int primary key and make both of the other columns part of the primary key, so that you can enforce unique data there.
  5. Subir archivo en la misma página

    If you want to upload a file using ajax, the best way to do it is to use the FileReader object. https://developer.mozilla.org/en-US/docs/Using_files_from_web_applications
  6. Please help a newbie

    Instead of printing your own error message, print the actual error message from MySQL. http://php.net/manual/en/mysqli.error.php
  7. The $_SESSION Variable - Who Owns It? Where Is It Stored?

    The location of the files is also configured in php.ini, in session.save_path. On our servers, for example, it stores session files in /var/cpanel/php/sessions/ea-php56 when the account is running PHP 5.6. This is not significant to a PHP programmer though, it's not important how the data actually gets stored unless you're trying to write your own session storage handler (and the vast majority of programmers have no reason to do this). The important part is that it works.
  8. something I cannot understand in javascript code

    Well, if you know what a subset is, and you know that this function finds subsets, then you should be able to figure out the answers to some of those questions. It's the number of possible subsets. That's how it determines which elements to pull from the source array for each subset. If you run the version I posted with all of the output it makes it more obvious. That's backwards, it subtracts 1 from the array length, and that is the index of the last element in the array. It's the minimum size for the returned subsets. Passing 2 means they aren't interested in the subsets with a length of 0 or 1.
  9. The $_SESSION Variable - Who Owns It? Where Is It Stored?

    That's configured in php.ini. The default is to use file storage, so it creates a text file for each session ID that contains the contents of the session. This is why you can only store scalar values in the session, and not resources like an open file handle or database connection. There are also a series of functions that allow you to create your own session handlers, for example you could use those to store all session data in a database. On the user's computer, and again this is configurable, the default is to use a cookie to send the session ID to and from the server.
  10. Need Two Slideshows — Both with Arrow and Dots

    You need to add the second parameter when you call currentDiv, like you did with plusDivs. In order for the function to highlight the correct dot, each of those dot elements needs to specify which slide show it belongs to, so that showDivs can get the correct set of dots. One way would be to add a class name or data attribute to the dot container elements, or to the dot elements themselves.
  11. Please help a newbie

    There's an or statement after that line.
  12. creating database

    How do you open the terminal window?
  13. Please help a newbie

    Do you see your error messages? You can have it print the actual error message from MySQL: http://php.net/manual/en/mysqli.construct.php
  14. Load Page with Filler Update

    It sounds like the regular use case for PHP. You can have PHP send to the browser any content you want, PHP can output any text content like HTML, CSS, Javascript, etc, you can have it output an image, a PDF document, whatever you want. So it sounds to me like you're describing the general use case where PHP gets some sort of post or get data as input and produces HTML as output. You can have your HTML right in the PHP code so that it just prints whatever you tell it to, or you can have it load partial HTML templates in other files, fill in whatever data you want, and assemble the various parts into the final markup.
  15. something I cannot understand in javascript code

    Like that page says, it returns all subsets longer or equal to a certain length. Do you understand what a subset is?