变量如何在整个项目的所有页面中用作全局变量. [英] How variable can be used as global in all the pages of the complete project.

查看:483
本文介绍了变量如何在整个项目的所有页面中用作全局变量.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在PHP中,如何在项目中的任何位置使用全局变量进行更新和访问.我想将其存储在客户端计算机中.我需要从问题库中选择要提取的问题,并将其临时存储在客户端计算机中.考试结束后,答案集将存储到数据库[服务器中]以进行在线考试.

In PHP how global variable can be used for updation and access from any where in the project. I want to store it in clients machine. I need selected question from the question bank to be fetched and to be stored in clients machine temporary. After exam over answer set will be stored to database[in server] for online exam.

推荐答案

我对PHP不太了解,但是我想这可能对您有帮助...

http://www.webmasterworld.com/php/3107282.htm [
I dont know much about PHP, but this might help you I think...

http://www.webmasterworld.com/php/3107282.htm[^]

:cool:


这篇关于变量如何在整个项目的所有页面中用作全局变量.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆