Reply to Alternative to apc_fetch?

Your name:

Reply:


Posted by Manfred Kooistra on 01/11/07 15:24

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: http://progphp.com/upload.php
And here is the sourcecode: http://progphp.com/upload.phps

The first lines of that script read:

<?php
if($_SERVER['REQUEST_METHOD']=='POST') {
$status = apc_fetch('upload_'.$_POST['APC_UPLOAD_PROGRESS']);
$status['done']=1;
echo json_encode($status);
exit;
} else if(isset($_GET['progress_key'])) {
$status = apc_fetch('upload_'.$_GET['progress_key']);
echo json_encode($status);
exit;
}
?>
<html>
....

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 php.net, 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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация