Login   Register  
PHP Classes
elePHPant
Icontem

timeout-Notice: Use of undefined constant SOCKET_EAGAIN - assume

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      100% PHP Uploader  >  All threads  >  timeout-Notice: Use of undefined constant SOCKET_EAGAIN - assume  >  (Un) Subscribe thread alerts  
Subject:timeout-Notice: Use of undefined constant SOCKET_EAGAIN - assume
Summary:Getting this error for large images like 4MB etc
Messages:3
Author:Shivaraj
Date:2012-02-06 07:08:13
Update:2012-02-06 09:27:31
 

  1. timeout-Notice: Use of undefined constant SOCKET_EAGAIN - assume   Reply  
Picture of Shivaraj
Shivaraj
2012-02-06 07:08:14
I have pasted the 100% PHP Uploader folder on my server its working for all files except large files, images. For the size 4MB,or more is giving following notice:

Notice: Use of undefined constant SOCKET_EAGAIN - assumed 'SOCKET_EAGAIN' in C:\xampp\htdocs\PHPCLASSES\up-man-2011-11-03\uploadmanager.class.php on line 162

  2. Re: timeout-Notice: Use of undefined constant SOCKET_EAGAIN - as   Reply  
Picture of Richard Keizer
Richard Keizer
2012-02-06 09:18:27 - In reply to message 1 from Shivaraj
I think you're using an older version of the socket extension library.
You could try to upgrade it or:

add the following line to your code (just let it execute once)

if (!defined('SOCKET_EAGAIN')) define('SOCKET_EAGAIN', 35);


  3. Re: timeout-Notice: Use of undefined constant SOCKET_EAGAIN - as   Reply  
Picture of Richard Keizer
Richard Keizer
2012-02-06 09:27:31 - In reply to message 2 from Richard Keizer
On my system the constant is defined as 35.
Other resources on the internet state it should be 11.