You are here: Re: programs taking too long to exit « PHP Programming Language « IT news, forums, messages
Re: programs taking too long to exit

Posted by Jerry Stuckle on 04/03/07 01:50

jmark@fastermail.com wrote:
> On Apr 2, 11:55 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> j...@fastermail.com wrote:
>>> I have PHP 5.2.1 running on Windows XP home. The problem I have is
>>> that programs run in the command line are taking more than 10 minutes
>>> to exit. Does anyone know a solution to this?
>> Make the program more efficient?
>>
>> 10 minutes might be good or bad. It's very bad for a program like:
>>
>> <?php
>> echo "Hello, World!\n";
>> ?>
>>
>> Is could be very good for a program which does multiple searches on a
>> 2GB database and creates a lot of reports.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
>
>
> Just to clarify what is happening. Any program is taking to long to
> return to command prompt.
> that is even if I have
> <?php
> echo "Hello, World!\n";
> ?>
>
> It will print Hello Word but does not return to command prompt until
> after 10 minutes.
> Adding an exit statement does not help. Pressing ctrl-c or ctrl-break
> does not force the program to exit.
>
>
(Top posting fixed)

Hmmm, that's a strange one. I've never heard of anything like that.
Have you checked out your PHP.INI file? Perhaps you have an extension
which is causing you problems, for instance.

I'd suggest starting with a very minimal php.ini file (i.e. no
extensions, etc.) and see what that gets you.

Also, what's going on at that time? Is the program taking any CPU time,
for instance?

Did it do this with a different version of PHP?

But the fact you can't even Ctrl-C to get out of it indicates to me it's
more of a Windows problem than PHP. Windows should be able to cancel
the program.

P.S. Please don't top post.

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация