You are here: Re: Using The Same Page To Display A Hundred Pictures One Picture At A Time « PHP Programming Language « IT news, forums, messages
Re: Using The Same Page To Display A Hundred Pictures One Picture At A Time

Posted by xclarky on 09/28/27 11:38

"What I'd like to do, is load the array only one time, and keep that
loaded so the page doesn't recreate the array each time, thus
minimizing the server side array creation."

Have you considered using sessions? You could use them to create a
temporary cache of the array quite easily.

<?php
session_start();
if (!isset($_SESSION['array_cache'])) {
$array = array('value', 'value');
$_SESSION['array_cache'] = $array;
} else {
$array = $_SESSION['array_cache'];
}
?>

 

Navigation:

[Reply to this 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

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