473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

programs taking too long to exit

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?

Apr 2 '07 #1
3 1618
jm***@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.
js*******@attglobal.net
==================
Apr 2 '07 #2

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.

On Apr 2, 11:55 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
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
==================

Apr 2 '07 #3
jm***@fastermail.com wrote:
On Apr 2, 11:55 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
>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.
js*******@attglobal.net
==================
Apr 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Krisztian Kepes | last post by:
Hi ! I want to start many py programs - with other parameters. Because the programs have many to-do, I don't want to wait for them. In Delphi it is like this: >>>>>>>>>>>>>>>
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
4
by: Lingyun Yang | last post by:
*** post for FREE via your newsreader at post.newsfeed.com *** Dear all, I have a file it's binary data viewed in UltraEdit is EF BB BF 0D 0A 3C ....... I want to read them into a int or long...
17
by: romixnews | last post by:
Hi, I'm facing the problem of analyzing a memory allocation dynamic and object creation dynamics of a very big C++ application with a goal of optimizing its performance and eventually also...
2
by: brad | last post by:
Hi, I'm new to this group, and recently downloaded the MS Express package for C/C++. I tried to install and run some of the sample programs, and get a peculiar error. ------ Skipped Build:...
9
by: esakal | last post by:
Hello, I'm programming an application based on CAB infrastructure in the client side (c# .net 2005) Since my application must be sequencally, i wrote all the code in the UI thread. my...
8
by: kvt | last post by:
Hi, One of my friend puzzled me to write a program which destructs itself. i.e, by the time it stops execution, its executable file should be deleted. I tried a lot like a) using " system()...
35
by: eliben | last post by:
Python provides a quite good and feature-complete exception handling mechanism for its programmers. This is good. But exceptions, like any complex construct, are difficult to use correctly,...
4
by: eliane | last post by:
For some reason, DB2 is taking a long time to start archiving the logs. Pls, do you know what could be causing it? I see the following msgs on db2diag.log 2008-09-04-00.36.24.414103+000...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.