Jump to content

Unsure if execution is too long.


iarp

Recommended Posts

max_execution_time = 600
max_input_time = 200

Is set in the php.ini

 

My script runs

 

exec("wget $url");
# This line uploads the wget'd item to my amazon s3 bucket
# Email about status, successful or not
/*
* Series of inserts into mysql
*/

 

Now, it downloads, uploads and emails without issue, but the queries don't execute. There is no errors shown at all, and nothing in the database afterwards.

 

The file is anywhere from 60-100MB's, and takes about 4seconds to download, 12-30seconds to upload. I'm not sure if it's the execution time, or maybe running out of resources to execute mysql queries?

 

Not sure what to do from here.

Link to comment
Share on other sites

The query's all worked, i echo'd them out and could see them all after the script stopped, and then manually tried them in mysql.

 

So my next thought was an issue about resources (being on a shared server and all). So i mysql_close() after the query in the header area and then opened a new connection right above the queries. It works now, something must've been going on with mysql dropping the connection or something i'm unsure of.

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.