window.setTimeout equivalent in PHP?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Csaba Gabor

    #16
    Re: window.setTimeo ut equivalent in PHP?

    On Sep 3, 5:26 pm, gosha bine <stereof...@gma il.comwrote:
    On 03.09.2007 16:55 Csaba Gabor wrote:
    ....
    My objections against .NET are
    (1) Bloat - the thing is huge, last time I looked, not to mention that
    my Win XP configuration needed to change simply as a result of
    installing it.
    >
    I'm wondering why you decided to wrote this in php. WSH + jscript or
    vbscript seems to be the "platform of choice" for COM-based scripting.
    It's true that those are the platforms of choice, and that's not
    surprising. They are Microsoft products that specifically tried to
    get people to use those technologies, and they had support for it from
    pretty much the beginning. Furthermore, they are quite stable
    (especially since development on them has stopped). So they've got
    native support, stability, and user base going for them. Not
    surprising at all. Plus, the vbscript newsgroups are some of the best
    on the block.

    Nevertheless, I find PHP much friendlier to use. It's got a far
    larger assortment of functions for string, array, and regExp
    manipulation, and perhaps most importantly, it is MUCH faster. Almost
    everything that you can do in COM, you can do with the COM support
    that PHP has. To such an extent that I can write native PHP, full
    blown GUI apps, with no third party requirements beyond that of having
    PHP (but not PHP-GTK) on a standard windows environment.

    Comment

    • Jerry Stuckle

      #17
      Re: window.setTimeo ut equivalent in PHP?

      Michael Fesser wrote:
      .oO(Jerry Stuckle)
      >
      >Michael Fesser wrote:
      >>.oO(Jerry Stuckle)
      >>>
      >>>OK, you're using the wrong tool for this. PHP is server side, not
      >>>client side, and has no idea what happens at the client.
      >>Csaba wrote:
      >>>
      >>| My question was about CLI PHP (Command Line Interface or CLIent side
      >>| php), and not server side processing.
      >>>
      >Yes, I can read, Micha. My comment stands.
      >
      The CLI doesn't involve any server. I even use it for shell scripts. Of
      course you can write applications in PHP that don't communicate via HTTP
      with some other. As far as I understand the OP is using PHP for writing
      some kind of Windows application and wants to capture messages sent by
      another app.
      >
      Micha
      No, it doesn't. But it requires the user to have PHP on the client
      machine, and PHP has no security features. This would leave his machine
      wide open to anything the PHP script might want to do.

      There is no way I would load PHP on my machine because a web site
      required it. And no person with any sense would. Additionally, very
      few users with no knowledge of PHP are going to load it on their system,
      configure it, etc. If they do, they're opening themselves up to all
      kinds of problems.

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      • Toby A Inkster

        #18
        Re: window.setTimeo ut equivalent in PHP?

        Csaba Gabor wrote:
        Nevertheless, I find PHP much friendlier to use. It's got a far
        larger assortment of functions for string, array, and regExp
        manipulation, and perhaps most importantly, it is MUCH faster.
        Good argument. VB/VBScript string processing is horrible; Javascript's is
        better, but that's not saying much.

        --
        Toby A Inkster BSc (Hons) ARCS
        [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
        [OS: Linux 2.6.12-12mdksmp, up 75 days, 11:53.]

        TrivialEncoder/0.2

        Comment

        • R. Rajesh Jeba Anbiah

          #19
          Re: window.setTimeo ut equivalent in PHP?

          On Sep 3, 3:51 am, Csaba Gabor <dans...@gmail. comwrote:
          Is there a straightforward way of implementing a PHP equivalent to
          window.setTimeo ut?
          <snip>

          I think, the combination of tick and connections functions are what
          you need:

          1. http://in.php.net/declare
          2. http://in.php.net/connection-handling

          --
          <?php echo 'Just another PHP saint'; ?>
          Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

          Comment

          Working...