Search results

  1. M

    Cron job failure

    That's right. The limited functions generally deal with system interaction, such as mail(), file() and mysql_*. Output functions work as normal. The PHP upgrade link leads to a page that says "All accounts are set to x10Hosting's PHP v2," which leads me to believe everyone is using at least...
  2. M

    Cron job failure

    You have to request an upgrade from basic to intermediate. If you don't know, you're probably using basic. To check, log in to your x10 account (not forum account and not cPanel). Your account page has a field that says which version of PHP your site is using (though this may not be accurate)...
  3. M

    Cron job failure

    Just make sure you're testing that the script runs from both the browser and as a cron job. Unless cron has been limited for security reasons, you can run any command you can otherwise run. The job will run with your credentials. Normal path restrictions apply (the path in cron's...
  4. M

    invalid system disk error, help nee

    The filesystem on the hard drive won't affect whether or not the DVD boots. The XP installer gives you the choice of formatting the HD with NTFS, so you don't need to format the HD ahead of time. You can install XP on a FAT32 drive (if you really wanted to), though NTFS is generally better.
  5. M

    css and w3c

    Browser sniffing will fail when the browser spoofs IE or when the User-Agent header is filtered. Conditional comments allow you to reliably target IE for bugfixes. <link href="/style/site.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if lte IE 7]> <link...
  6. M

    invalid system disk error, help nee

    What to you mean "the" 6 disks? An XP install disk fits on a CD, though recovery discs often fill 6 CDs. By "downloaded", do you mean you burned the contents of 6 disks to a DVD, or do you mean you downloaded disc images from a server? If you've properly configured the BIOS to boot off of...
  7. M

    Cron job failure

    You know periodic works when run directly. Did you wait until periodic ran as a cron job (which will be when the time is a multiple of ten, like 7:20 or 11:50), then check the contents of periodic.html? Note: don't open periodic.php again. If periodic.html has a time in the last 10 minutes...
  8. M

    PHP textarea problems

    Aha, single quotes. Only escaped single quotes and backslashes are processed within single quotes. Use the heredoc syntax and read up on string literals in PHP. fopen (rather than include) looks OK in this context as you need to process the email before printing. However, the...
  9. M

    PHP textarea problems

    Looks like you're using single quotes which don't interpolate variables. I can't say for certain because you didn't post the code you're using. Please post a minimal test case; it's very hard to see why your code isn't working if we can't see what your code is. If you want a largish...
  10. M

    Image Verification *captach* not working

    Use closedir on a directory resource, not fclose. Also, what's up with lines 85 & 86? If you want to close the file handle you just opened, line 85 should be $Handle = fopen('code' . '/' . $FileName, 'w');(note the capital H; variable names are case sensitive) so that the fclose on line 86...
  11. M

    PHP Parse Error

    Actually, "$y/n" is perfectly valid and $y will interpolate properly. The parser is greedy but won't take characters that form an invalid identifier, like '/'. In other cases where a variable name is immediately followed by valid identifier characters ($foo="foo"; "$foobar";), use brackets to...
  12. M

    PHP Parse Error

    With the simple syntax for variable interpolation in double-quotes, you don't delimit array indices with quotes: $msg = "Name: $_REQUEST[name]\n[...]" Generally speaking, when the parser complains about an "unexpected T_", (the T_ prefix denotes a token) in a case like this, I'd start...
  13. M

    Cron job failure

    I was thinking more of the file touch technique. We don't know where the problem lies: (a) maybe cron isn't running the job, (b) maybe cron is trying to run the job but there's something wrong with the command that prevents it running, (c) maybe it's running but failing, or (d) maybe it's just...
  14. M

    cant login to accounts panel, anyone else?

    No problems for me on Absolut. If you want to know if a service on your server is down, check the status page.
  15. M

    Cron job failure

    They do go down fairly frequently for short periods. Check the status page. Did my other suggestions make any difference? Assuming you added code to have the script touch a file, does the modification time of the file indicate whether or not the script is running? Another thing to try is...
  16. M

    Sending an email with python

    That's because in your code, you set "p" to the process's stdin, which makes it a file (note the error message tells you this), not the process (a Popen). You use the 'write' method on files, 'communicate' on Popen objects. If ever you're getting an "object has no attribute" error, it's...
  17. M

    Sending an email with python

    You might want to move it. I don't think it will create a security hole to leave it there, but cgi-bin is not meant for storing data. Then you've got me stumped. I tested the following, which is basically your code plus the exception handler, and it worked for me: #!/usr/bin/env python print...
  18. M

    Sending an email with python

    Tests say /usr/sbin/sendmail is the winner. The path to sampleemail.txt is probably wrong, unless you put it in cgi-bin/. Always test for exceptions. Wrap a try: ... except Exception, exc: print exc block around your code & see if you catch anything.
  19. M

    new sign up.got an error msg abt inactivity ..plz hlp

    Searching can be helpful.
  20. M

    Cron job failure

    That will try to run /myscript.php (relative to file system root, not docroot) at 5:05 pm every Tuesday. Fix the command by replacing it with "/home/pyrokid/public_html/myscript.php" (or whatever the path to docroot is) and it still won't run unless myscript.php begins with a shebang line...
Top