Search results

  1. M

    A couple of .htaccess questions

    Under Apache, you can have internal rewrites without external redirects. External redirects return one of the 3XX HTTP response codes (read the HTTP 1.1 specification for more on HTTP responses) to the client, which causes the browser to display the new URI and request it. With mod_rewrite, you...
  2. M

    need mod_rewrite to be enabled

    Don't neglect to include a "RewriteEngine on" directive in your .htaccess.
  3. M

    DNS ERROR..help!

    Check your configuration on your domain name server. blogeelicious.co.cc resolves to a CNAME (an alias) for lookup.co.cc. It should resolve to the IP address for your host. For example, when I look up my subdomain under co.cc, I get Lotus' IP address. The weird thing is that lookup.co.cc is a...
  4. M

    Navagation bar help...

    "Because I wanted to learn" is a perfectly acceptable reason for doing something. It's one of my two favorites (the other being "because I was curious", which amounts to the same thing).
  5. M

    Can't view website

    New issue should get a new thread. This helps you because people providing help are more likely to look at a new thread than an old discussion (where someone else is already giving help). This is also more helpful to other people who are experiencing one of the problems you had, as they don't...
  6. M

    change mysql wait_timeout?

    For me on Lotus, wait_timeout is 28800, which is the default. You can set wait_timeout as a session variable each time you open a connection by issuing the query: SET wait_timeout=28800; If you're using PDO (a much better choice than the MySQL or MySQLi drivers), you can issue the above...
  7. M

    Scrolling with scroll over button

    Overview: attach (IE way) a mouseOver event listener on each button that starts an interval. The interval function increases (or decreases, to scroll up) the element's scrollTop property. Attach another event listener to each button for the mouseOut event that clears the interval. Using a...
  8. M

    Post JS Array to PHP

    What type of data? The answer will affect the generality of the solution.
  9. M

    .htaccess acting up

    Yeah, that's a typo. It's fixed now. In addition, I didn't give a rule that would rewrite "moj_račun" to "user_personal.php", which is also now fixed. Ah, you mean you want the URL in the browser to reflect the true path. Do you want to allow non-secure access to the audio files? If so, you...
  10. M

    CSS Error =[

    Looks like list abuse; <dt> denotes a term and <dd> it's definition. Any other use is non-semantic and means programs (such as search engine spiders) can't deduce as much information, or will deduce the wrong information. Better to use an unordered list and a class for whichever list items are...
  11. M

    Homepage is not being displayed accurately

    From the Terms of Service (accessible via cPanel and your account panel):
  12. M

    .htaccess acting up

    "terror.audio" and "design/audio/terror.mp3" match "error", so the "RewriteRule error error.php" line takes effect. Rather than fixing just that one line, you can replace that line and all the lines that add ".php" extensions with the following: RewriteCond %(DOCUMENT_ROOT}/$1.php -f RewriteRule...
  13. M

    CSS Error =[

    Are you implementing an accordion menu?
  14. M

    CSS Error =[

    Don't count out Diablo's suggestion. It will center block elements with explicit widths, whereas using text-align won't. The #menu definition list as used is non-semantic. An <ul> or <ol> would be better.
  15. M

    CSS Error =[

    The inline content is centered; it's centered relative to its left and right sides, which depend on the parent element. By setting a width on <body>, you've restricted the left and right sides of its descendants. If you center the body (e.g. by setting margin to "auto" for modern browsers)...
  16. M

    HELP .htaccess

    A simple workaround would be to strip the leading "www" using a redirect: RewriteCond ${HTTP_HOST} ^www\. RewriteRule ^/?(.*) http://example.com/$1 [R=301,L] As for what's causing the problem, try typing in a URL that would be the final result of rewrites (eg...
  17. M

    C++ square bracket overloading

    The square bracket operator is an unary operator, and thus has the following signature. return_type operator[] (index_type); It's covered by section 13.5.5 [over.sub] of the C++ standard, which allows for arbitrary index type.
  18. M

    fibonacci series and factorial

    This is a homework assignment, isn't it? Shame on you for being such a lazy cheat you couldn't even be bothered to google for answers. If you really want to know about factorial and fibonacci algorithms, read section 1.2 of "Structure and Interpretation of Computer Programs" (SICP), especially...
  19. M

    Navagation bar help...

    Are you setting the "current" class on the menu item for the current page? What's the URL for the videos page? Since all you're doing with the sprites is changing text attributes, again I recommend using text rather than images for the links.
  20. M

    C# - Run a command on shutdown

    Sorry for the delay, the real world was calling. At some point, I had working code and hoped to post that, but it was lost when I was playing around with the code a few posts back. Currently, even the sample on MSDN isn't working for me. An alternative is to search the System EventLog for...
Top