Search results

  1. M

    exofire down

    The footer of the http://x10staff.co.cc/status/ page tells you how frequently (currently, every 5 minutes) and when the page was last updated.
  2. M

    Cruel ASP.NET

    Try "CodeFile", which takes a source file, rather than "CodeBehind", which takes a compiled assembly. See the attributes of the @Page directive for more info. Yeah, coding VB always makes me feel unclean. C# is surprisingly a decent language. F# looks like a big win for web apps.
  3. M

    Whhere are the post icons?

    The icons are still there, the forum just uses the wrong URIs. The icons are at http://forums.x10hosting.com/images/icons/ (e.g. http://forums.x10hosting.com/images/icons/icon1.gif). The subdomain forums.x10hosting.com maps to www.x10hosting.com/forums, so (eg)...
  4. M

    csv data import

    Whoops, that should have been "for", not "while". Changed in the original post. As for field mapping, you could use the header mapping from the file (if it exists) and add a widget to allow the user to change the mapping on the preview page. A thought about table design: rather than...
  5. M

    php

    Better would be to use a single form and have your form handler construct the WHERE clause based on which input fields are set. And don't forget to sanitize user input with (e.g.) mysql_real_escape_string or the filter functions to prevent SQL injection.
  6. M

    Help with php function

    Are you looking for variable functions? Other than that, any function that takes a callback (such as array_map) could be used to indirectly call a function. Is this just a puzzle or do you have a use in mind? Did you write your code in MS Word, by any chance? The smart quotes it generates...
  7. M

    csv data import

    So you're having problems defining the mapping of the CSV fields to the database fields? What's generating the CSV file? Could you add a header that defines the fields? If you find the need to create innumerable variables, you probably want an associative array. If you need to set the...
  8. M

    Problem Locating Header/Footer Files

    You could use virtual() to include the files. You could also add the document root to the include_path, allowing you to use "include('header.php')". Slightly better would be to create a directory named (eg) "include" in public_html (or wherever) and put the path to "include" in the...
  9. M

    PHP Directory Listing Script

    Looking good. The forum poster was "fixing" my example of a dangerous URL, so I had to unfix it. Here it is again: http://cs.clark.edu/~jbrum4030/ctec122/directory.php?path=/%2e./ There are more dangerous URIs, so you'd better fix that security hole quickly.
  10. M

    PHP Directory Listing Script

    Note that the error message says (e.g.) "stat failed for lab1" when getting the size of ctec122/labs/lab1. The current directory is ctec122, so filesize("lab1") is looking for lab1 in ctec122. Try filesize($path . '/' . $file). You've also got a sizable security hole in listing() by not...
  11. M

    .asp not working

    What, exactly, isn't working? Is the page not being interpreted by Mono? Are you getting error messages? Please post a minimal test case and a link to a live page. Without the above information, it's impossible to tell what isn't working.
  12. M

    csv data import

    mysql_real_escape_string() will sanitize any double quotes in the input so you don't need to remove them. Is there another reason why you're removing them? Make sure you call make_safe on each field from the CSV file before you insert them. I'm assuming you're not making the call here...
  13. M

    csv data import

    mysql_real_escape_string escapes characters that addslashes doesn't because it targets characters special in MySQL. If you're not using MySQL, mysql_real_escape_string would be less desirable. Furthermore, addslashes may have problems with some multibyte encodings, while...
  14. M

    Can any one help me with this c++ programming question?

    That's not how to ask for help with homework.
  15. M

    Action script 3 Movement

    Au contraire, the keywords work just fine. 1st result, 1st paragraph:
  16. M

    csv data import

    One problem is that magic quotes (except for magic_quotes_sybase) will escape double quotes. You remove the double quotes but not the escape characters. Other than that, what isn't working? State what you expect and what you get. If you ever want to know what a PHP function is, look it up...
  17. M

    Action script 3 Movement

    Google can even help you to use google. Other than that, practice, practice, practice.
  18. M

    csv data import

    Sounds like you have a security leak. Perform better cleanup on the fields before insertion (e.g. use mysql_real_escape_string()) and you won't have the problem. No. You want to preserve the users' input; they won't like it when characters go missing. For instance, a user should be able to...
  19. M

    Help with url redirection with uni.cc

    Leave the record on uni.cc as an external name server. Login to cPanel here on x10 and set up a parked domain.
  20. M

    Action script 3 Movement

    Google is your friend.
Top