Search results

  1. M

    PHP causing HTTP 500 error?

    One generic thing I can think of is the PHP configuration. Is your server using the basic (ie restricted) configuration? Other than that, there isn't nearly enough info to go on. Anything interesting in the error log (accessible through cPanel)? Keep commenting out sections of...
  2. M

    Unix Arrays

    What is your end goal in all of this? When posting a question, make sure you describe the goal, not just the step. There's a decent chance you don't need arrays to do what you want to do. It looks like my guess that you were talking about shell programming was right, but I shouldn't have to...
  3. M

    Unix Arrays

    Do you mean tell if a shell variable is an array? Unices don't have a concept of "arrays", but shells do. In bash, "$#" tells you the length of a variable, so "${#foo}" (or "${#foo[@]}") will tell you the number of items in $foo. If "[ ${#foo} -gt 1 ]", then $foo is an array. In csh, tsch...
  4. M

    will not go to my index.php

    What's the problematic URL? Make sure your browser isn't using a cached copy. Either clear the web cache or try a "super refresh" (aka "forced refresh"; generally achieved by holding "shift" or "ctrl" while refreshing). The exact method depends on what browser you are using. A Google...
  5. M

    [500 Credits] To help debug Upload Form CGI/Perl

    Looks like you got it working. Was it a missing newline after the "END_HTML"? It also looks like you fixed the script to handle multiple files. Some other points: upload.cgi & cgi-bin should probably have mode 755 or 750 (or 700 or 770), not 777, for security. As long as the web server is...
  6. M

    will not go to my index.php

    It's a web server issue, not a Joomla issue. For Apache, the key is the DirectoryIndex directive. Add: DirectoryIndex index.php index.shtml index.html index to your .htaccess file.
  7. M

    Unix Shell Exit

    signals when to use (and not use) `kill -9` csh signal handling bash signal handling Other shells may handle signals differently; check your shell documentation.
  8. M

    Installing Python Libraries

    That's why I wrote: You shouldn't create folders within Python when installing a module, unless you're writing an installer for the module. Just create the folders and install the module yourself. It's much less of a headache because you know the module is installed in the correct place.
  9. M

    Unix Shell Script

    You're going to kick yourself when I tell you. You forgot to pass any arguments to 'startup'. The last line should be: startup "$@" Here's a few other tips. Feel free to ignore or use them. Canonical name for 'helpmsg' function would be 'usage'. A personal preference: I find a single...
  10. M

    page refreshes on logout

    Good work. Note that it wasn't so much a page refresh as a page open, and there are other potential solutions: return "false" in the click handler (or call Event.preventDefault()/set event.returnValue to "false") or use an element other than a link for the logout button.
  11. M

    page refreshes on logout

    You've done a decent job describing what you expect to happen and what actually happens, but didn't post enough information to answer your question. Whenever you ask a question, post a minimal test case, including all relevant source code (HTML & JS in this case, as it's a client side issue)...
  12. M

    Batch File

    Shell scripting is programming. Generally, this forum seems to be more about web scripts, but the forum description reads "all languages allowed", so why not?
  13. M

    ASPX help

    It'd be easier to help you if you were to say where you were seeing this error. Please read "How To Ask Questions The Smart Way". The "Before You Ask" and "Be precise and informative about your problem" sections in particular apply here. Since the error message is about processing XML, I'm...
  14. M

    Content Panel problem

    Neither JS nor CSS will work with the OP's site. It first must be restructured to not rely on framesets.
  15. M

    Content Panel problem

    Short answer: not with framesets. Options are to try AJAX (or Comet) to load the content of the content panel (which is overkill), use iframes & z-index (expect problems in IE if you try this) or forego frames entirely. The last is what you tend to see these days. Also, rethink the marquee...
  16. M

    IE CSS Flash

    Sounds like a Flash of Unstyled Content (FoUC), which pops up in IE when there's an "@import" rule. Play with the info on the FoUC page & report back.
  17. M

    making multiple ajax request on one page

    In the future, please post a complete minimal test case. This will aid those trying to help you by not making them have to perform busywork to answer your questions. Furthermore, in producing a minimal test case you will often discover the error yourself. Globals are evil. Note how you had...
  18. M

    Installing Python Libraries

    When asking for help, remember to always say what you expected to happen and what actually happens (i.e. what should be right and what's going wrong). Are you having trouble creating the folders? Are you having problems loading the libraries? Are you having difficulty setting the library path...
  19. M

    Javascript AddEventListener

    This thread's a little old, but some comment on the above code will be helpful for anyone coming across this. I believe CSS rollovers are generally faster than JS rollovers overall, except the first time an image is changed. If you use the sprite approach (as outlined in the previous...
  20. M

    Installing Python Libraries

    Chances are you'll need to create it. By default, there is no folder for python libraries. As you saw, the default search directories are "." (which doesn't help with libraries) and "/usr/lib/python2.4" (which you don't have write access to). You can use the cPanel file manager or your FTP...
Top