Search results

  1. M

    php include

    Did you try searching the forums or Google?
  2. M

    htaccess render as php

    Don't multipost. Your question has already been answered.
  3. M

    .htaccess problem

    Try: AddHandler application/x-httpd-php5 .xml AddHandler is now the proper way to associate a handler with a file extension. Alternatively, just give your script a ".php" extension. The file extension doesn't matter to the client. It's best to make your URIs extension-agnostic.
  4. M

    php include

    If URL fopen wrappers are disabled, you can't access URIs as files. Including a remote page will execute the page remotely and include the result. If you want to import the source of password_protect.php, it won't work. If password_protect.php is actually on the same server, use a normal file...
  5. M

    Css

    W3Schools is a mixed bag. Some good information, some bad practices. The CSS info is probably good, but you should read some other sources for comparison. W3 has a page dedicated to resources for learning CSS, but I don't know if they're any better than W3Schools. Once you're familiar with...
  6. M

    My site gets blocked by antivirus software

    Since your friend was using TrendMicro, I tried TrendProtect and it indeed gave a warning. Googled "site:pcriot.com" and it gave a warning for all pages on the pcriot.com domain. At some point, there was probably a subdomain of pcriot.com that was a malware or phishing site (though it could have...
  7. M

    Any chance of getting Subversion installed?

    SVN is beyond the scope of X10. Besides, there are already free SVN hosts.
  8. M

    mysql table if not exists

    Sounds like the live script wasn't the current version. Good thing it's working now.
  9. M

    mysql table if not exists

    If the error message is generated by your script, check the test that the query succeeds; it could be that the query succeeds but success isn't tested properly. If the error message turns out to be from MySQL (via mysql_error), then the table creation query doesn't have an "IF NOT EXISTS"...
  10. M

    mysql table if not exists

    What's the exact error? Better find the file and line the error occurs at as well.
  11. M

    How to enable schema permissions?

    Usability and esthetics may not be important in this case, but you need to consider security. You never know when a vandal will target you. Basically, the script uses outdated techniques. They open up your script to SQL injection. Securiteam has a very informative write-up on SQL injection...
  12. M

    mysql table if not exists

    What's the exact error you're getting? Do you have a URI for a live test page? $_SERVER['SERVER_NAME'] holds the server name, but you don't need even that because you can leave off the URI scheme and hostname: <div style="position: relative; z-index: 1; float: left;" id="viewer"> <img...
  13. M

    How to enable schema permissions?

    To be fair, what follows isn't any different on a Mac. Or simply change the text labels in the "Add" section to reflect the fact you can modify permissions. That one detail is the worst piece of cPanel's design. That's why suspicion isn't a valid diagnostic tool. Mentioning the guess was...
  14. M

    check if flash is installed

    Google search: flash alternate content. One of the better pages is the third result, "Providing alternative content for SWF files". "Flash Embedding Cage Match" on A List Apart covers various implementations. Whatever you pick, make sure it works if JS isn't supported (which is much more likely...
  15. M

    CSS Prob

    You could have if you created a minimal test case or used a CSS debugger, such as Firebug, Firefox's DOM inspector or Safari 4's debugger. It's easiest to selectively disable style rules in Safari 4. Yes.
  16. M

    CSS Prob

    That's only true if you set both using separate "background" properties: #body div#statusbox_failure { background: url("../images/icon_failure.png"); background: #FFFAF1; border: 1px solid #D2A960; } If you use the "background-color" and "background-image" properties, or a single...
  17. M

    Do you believe in God?

    shanedk posted a wonderfully simple proof that light speed decay isn't compatible with a young universe using basic trigonometry and observations of supernova SN1987A.
  18. M

    mod_rewrite helo

    There's no time like the present: Perl RE Tutorial Python RegExp HOWTO You should find that learning about finite state automata (aka finite state machines) will be helpful, as FSAs and REs are equivalent.
  19. M

    Python (beginner) - how do I get it running, starting from scratch?

    Don't do it that way. Seriously, don't. You'll have enough to worry about learning Python. You don't want to have to worry about Unix file permissions, CGI, HTTP &c. It's easy to install Python, and it's much easier to use the interactive shell than trying to debug a CGI script where the only...
  20. M

    Python

    When posting code samples, use the [php], [html] or tags as appropriate. They will separate the code from the rest of the post and preserve indenting, which is extremely important in Python. You don't need two shebang lines. The second will do nothing. The "#!/usr/bin/env python" is probably...
Top