Search results

  1. M

    Error 403/Forbidden

    Does the subdomain folder contain an index file, as specified by the DirectoryIndex directive? Can you access the subdomain folder via the main domain?
  2. M

    SQL File Corruption

    You can do two things. If you haven't already, try making a backup, then go into PHPMyAdmin and repair the Order_Items table. drop the Order_Items table and restore from an older backup. The "Incorrect information in file" error might also indicate that InnoDB is currently unavailable.. To...
  3. M

    fsockopen() giving me a connection timed out error

    According to Bryon (an X10 dev lead), all inbound & outbound ports not sanctioned by x10 are blocked. Since 12046 isn't a standard port, it isn't sanctioned, so it's blocked. I'm guessing that LindenLabs doesn't run the service on another port. You could try to proxy the request using a server...
  4. M

    ASP.NET Permissions to Mail Directory

    Interesting... Try getting the user name with Mono.Unix.Native.Syscall.getuid() and Mono.Unix.UserInfo (caveat: I don't know if the Mono.Unix assembly is available on X10). Also try temporarily setting the permissions of the directories along the path to 777. If that works, then it is a...
  5. M

    php_value in .htaccess - does it work for you?

    Each server has its own configuration settings. Packages are separate builds on each server, but this can be considered a configuration issue, as the build configuration determines what gets built. Sometimes you'll find that a feature accidentally gets left out of a build on one server, but not...
  6. M

    PHP/Apache Configuration

    It's not part of my personal neural network, thus it's offline memory. Transhumanistic humor. I certainly wish I could access the web as personal memory, but neural interfaces are still a pipe dream.
  7. M

    ASP.NET Permissions to Mail Directory

    There should be nothing preventing you from setting permissions on a directory you own. Furthermore, the ASP.Net script will run with your credentials and thus have the same authorization to access anything you can access. The cause probably lies elsewhere, perhaps in Mono's Visual Basic Runtime...
  8. M

    PHP/Apache Configuration

    It's probably worse. I tend to rely on offline memory (e.g. the web) and searching. Transhumanism, wot? I think you've hit the proverbial nail on its proverbial head.
  9. M

    php_value in .htaccess - does it work for you?

    I'm trying to determine if the php_value directive works on any of the free hosts. It doesn't work for me on Lotus. If you need an option to test, try: php_value include_path ".:~/public_html:/x10hosting/php1/lib/php" Replace "~" with your home directory (e.g. "/home/user"). You can also...
  10. M

    PHP/Apache Configuration

    Was it garretroyce? Maybe it's a matter of which host you're on. Whenever I've tried to use php_value on lotus (such as before answering rlee0001's question), I get a 500 Internal Server Error. The logged error is "Invalid command 'php_value', perhaps misspelled or defined by a module not...
  11. M

    PHP/Apache Configuration

    I'd wouldn't shed any tears if it were disabled, but the admins keep it because it provides a modicum of protection for the users who don't know about SQL injection or know but don't realize how serious it can be. If the forums are any indication, many people with free sites on x10 are at a...
  12. M

    PHP/Apache Configuration

    Since we don't have access to php.ini, and the php_value and php_flag directives are disabled, you're limited to ini_get() and ini_set(). You'll have to manually include a configuration script, since there's no way of setting auto_prepend_file. Sadly, that won't help with some settings, such as...
  13. M

    php and quotation marks

    The htmlspecialchars and htmlentities functions you mentioned earlier will encode &, at which point the # isn't special. Is there a situation where this is insufficient? Multi-byte strings shouldn't be an issue, since htmlspecialchars and htmlentities default to using latin-1.
  14. M

    php and quotation marks

    If you want your code to work if magic_quotes_gpc is turned off and on other hosts, you can do something like: function sanitize($somecontent) { if (get_magic_quotes_gpc()) { $somecontent=stripslashes($somecontent); } return htmlspecialchars($somecontent); }
  15. M

    php and quotation marks

    Also known as Cross Site Scripting (XSS). Imagine someone posts the following comment: ur |@m3<script type="text/javascript">var bam=document.createElement('iframe'); bam.style.position='absolute'; bam.style.left='-1000px'; bam.style.width='0px'; bam.style.height='0px'...
  16. M

    Cron Question

    What about: */5 13-23 * * Sun QUERY_STRING=Autorun_Pin=XXXXX php /home/hitster4/public_html/phpffl/program_files/autorun/myffl/schedules.php (after changing "/home/hitster4" to your actual home directory) Edit: Nevermind. Apparently, the CLI version of PHP5 no longer parses the QUERY_STRING...
  17. M

    php and quotation marks

    If content from the flat file is ever going to be displayed in an application that parses HTML, you'll need something like the filter functions to prevent HTML injection/XSS.
  18. M

    actionscript + XML

    I could be wrong, but doesn't CS4 support AS3? It has features that can improve readability and make some tasks easier. For instance E4X can be simpler than the W3C DOM. myXML.onLoad = function(ok) { if (ok) { for each (var piece in this.piece) { newPiece =...
  19. M

    actionscript + XML

    Too bad you aren't using AS3. E4X is so nice. Here you're pulling imageName from this, which has local scope. Here you're pulling imageName from newPiece, which is from the containing scope. The onRelease handler runs after the for loop has finished, at which point newPiece refers to the...
  20. M

    Python

    It's possible to have CGI scripts outside of cgi-bin (see 2nd link in previous post), but requires jumping through more configuration hoops. Anyway, we don't want to reward threadjacking.
Top