Search results

  1. M

    Perl bug

    Don't start a new thread for an old problem. Instead, try following the advice in the other posts. Have you checked you error logs? Have you checked your server configuration? Remember what I posted before about using mode 0777? Don't do it.
  2. M

    PHP MySQL update

    In "select user_email and country ...", the "and" is a logical operator. To select multiple fields, use a comma: "select user_email, country ...". Review the SELECT statement syntax. Are you sure you want '==' in the above lines? '=' looks more appropriate. Also, you're getting $newemail...
  3. M

    DIV Problems with Internet Explorer - Please Help

    The images aren't really backgrounds, so (except for the skyline, which needs to tile) you could use normal <img> elements with the "filter: AlphaImageLoader" technique. You could also redesign the site, using a smaller logo in the upper left corner, which means you wouldn't have to layer the...
  4. M

    PHP MySQL update

    Think about what "parse error" and "syntax error" (as opposed to logical errors) mean. Your code is invalid PHP, probably because you've mistyped something. If you indent nested blocks (as per one of the standard indent styles), you'll see that you've an extra open bracket ("{") on line...
  5. M

    loading content within same page from link on that page - kinda confusing

    "Overflow" has a specific meaning in CSS, but I'm not sure you mean the same thing. Generally, if something is never to show in a page, it shouldn't be part of the page. Putting a shared element in a single file and including it wherever needed is a time-tested technique (before PHP was CGI...
  6. M

    E-mail Flash Form with PHP3

    As of PHP 4.2.0, register_globals is off by default, which means you need to reference $_GET, $_POST or $_REQUEST to get the form variables. I prefer $_REQUEST so that I may change the submission method/use different methods. Others prefer using $_POST under the (mistaken) belief that it's...
  7. M

    Sub-account access?

    You can create FTP accounts in cPanel to give limited file access (when the user signs in to the account, the server chroots to the directory). When you wrote "using cPanel", did you mean you want to use cPanel to create the account using cPanel or that the other accounts could use cPanel?
  8. M

    loading content within same page from link on that page - kinda confusing

    What you're looking for is AJAX. Keep in mind that requiring JS in order to use your site is a bad idea, as some people have JS turned off and others use browsers that don't support JS. Search spiders, for instance, don't support JS and your approach will severely harm a site's search ranking...
  9. M

    How to....

    It wasn't entirely clear what exactly the OP wanted, to block all access to the directory (and everything in it), to prevent listing the contents of the directory or something else. So far, everything everyone has posted could be what the OP wanted.
  10. M

    multiple queries

    The Firefox error console complains that 'moves' is undefined on line 81 of gamesj0c.js. Using firebug, I see that 'moves' comes from currM, which is undefined for the search results page. Edit: The working page calls Start(), which initialized currM. The search page doesn't call Start()...
  11. M

    multiple queries

    That should be handled by the SELECT statement, not the PHP script. '$wValue' is the literal string "$wValue", so the above line looks for '$wValue' in $classmin, which isn't set. Only put quotes around indices that are string literals, like $_POST['wClass']. In the above line, you'd want to...
  12. M

    multiple queries

    In addition to what garretroyce points out, there are a few other things that need attention. You can turn those long sequences of similar expressions into foreach loops. For example, $classmin and $classmax can be initialize by: $min=600; foreach (str_split('GFEDCBAXM') as $class) {...
  13. M

    DIV Problems with Internet Explorer - Please Help

    For IE <= 6, you'll need to use the proprietary "filter" CSS property with the AlphaImageLoader filter. Use conditional comments to target IE6. Ing Chao posted an article illustrating the technique, discussing the problems and their solutions.
  14. M

    PHP Contact form

    To add to garretroyce's suggestion, the filter functions may also be helpful verifying and sanitizing e-mail addresses.
  15. M

    python/perl help

    The computer you use to develop. It could be as simple as the computer with a test editor or it could run a web server configured for debugging of live scripts. Go to the command line and run your script. If you're running MS Windows, you'll first need to install Perl (e.g. ActivePerl) and...
  16. M

    python/perl help

    Check the output of your CGI scripts on your development server and your error logs. You must output properly formatted headers before other output else you'll get a 500 error. Any script errors will be printed to stderr, which is unbuffered and will be output before anything your script...
  17. M

    How to....

    Do you want to prevent all access (which is what "private" would mean)? Do you rather want to prevent Apache from making directory listings when there's no default index? For the former, remove read and execute permissions from the directory. For the latter, add an Options -Indexes to the...
  18. M

    Asking help for a simple application

    More a DOM matter than JS: <form> <input name="someText" /> <select onchange="setText(this, 'someText')"> <option value="foo">Foo</option> <option value="bar">Bar</option> </select> </form> <script type="text/javascript"> function setText(from, toName) { from.form[toName].value = from.value; }...
  19. M

    csv data import

    The way the 2nd script handles a header row in the CSV file is a good place to start. You could have the check for a header row in the CSV file, then use whatever results to initialize the widget on the preview page. The preview page would pass a (possibly) permuted copy of the same array to...
  20. M

    Cruel ASP.NET

    F# is a variant of the ML functional language. Functional programming is stateless, just like HTTP (though you'd use a little bit of state in F#). Note that I'm heavily biased towards functional programming.
Top