how to store variable values over multiple page loads

前端 未结 7 501
南笙
南笙 2020-12-18 07:34

I\'m making a php script that stores 3 arrays: $images, $urls, $titles based on the input data of the form within the php file.

<
7条回答
  •  离开以前
    2020-12-18 08:07

    What brought me here was somewhat different kind of beast. I had problem with subsequent post request from AXIS IP camera and needed to preserve last file name across requests. In case that someone stumble here looking for some way to cache variables and SESSION is not an option maybe should look at Alternative PHP Cache:

    Note: Unlike many other mechanisms in PHP, variables stored using apc_store() will persist between requests (until the value is removed from the cache).

    http://php.net/manual/en/book.apc.php

提交回复
热议问题