Alternative to apc_fetch?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm trying to install a mixed PHP/JavaScript script, that Rasmus
Lerdorf wrote, on my server. This script shows an upload progress bar
while a file is uploaded through a form.

Here is Rasmus' example:
And here is the sourcecode:

The first lines of that script read:

  $status = apc_fetch('upload_'.$_POST['APC_UPLOAD_PROGRESS']);
  echo json_encode($status);
} else if(isset($_GET['progress_key'])) {
  $status = apc_fetch('upload_'.$_GET['progress_key']);
  echo json_encode($status);

Then follows the html document with the JavaScript for an upload
progress bar.

Now, my problem is the following:

I am on a shared server. I do have PHP 5.2, but I cannot install the
APC extension, so of course Rasmus' code won't work on my homepage.

So this is my question:

Does anyone know an alternative for apc_fetch here?

I can't really tell from the documentation on, what this
function would return here and what I might supply instead.

Any help (even a link to a more detailed instruction to APC) would be
very welcome.

Re: Alternative to apc_fetch?

Ah, well, I learned that it won't work without APC or some other
extension that implements the file upload hooks.

Off to bed :-)

Site Timeline