PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > - APC failing and being very odd!
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
- APC failing and being very odd!

Réponse
 
LinkBack Outils de la discussion
Vieux 07/03/2008, 08h01   #1
Vertigo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut - APC failing and being very odd!

Hi,

I just installing APC the other day, and have been frustrated trying
to make file upload progress work ever since. I have a simple test
form with the APC_UPLOAD_PROGRESS hidden field value set to a random
md5 hash generated per page refresh, and a repeating ajax call
alongside the main POST which updates a progress bar - much like those
found on the net, but i wrote it to use jquery.

Firebug reports the ajax calls being made and completing, but nothing
is being returned. Going to the progress checker script and typing the
GET var manually also returns nada. When the upload completes, one of
two things happens - the upload completes and a congratulatory message
is displayed saying so, or upload completes and prompts the user to
download THE RECIEVING SCRIPT. Not a good idea! After the upload
completes, if I manually check the progress script with the previously
uploaded key, it returns 100 (as in 100%), but not all the time. If I
check the APC monitor script, sometimes I discover that the entry was
never written.

From this, I gather a few things:
1) The APC entries are being written after the upload finishes.
2) Sometimes the entry goes awol.
3) APC is screwing up something in the mime-types when downloading
finishes, but only sometimes.
4) 2 and 3 dont nessicarily happen at the same time.

This is whats in my php.ini:

extension=/usr/local/lib/apc.so (which exists, from pecl install apc)
apc.enabled = on
apc.optimization = off
apc.rfc1867 = on
apc.rfc1867_freq = 4096k
apc.rfc1867_name = APC_UPLOAD_PROGRESS
apc.rfc1867_prefix = upload_

phpinfo() shows it being loaded and vars being set properly.

Question - do I need to apc_store in the upload recieving script? I
was under the impression that its done automagically, nothing Ive read
says its needed.

This has me completely stumped. Could someone list all the php.ini
vars i need set in order for this particular function to work? Are
there any modules that conflict with this one? Anything else someone
can shed light on? Im almost out of ideas.
  Réponse avec citation
Vieux 09/03/2008, 09h14   #2
Vertigo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: - APC failing and being very odd!

Still looking for with this - If anyone could give me a hand, it
would be appreciated.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h47.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11445 seconds with 10 queries