PHP Stops

This is a discussion on PHP Stops within the PHP Language forums, part of the PHP Programming Forums category; Friends: I have a script that reads in a file incrementally, compares the contents against the contents of a database, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-08-2004
scotty
 
Posts: n/a
Default PHP Stops

Friends:

I have a script that reads in a file incrementally, compares the
contents against the contents of a database, then writes the adjusted
contents to a results file. The size of the results file grows to
approximately 500K before the script just stops. The logic is not the
problem since I put in some echos that should write to screen if
certain processes are exited.

The echos do not write. The script just stops, again, at approx. 500K
results file size.

There does not appear to be a memory issue since memory readings stay
fairly constant. Also, I can't find any settings anywhere that would
keep the results file from not accepting any additional 'fputs' to
take it beyond 500K. Also, PHP's timeout settings have been increased
to handle this longer running script, but, again, the file won't grow
beyond approx 500K. I also put in some lines to release memory, etc.
etc. I checked the MySQL connection timeout settings and adjusted
them.

It is possible that a timeout is occurring somewhere, but I can't think
of where? This may be true because the final file size is not always
the same, but is around 500k.

I'm looking for timeout settings in Internet Explorer?
Can anyone help?

Thanks,

Scott

Reply With Quote
  #2 (permalink)  
Old 12-08-2004
scotty
 
Posts: n/a
Default Re: PHP Stops

The following line solved the problem:

set_time_limit($value);

Scott

Reply With Quote
  #3 (permalink)  
Old 12-08-2004
Alvaro G. Vicario
 
Posts: n/a
Default Re: PHP Stops

*** scotty escribió/wrote (8 Dec 2004 13:21:11 -0800):
> The following line solved the problem:
>
> set_time_limit($value);


You normally get a pretty clear warning message when that's the problem. I
guess error messages are disabled in your server.


--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--
Reply With Quote
  #4 (permalink)  
Old 12-13-2004
scotty
 
Posts: n/a
Default Re: PHP Stops

yes

Reply With Quote
  #5 (permalink)  
Old 12-13-2004
Gary L. Burnore
 
Posts: n/a
Default Re: PHP Stops

On 12 Dec 2004 15:08:03 -0800, "scotty" <scasti1@cox.net> wrote:

Are people who snip everything they're replying to including the
attribution of the person who posted as stupid as top posters?

>yes





--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one! http://signup.databasix.com
================================================== =========================
Reply With Quote
  #6 (permalink)  
Old 12-13-2004
scotty
 
Posts: n/a
Default Re: PHP Stops

Gary, I don't appreciate your comment. The prior user's question was
directed at me after I answered my
own question. I had the decency to let you all know what the solution
was. I then gave Alvaro a quick
brief yes to acknowledge his comment.

I certainly think that my posting, all things considered, was far more
appropriate than yours.

Reply With Quote
  #7 (permalink)  
Old 12-13-2004
Gary L. Burnore
 
Posts: n/a
Default Re: PHP Stops

On 12 Dec 2004 18:33:17 -0800, "scotty" <scasti1@cox.net> wrote:

>Gary, I don't appreciate your comment.


Then learn how to post.

--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one! http://signup.databasix.com
================================================== =========================
Reply With Quote
  #8 (permalink)  
Old 12-13-2004
Geoff Berrow
 
Posts: n/a
Default Re: PHP Stops

I noticed that Message-ID:
<1102905197.114521.292450@c13g2000cwb.googlegroups .com> from scotty
contained the following:

>Gary, I don't appreciate your comment. The prior user's question was
>directed at me after I answered my
>own question. I had the decency to let you all know what the solution
>was. I then gave Alvaro a quick
>brief yes to acknowledge his comment.


Gary can be blunt. Deal with it. What he says is correct (mostly...;-)

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:34 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0