应用范围变量? [英] Application Scope variables ?

查看:65
本文介绍了应用范围变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从ASP迁移到PHP,其中有应用程序范围变量,可以从网站上的任何页面访问,特别是用于点击计数器。

是否有类似的PHP中的机制?

I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in particular, for hit counters.
Is there a similar mechanism in PHP?

推荐答案

aa写道:
我从ASP迁移到PHP,其中有应用程序范围<可以从网站上的任何页面访问的变量,尤其是用于点击计数器的变量。
PHP中是否有类似的机制?
I am migrating to PHP from ASP where there are the Application Scope
variables which are accessible from any page on a website and which are
used, in particular, for hit counters.
Is there a similar mechanism in PHP?







是的,请查看会话:
http://nl3.php.net/manual/en/ref.session.php


问候,

Ruben。



Hi,

Yes there is, take a look at sessions:
http://nl3.php.net/manual/en/ref.session.php

Regards,
Ruben.


亲爱的维吉尔,


你的想法仍然受到严格的ASP结构的影响。

在会话中放松,开放思路和RTFM。 :-)

最诚挚的问候,


Lucas


Virgil Green < vj*@DESPAMobsydian.com>在消息新闻中写道:< Cn ****************** @ newssvr30.news.prodigy。 com> ...
Dear Virgil,

your thinking is still too influenced by the rigid ASP structure.
Relax, open your mind and RTFM on sessions. :-)
Best Regards,

Lucas

"Virgil Green" <vj*@DESPAMobsydian.com> wrote in message news:<Cn******************@newssvr30.news.prodigy. com>...
" Ruben van Engelenburg" <!鲁@ NOSPAM .NL>在消息中写道
新闻:41 *********************** @ news.xs4all.nl ...
"Ruben van Engelenburg" <ruben@NOSPAM!.nl> wrote in message
news:41***********************@news.xs4all.nl...
aa写道:
我从ASP迁移到PHP,其中有应用程序范围
变量,可以从网站上的任何页面访问,特别是使用的对于点击计数器。
PHP中是否有类似的机制?
I am migrating to PHP from ASP where there are the Application Scope
variables which are accessible from any page on a website and which are
used, in particular, for hit counters.
Is there a similar mechanism in PHP?



您好,

是的,请看一下会话:
http://nl3.php.net/manual/ en / ref.session.php



会话与应用范围不同,我不相信。

我''已经看到了对共享内存方案的引用,但是它们可以用于整个计算机,而不仅仅是一个应用程序(例如,所有会话都在相同的站点ID下运行)。

- Virgil



Sessions are not the same as application scope, I don''t believe.

I''ve seen references to shared memory schemes, but they are avaialble to the
entire computer, not just a single application (all sessions running under
the same site id, for example).

- Virgil



>你的想法仍然受到严格的ASP结构的影响。
> your thinking is still too influenced by the rigid ASP structure.
在会话中放松,开放思路和RTFM。 : - )
Relax, open your mind and RTFM on sessions. :-)




会话变量与应用程序级变量不同。 ASP

提供了一个应用程序框架,ASP *是*框架。


话虽如此,你可以通过PHP使用
复制功能
用于变量存储/检索或使用数据库的公共文件。一些信息

应该可以通过搜索轻松找到。



Session variables are not the same as application-level variables. ASP
offers an application framework, ASP *is* the framework.

Having said that, you can replicate functionality via PHP by either using
common files for variable storage/retrieval, or using a database. Some info
should be easily locatable by searching.


这篇关于应用范围变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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