Ver Mensaje Individual
  #16 (permalink)  
Antiguo 13/04/2012, 19:16
alex760125
 
Fecha de Ingreso: enero-2010
Mensajes: 239
Antigüedad: 14 años, 4 meses
Puntos: 0
Respuesta: Código lento.

Cita:
Iniciado por h2swider Ver Mensaje
En el código que nos otorgaste, el 35 tiene un espacio en el medio. Desconozco si en tu entorno de desarrollo esta o no corregido. Pero es un error de sintaxis

Tengo un core 2 duo 2.4m, no es mucho y sin embargo funciona. Tal vez deberías aumentar el tiempo de ejecución de tus scripts y la memoria asignada en el php.ini para que te funcione adecuadamente.

Sabes q si te funciona mi código parece entonces q yo no he cambiado bien los valores en php.ini pero pasa q así no lo encuentro en mi server wamp.

C:\wamp\bin
Acá tengo las carpetas apache, mysql, php. Yo entré en apache y me aparece otra Apache2.2.17 y acá entre en bin y cambié los valores en un archivo q dice solamente php q en tipo me dice opciones de configuración.

Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 1800

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Note: This directive is hardcoded to -1 for the CLI SAPI
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time = 60

; Maximum input variable nesting level
; http://php.net/max-input-nesting-level
;max_input_nesting_level = 64

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M


Cuando entro en C:\wamp\bin\php\php5.3.5 me encuentro con otro archivo q dice php opciones de configuración:

php.ini Options ;
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
;user_ini.filename = ".user.ini"

; To disable this feature set this option to empty value
;user_ini.filename =

; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
;user_ini.cache_ttl = 300


Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 1800

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Note: This directive is hardcoded to -1 for the CLI SAPI
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time = 60

; Maximum input variable nesting level
; http://php.net/max-input-nesting-level
;max_input_nesting_level = 64

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M



Cambié ambos como pueden ver y nada. Mi navegador Mozilla(q también actualicé) se sigue bloqueando y no termina la ejecución.

Última edición por alex760125; 13/04/2012 a las 21:46