Jump to content

Script dies after 120 seconds.


ClemenzoDK

Recommended Posts

Hello,

 

I've made a script that runs a numerous of JSON request to an external source. The JSON data given is being ripped and stored in a MySQL database. Since i'm only testing the script, it's currently being run on my own PC.

I've calculated that it will take approx. 55-60 minutes before the script is finished ripping of all the data. But the script dies out after only 120 seconds, without any errors given.

 

I'm using XAMPP on my own PC with the following specs.:

 

  + Apache 2.2.17

  + MySQL 5.5.8 (Community Server)

  + PHP 5.3.5 (VC6 X86 32bit) + PEAR

 

I've set the following to unlimited in PHP.ini:

 

  + max_execution_time

  + max_input_time

  + memory_limit

 

I've also added set_time_limit() to the code without any help. I hope you guys wanna help me out, thanks..

 

Link to comment
Share on other sites

It amazes me that no one has experienced the same problem. I've searched through all MySQL and all Apache configs, but without finding anything that relates to 120 seconds. I've also run a phpinfo(), without any luck.

 

If you guys have any suggestions, please post them - I'm running dry on ideas to solve this.

Link to comment
Share on other sites

Make sure you are editing the right php.ini file, some all-in-one programs have multiple php.ini files.  Also check your mysql config file, maybe it is the mysql execution timing out, not php

 

I double-checked by running phpinfo() everytime I edited the configs, I also checked both the MySQL and Apache cfg's without luck.

 

UPDATE:

 

I tried the script on my new dedicated server, and it worked perfectly. I then copy-pasted all the configs from my local XAMPP folders, and it still worked perfectly. So I guess it has something to do with my PC in someway, though it's not a heavy script.

 

Anyway, thanks for all the suggestions.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.