Jump to content

Rebel7284

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Everything posted by Rebel7284

  1. One more bump just in case anyone else has any idea on what I can try to do to figure out the root of this problem.
  2. This makes no sense to me. Any idea what can possibly be interfering with this?
  3. bump2, has no one here worked with signals before?
  4. <a href="parent.location='<?stuff?>'>link in iframe</a> can do it by refreshing the parent which as a result refreshes the iframe too.
  5. the javascript function seems to have an extra paranthesis. Don't know why it's affecting the php code though.
  6. keep the same extension as the original file by cutting off the characters in the filename after the last dot and then pasting them back on?
  7. you can use rand and test if something with that name already exists. Microtime can also give you numbers that are unlikely to repeat.
  8. bump
  9. but pcntl_fork works. If it was a problem with the extension, that wouldn't work either, right? Edit: just looked in phpinfo, --enable-pcntl is there.
  10. Huh? Since when is it an extension? I was under impression that it was a core part of PHP. Where in php.ini would i find this out? Warnings and higher are enabled. No errors are being displayed.
  11. Hi, I have a problem with signal handling not working in cli PHP Relevant information: PHP 4.3.11 (cli) (built: Jun 21 2005 12:10:12) Cent OS kernel 2.6.9 Sample code: <? //declare(ticks = 1); pcntl_signal(SIGINT, "sighandler"); pcntl_signal(SIGQUIT, "sighandler"); function sighandler($signo){ echo "Got ", $signo; //ob_end_flush(); } while(1){ sleep(5); } ?> With this code running, I can press Ctrl-C and Ctrl-\ as much as I want, it ignores it and just sits there. If I uncomment the ticks line, the signals are simply not handled and result in immediate script termination. Does anyone have any idea what I'm doing wrong?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.