Search results

  1. M

    404 Error on Python Script

    Due to abuse, the free hosts no longer offer python nor CGI scripts in any language. This is reported on the free hosting comparison page. If you need python, try the Illuminated or Premium plans.
  2. M

    Small problem with PHP new line character..

    "\n" should give you a line feed, as long as it's in a double quoted string. Try the following exactly as typed: <?php header('Content-type: text/plain'); echo "Hello,\nhow are you today?"; ?> Do you get a literal '\n' in the output? Or do you just not get a line break when you view the...
  3. M

    HTML basics : getting started coding

    Bad post, because it gets people started on the wrong foot, conceptually, so they end up producing bad code.
  4. M

    Help with PHP register script

    If they're already members, why do they need to register? That's a fair bit of code to wade through, especially as we don't know how it's not behaving as you expect. When asking for help, describe what you expect to happen and what actually happens, including any error messages. As much as...
  5. M

    adf.ly clone

    @iearn.tk54: this forum is not for advertising, it's for getting help. Stop spamming and read the rules before you post again.
  6. M

    rule for .htaccess mod_rewrite

    So called "search engine friendly URLs" aren't always that. The reason for rewriting URLs is so they're RESTful. Focus on users & standards and the rest will come. Read Google's official position on URLs. The path portion of URLs is hierarchical. You should be using rewrites only if the named...
  7. M

    only allow certain ips to access my "family site"?

    You can't get the MAC address. It's link-level only. Not everyone who polices sites has file access. For those that do (it won't be through "your" file manager), it's still more difficult to wade through the source than to view the website in a browser. I don't see anything in the TOS that...
  8. M

    HTML basics : getting started coding

    <br/> is hardly ever semantic. Use <p> for paragraphs (which are styled by default to have 1em top and bottom margins), or set CSS margins for other elements. This "tutorial" leaves out many other essential aspects of HTML, such that HTML is used to define the structure of a document and that...
  9. M

    Tutorial: PHP/MySQL Membership System

    Don't threadjack. Don't revive dead threads. If you ask for a private response, expect none. Read the forum rules before you post; this one is for posting tutorials, not asking for help. Search the forums. The topics of databases and login systems come up quite often. If you're inexperienced...
  10. M

    hola

    I think you were looking for the introductions forum. This one is for posting (but not requesting) tutorials.
  11. M

    only allow certain ips to access my "family site"?

    Note that preventing admins from accessing your site may break the TOS, as they need to be able to check the site for other violations. The X10 server's load balancing set-up may interfere with your IP check, as the IP your code checks may be that of the load-balancing proxy. You may need to...
  12. M

    Help my laptop with windows 7 hang up? freeze or what?

    There could be all sorts of causes; there isn't nearly enough information to diagnose. Bad RAM or hard drive sectors could cause data corruption, though I'd suspect the former would affect mouse tracking as well (only a suspicion, not something to take to heart). Running memory (such as memtest...
  13. M

    php finding the directory name

    realpath isn't of much use, since the server sets the temporary name. pathinfo would be helpful if Kim wanted some part of the pathname give the full pathname, but it won't help to get the pathname itself.
  14. M

    Using Javascript to check if image has loaded?

    This is exactly how you do it. Use an image element and register the fade-in function as a "load" event handler on the image element. Whenever you change the source, the handler will be invoked when the new image finishes loading. You have to use an image element because only certain elements...
  15. M

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'shanksro'

    Re: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'shanks Start with the X10 wiki article on MySQL connection errors. The mysql extension is dangerously out of date and on its way to deprecation. Use PDO.
  16. M

    Dreamweaver rollover help!

    A property of most logical systems is that changing a single character can turn a true statement false or (more often) into something that isn't even a valid statement. Since computers have no real intelligence, they generally don't have a way of recovering from syntax errors and other...
  17. M

    Create User Accounts

    Further down on the page you mention (the about page) is a link to a FAQ: "What's so wrong about sending a new password in plaintext?". The fact is many (even those in the second half) won't delete e-mail with passwords, even if the e-mail says to delete it. For those who aren't security...
  18. M

    Hi, Any one got anti SQL injection script for php?

    Read up on static IPs and you'll realize that static public IP addresses can only be assigned from a pool that has been allocated to someone else (your ISP, in this case). Ultimately, address pools are allocated by IANA, but anyone that has been allocated a pool can allocate a portion of that...
  19. M

    php finding the directory name

    If you're looking for the path to the file on the server, it's in the "tmp_name" entry for the file in $_FILES. Make sure you read "Handling file uploads" in the PHP docs to learn about file handling. The manual is your friend.
  20. M

    help with mysql connect

    Start with the X10 MySQL articles.
Top