Jump to content

Problem with PHP outputting information correctly after running for a while


papaface

Recommended Posts

I have a script that runs for quite a while (about 700 second per video).

When it is run, it outputs some information for a cURL session.

 

Once the cURL process is initiated php starts downloading a large file to a directory. The file is around 65mb.

When the file is finished downloading through curl I have the following code:

echo "Downloaded <br />";

$sw->runDBQuery("UPDATE `videoinfo` SET `videoDownloaded` = '1' WHERE `videoStorageKey`= '".$videostoragekey."' ");

The problem I am having is that the script is NOT outputting "Downloaded" in SSH or in the browser BUT the SQL query is being run correctly, and in the background the script moves onto the next file to download (i can see this by monitoring the download directory) but I see no output at all!

 

This leads me to come to two conclusions.

 

Apache is not timing out the request as in SSH, apache is not involved.

The browser is not at fault, as I am using Putty.

 

So what could be causing this issue?

 

I am TOTALLY stuck. I cannot work out what the issue could be, it is driving me insance.

 

Any help would be appreciated.

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.