0

I want to upload to a php script, and I am reading conflicting info. Some say that the 'time_out' starts as soon as the script is accessed and data is start to be placed, some say that it starts when the script receives all the data.

Anybody able to confirm which one it is?

I will be uploading files via AJAX to a script, the script only has to move the file and create a MySQL row. So if the time out starts after all the data is received then I don't think there will be time out issues. But if it starts once accessed, then upload times could create issues.

2 Answers 2

2

It starts when the script starts to run. You can use set_time_limit() inside your function to allow it to run longer if you need to... but it requires safe mode to be turned off.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks jdu. So as soon as the file begins its upload, the time out starts counting. Some of the files will be quite large. Might have to look into chucking.
1

It is set at the initial start. If you need more time use the set_time_limit()

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.