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.

Archived

This topic is now archived and is closed to further replies.

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