Search results

  1. M

    Changing root directory (index.*, etc.)

    The free servers go down all the time. As for the redirects, the Javascript redirect may hurt your standing with search engines (spiders don't always support JS). A slightly better (but still deprecated) alternative is to use a Meta refresh, which uses the Meta element to simulate a Refresh...
  2. M

    Ajax link checker

    What's correct behavior? It looks like the script reports a 404 as a failure, which seems correct to me. What doesn't seem correct is it treats redirects (3xx status codes) as failures. Should you wish to change the behavior, look to url_exists, which is the function that checks the status...
  3. M

    JavaScript 'this' keyword

    The JS you posted looks fine. Check the error console and post relevant error messages here. What browser(s) are you having problems with? Always state the software environment.
  4. M

    Ajax confused

    Almost. One important change (and 2 not as important ones): // important: make sure $username is safe to pass to query $username = mysql_real_escape_string($_REQUEST['username']); // no need to get the whole row $query = "SELECT login FROM users WHERE login='$username'"; $result =...
  5. M

    Problem with server Stoli.x10

    demilovato.co.cc currently maps to a private address (192.168.42.55). If you ever want to map a domain name to an address, you can use dig on Unices and nslookup on MS OSes. You can also find web interfaces for these tools. To make sure your site is up, access it via its x10 server name...
  6. M

    Rounded corner Boxes in CSS

    It's the align="center" on a containing <td> that's causing the corner to center. I hope you're in the process of replacing the tables with semantic HTML and CSS. After that, you can center the rounded rectangle. A problem like this is a great subject for a minimal test case, which will help...
  7. M

    Ajax confused

    Rather than fetching all login names and checking a form field against the array, how about looking up the requested login name? If that fails, the username is available.
  8. M

    Mail Header check

    The mailer is probably having problems parsing the mailbox. Try putting double quotes around the name and make sure there's a space before the '<' as such: "First Last" <user@domain.tld> Try instead: $headers .= 'From: "CRM Administrator" <webmaster@freecrm.x10hosting.com>' . "\n"...
  9. M

    Verify Delete JS function

    You trust your users (and their computers) much more than I. Hopefully none of their computers will get infected by a worm that uses SQL injection. Remember Storm?
  10. M

    Verify Delete JS function

    The image input type is a submit button. If you use it, you must prevent the default submit handler. The more semantically sound approach is to use a <button> element with a style reset. NO! NO! NO! You've opened yourself to SQL injection. Don't trust user input. Filter it with a filter...
  11. M

    Die to location?

    I assume you don't want the URL to change because you're simulating an error page. What you're describing is an internal redirect, which (as far as I can tell) isn't an option within PHP. What you can do is write no output from the script and include() (or virtual()) the error document. The...
  12. M

    php Upload Function help please

    The cleanup job only needs to take care of orphaned temp files--the ones left behind when a user doesn't visit the 3rd page. This is what I was trying to say in an earlier post: On the plus side, there probably won't be too many orphaned files. As you're using sessions to generate...
  13. M

    C# Console Application

    You can use Console.CursorLeft to get & set the column of the cursor. There's also Console.SetCursorPosition(). Printing a carriage return w/o a newline might also work. If you really want to get fancy, you can use a Curses binding.
  14. M

    php Upload Function help please

    What if a user never visits the final page?
  15. M

    Mod Rewrite Help

    Put the more specific rule (the one with the "^([a-zA-Z]+)/user/([0-9]+)/?$" pattern) before the more general rule. Use the [L]ast flag as an optimization (it probably won't help with correctness).
  16. M

    Mod Rewrite Help

    When you go to "members/user/My ID/", what's the resulting URL? You'll probably have to print it out within index.php. The RewriteRule flags might have something to offer. For instance, the L flag will stop rewrite processing when a URL matches a rule (one of the other rules might be...
  17. M

    php Upload Function help please

    You can do it with one form: use JS to change the target attribute of the form to an IFRAME. One thing about this approach: proper design principles dictate it should degrade when JS is disabled/not supported. Among other things, the preview page should include a form that's hidden/removed...
  18. M

    Weird phpBB3 error

    If the source won't fit in 1 post, it's too long to post. Produce a minimal test case. Funny thing: in a case like this, producing a minimal test case will probably lead you to the cause of the error.
  19. M

    php Upload Function help please

    I'm not a fan of popups. Setting up the input fields isn't hard; just loop through $_REQUEST, adding a hidden field for each. Transferring the parsed CSV through the second submit the is slightly trickier, but that's what sessions are for. However, there's a better way to do it. This is a...
  20. M

    Problem with PHPBB

    It looks like the install is failing on the "Installation Compatibility" page, before theaxiom is picking the DB to use (4:55 in the YT video is the 2nd install page). It's probably the Supported Databases check that's failing. In that case, removing the check for SQLite would probably work...
Top