 |
|
 |
|
Next: extension and pecl dll location
|
| Author |
Message |
External

Since: Jun 10, 2004 Posts: 1
|
(Msg. 1) Posted: Wed Jul 14, 2004 10:16 am
Post subject: global.asa equivalent? Archived from groups: alt>php (more info?)
|
|
|
|
|
| Back to top |
|
 |  |

Joined: Jan 06, 2004 Posts: 660
|
(Msg. 2) Posted: Wed Jul 14, 2004 2:43 pm
Post subject: Re: global.asa equivalent? [Login to view extended thread Info.]
|
|
|
| Ever Olano wrote: |
Hi, there. In PHP, is there a file that's equivalent to global.asa in ASP
where you can perform initializations and cleanup?
Thanks,
Ever |
I program both. As far as I know, there is nothing like that in PHP. It does make sense since php is lacking application and session variables (yikes!). >> Stay informed about: global.asa equivalent? |
|
| Back to top |
|
 |  |
External

Since: Jan 11, 2004 Posts: 465
|
(Msg. 3) Posted: Wed Jul 14, 2004 3:16 pm
Post subject: Re: global.asa equivalent? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 14 Jul 2004 09:16:17 -0700, "Ever Olano" wrote:
>Hi, there. In PHP, is there a file that's equivalent to global.asa in ASP
>where you can perform initializations and cleanup?
Closest would probably be the auto_prepend_file and auto_append_file
configuration directives.
--
Andy Hassall / Space: disk usage analysis tool
<a rel="nofollow" style='text-decoration: none;' href="http://www.andyh.co.uk" target="_blank">http://www.andyh.co.uk</a> / <a rel="nofollow" style='text-decoration: none;' href="http://www.andyhsoftware.co.uk/space" target="_blank">http://www.andyhsoftware.co.uk/space</a> >> Stay informed about: global.asa equivalent? |
|
| Back to top |
|
 |  |
External

Since: Jan 11, 2004 Posts: 465
|
(Msg. 4) Posted: Wed Jul 14, 2004 5:16 pm
Post subject: Re: global.asa equivalent? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 14 Jul 2004 19:48:04 GMT, steve wrote:
>> Hi, there. In PHP, is there a file that’s equivalent to global.asa
>> in ASP where you can perform initializations and cleanup?
>
> I program in both. As far as I know, there is nothing like that in
> PHP. It does make sense since php is lacking application [variables]
Yes, there's no direct equivalent of application variables.
> and session variables
No, it isn't, PHP has session variables.
--
Andy Hassall / Space: disk usage analysis tool
<a rel="nofollow" style='text-decoration: none;' href="http://www.andyh.co.uk" target="_blank">http://www.andyh.co.uk</a> / <a rel="nofollow" style='text-decoration: none;' href="http://www.andyhsoftware.co.uk/space" target="_blank">http://www.andyhsoftware.co.uk/space</a> >> Stay informed about: global.asa equivalent? |
|
| Back to top |
|
 |  |

Joined: Jan 06, 2004 Posts: 660
|
(Msg. 5) Posted: Wed Jul 14, 2004 5:57 pm
Post subject: Re: global.asa equivalent? [Login to view extended thread Info.]
|
|
|
| Andy Hassall wrote: |
On Wed, 14 Jul 2004 19:48:04 GMT, steve <UseLinkToEmail RemoveThis @dbForumz.com> wrote:
>> Hi, there. In PHP, is there a file that’s equivalent to global.asa
>> in ASP where you can perform initializations and cleanup?
>
> I program in both. As far as I know, there is nothing like that in
> PHP. It does make sense since php is lacking application [variables]
Yes, there's no direct equivalent of application variables.
> and session variables
No, it isn't, PHP has session variables.
--
Andy Hassall <andy RemoveThis @andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space |
Hi Andy, I did not know php has session variables. Please advise. We are not talking about saving variables to cookies? That is not a "session variable"... >> Stay informed about: global.asa equivalent? |
|
| Back to top |
|
 |  |
External

Since: Jan 11, 2004 Posts: 465
|
(Msg. 6) Posted: Wed Jul 14, 2004 6:16 pm
Post subject: Re: global.asa equivalent? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 14 Jul 2004 21:28:44 GMT, steve wrote:
>>
>>>> Hi, there. In PHP, is there a file that’s equivalent to
>>>> global.asa in ASP where you can perform initializations and cleanup?
>>>
>>> I program in both. As far as I know, there is nothing like that
>>> in PHP. It does make sense since php is lacking [...] session variables
>>
>> No, it isn’t, PHP has session variables.
>
> Hi Andy, I did not know php has session variables. Please advise.
> We are not talking about saving variables to cookies? That is not a
> "session variable"...
<a rel="nofollow" style='text-decoration: none;' href="http://uk2.php.net/session" target="_blank">http://uk2.php.net/session</a>
Session variables are not stored in cookies, they're stored serverside, same
as ASP.
--
Andy Hassall / Space: disk usage analysis tool
<a rel="nofollow" style='text-decoration: none;' href="http://www.andyh.co.uk" target="_blank">http://www.andyh.co.uk</a> / <a rel="nofollow" style='text-decoration: none;' href="http://www.andyhsoftware.co.uk/space" target="_blank">http://www.andyhsoftware.co.uk/space</a> >> Stay informed about: global.asa equivalent? |
|
| Back to top |
|
 |  |

Joined: Jan 06, 2004 Posts: 660
|
(Msg. 7) Posted: Wed Jul 14, 2004 6:26 pm
Post subject: Re: global.asa equivalent? [Login to view extended thread Info.]
|
|
|
| Andy Hassall wrote: |
On Wed, 14 Jul 2004 21:28:44 GMT, steve <UseLinkToEmail DeleteThis @dbForumz.com> wrote:
>> On Wed, 14 Jul 2004 19:48:04 GMT, steve <UseLinkToEmail DeleteThis @dbForumz.com> wrote:
>>
>>>> Hi, there. In PHP, is there a file that’s equivalent to
>>>> global.asa in ASP where you can perform initializations and cleanup?
>>>
>>> I program in both. As far as I know, there is nothing like that
>>> in PHP. It does make sense since php is lacking [...] session variables
>>
>> No, it isn’t, PHP has session variables.
>
> Hi Andy, I did not know php has session variables. Please advise.
> We are not talking about saving variables to cookies? That is not a
> "session variable"...
http://uk2.php.net/session
Session variables are not stored in cookies, they're stored serverside, same
as ASP.
--
Andy Hassall <andy DeleteThis @andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space |
Live and learn. Did not know about sessions, Andy. Thanks for the link.
Based on my reading of that docs, sessions can either propagate via cookies or via url tags that php would automatically add. But the 2nd option requires building php as such (I would guess not available to shared hosting users). So just like asp, one needs to be cautious of cookies being enabled (unless one has access to php build). >> Stay informed about: global.asa equivalent? |
|
| Back to top |
|
 |  |
| Related Topics: | Equivalent of upvar - Is there a PHP equivalent of TCL's "upvar" ? I will appreciate any insights. Andy
window.setTimeout equivalent in PHP? - Is there a straightforward way of implementing a PHP equivalent to window.setTimeout? In a javascript web app, it's often the case that things are done on an event driven basis. For example, html elements might have things like onclick="buttonClic...
PHP equivalent to Perl's !~ - I haven't seen any documentation on this, and searching for !~ has been fruitless. Any suggestions, or is there no equivalent?
Does PHP have an equivalent of JavaScript's prototype obje.. - Basically, I want to add default methods to the PHP string object so that I can do something like: $stringvar = "hello"; $stringvar -> append(" world"); // where append is some kind of prototyped function i define echo $stringva...
Newbie - Is there a PHP equivalent of Server.Transfer (in .. - Hello, Sorry for the newbie question, but I've only been at PHP for a couple of days, and I'm trying to get some stuff done as fast as possible. I'm an experienced ASP.NET programmer, and am trying to find some equivalent stuff in PHP. In ASP.NET.. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|