Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: SQL help with Linux hosting
by Zaxo (Archbishop) on Sep 14, 2003 at 01:40 UTC
    ...or even to verify/debug my script?

    Glad to, but you need to show the code. First, check your server's error log. Also, upload again, making certain that ftp is in ascii mode (otherwise you may get "File does not exist" because of name confusion by a spurious ^M).

    After Compline,
    Zaxo

Re: SQL help with Linux hosting
by sgifford (Prior) on Sep 14, 2003 at 02:32 UTC

    The easiest thing to do is look in the httpd error log to see what errors your script is generating.

    If that doesn't work, or you need more information, upload a small shell script like this:

    #!/bin/sh -x printf "Content-type: text/plain\n\n" exec 2>&1 ./your_script.cgi echo "Exit status: $?"
    , make it executable, and run it from your browser. All the errors that would normally go to your screen will show up in your browser. It's a great help for tracking these things down.

    Another technique is to upload a small script, say:

    #!/usr/bin/perl -w use strict; print "Content-type: text/html\n\nThis is a CGI script.\n";
    then keep adding on to it until it stops working. That should give you an idea of what's not working.
Re: SQL help with Linux hosting
by LordWeber (Monk) on Sep 14, 2003 at 09:42 UTC
    Re: SQL help with Linux hosting
    by rjahrman (Scribe) on Sep 14, 2003 at 03:57 UTC
      Just so you know, it's probably your code and not IPowerWeb--I've used databases many times on multiple sites hosted with them. Good luck solving your problem.