Search results

  1. M

    HELP PLEASE: want to have a random quote display

    Not using tables isn't the problem, the reliance on them is, which is why I brought it up. Goes to show why cool URIs don't change. The URL for "Why avoiding tables (for layout) is important" has changed only slightly, but it makes a big difference in whether it can be found.
  2. M

    PHP Help and Optimize

    This would give every word their own class, which would mean each word would be selected separately in the style sheet. You'd use grouping so you wouldn't have to repeat the rule sets, but it's still a waste. This is what makes most sense, isn't it? Since your original code applied inline...
  3. M

    HELP PLEASE: want to have a random quote display

    You shouldn't need to set anything in .htaccess to get PHP to work. Make sure you're using a file extension of ".php", not ".html". Please use [php], [html] or [code] tags (as appropriate) to separate and format code. CGI scripts were disabled awhile back due to abuse. Please don't use tables...
  4. M

    phpinfo

    There isn't really a support team in the free hosting forums, just volunteers. The suspension warning is more for others that read this thread and start getting ideas. Gathering information just once for a support request shouldn't cause you any problems. Since phpinfo isn't enabled, ask...
  5. M

    phpinfo

    Some of the information can be retrieved using other functions. For example, you can check for specific extensions with extension_loaded, for specific configuration values with ini_get and for the PHP version with phpversion or the PHP_VERSION constants. Make sure you don't abuse them or you'll...
  6. M

    NicheVideoScript_2.0.6 I have Licenced

    Did you purchase the license? Questions like these are best answered by reading the Terms of Service, which you should have done (as you agreed to them) when signing up. If it's still unclear, then you can ask specific questions about the terms.
  7. M

    html form input attribute

    Note that you can easily password protect folders using cPanel. Using this mechanism (HTTP Basic authentication), you can easily give different people different passwords, so you can revoke one person's credentials without impacting others'.
  8. M

    PHP Help and Optimize

    That's... a bit of code to get through for a forum post. What I can tell you off the bat is that in_array is inefficient, as it has to compare every item in the array with the item to look for. Faster is to use items as keys an isset($array[$item]). The sequence of ifs is also a potential choke...
  9. M

    Class 'mysqli' not found?

    To clarify, are you getting error messages that all the previously missing extensions (mysqli, PDO, gd, mbstring) are still missing? Are just a few of them missing? Are you getting different error messages?
  10. M

    PHP: Locking files

    Did you read the documentation? It has examples; start there. That will give you something more specific to ask about.
  11. M

    Help on binding mouseover with jquery.

    It's best not to make assumptions about what's obvious. It wasn't a problem here, but too often have I seen someone asking for help make an assumption about a key point. Break that habit while you can. Always be explicit about where an error occurs, and what the error is, even if they seem...
  12. M

    Need Help with a Game Server

    For crypto, take a look at openssl. Make sure you read the license to see if it's appropriate for your project.
  13. M

    Help on binding mouseover with jquery.

    It would be helpful if you would point out which script contains the problematic code. In this case, I guessed "menu.js", but it may not always be so obvious. Remember, there's good lazy (getting the computer to do your work) and bad lazy (making others do work you could easily do). Anytime you...
  14. M

    Help on binding mouseover with jquery.

    No, it's incomplete so it's untestable, and it will fail for reasons other than the full code might be failing. In this particular case, it's not worth trying to get your original approach to work. Just add an additional class to the elements. It's cleaner and simpler and will take less time to...
  15. M

    Help on binding mouseover with jquery.

    Elements can have as many classes as you wish. The only limit I'm aware of is the 65536 character limit for attributes in HTML4. HTML5 has no such limit set by the standard (though, due to memory limits, browsers may impose their own). The listener could be bound to each element separately, but...
  16. M

    Need Help with a Game Server

    Caveat: I'm not a game programmer, though I have a little experience with simulations and client/server architecture (but it's been awhile). Any control that the server cedes to the client opens the door to cheating. You can reduce this by encrypting communications using public-key...
  17. M

    Help on binding mouseover with jquery.

    It's the proper and simplest way to fix the problem. Why would you want another? Rather than binding a listener to each element separately, bind it to all at once by using an appropriate selector in the jQuery call. If no such selector exists, give the elements a class and then use the class as...
  18. M

    Class 'mysqli' not found?

    Login to your account control panel and go to the "Support" section. You might be able to close the support request or (failing that) add a note that the issue is resolved.
  19. M

    Help with "INTO OUTFILE"

    The INTO OUTFILE clause requires the FILE privilege, which can't be granted to any user you create through cPanel since it can only be given globally.
  20. M

    curl_setopt() problem in 3rd party library

    @cybrax: The security restriction was implemented due to a security whole opened by "file:" URLs, which are a problem because the cURL library is unaware of PHP's safe_mode and open_basedir features. A PHP implementation of redirect following won't introduce a vulnerability because it is subject...
Top