Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #11421 > unrolled thread

about php 5.4.20version

Started byVarsha Shakya <varsha.shakya@gmail.com>
First post2013-10-13 11:00 -0700
Last post2013-10-13 21:53 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.lang.php


Contents

  about php 5.4.20version Varsha Shakya <varsha.shakya@gmail.com> - 2013-10-13 11:00 -0700
    Re: about php 5.4.20version "J.O. Aho" <user@example.net> - 2013-10-13 21:17 +0200
    Re: about php 5.4.20version Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-10-13 23:02 +0200
    Re: about php 5.4.20version Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-13 21:53 +0000

#11421 — about php 5.4.20version

FromVarsha Shakya <varsha.shakya@gmail.com>
Date2013-10-13 11:00 -0700
Subjectabout php 5.4.20version
Message-ID<49ce76d6-09eb-4038-aa3a-528d7f13c4ba@googlegroups.com>
about $_SESSION and session_start();

how to replace SESSION ??? 
define("VARIABLE", variable) and $GLOBALS not functioning... 
will any body provide me sample file ???

[toc] | [next] | [standalone]


#11422

From"J.O. Aho" <user@example.net>
Date2013-10-13 21:17 +0200
Message-ID<bc09v3Flfi9U1@mid.individual.net>
In reply to#11421
On 13/10/13 20:00, Varsha Shakya wrote:
> about $_SESSION and session_start();
>
> how to replace SESSION ???

Try to use cookies instead, www.php.net/manual/en/function.setcookie.php
Hopefully you will reaserach the pro and cons of using cookies, as all 
great Indian coders do.


> define("VARIABLE", variable) and $GLOBALS not functioning...
> will any body provide me sample file ???

Nope.


Note for the future: The subject of your post should be a summary of 
your question and in the body you should actually have a proper 
question, the more information you can share of what you want, the 
better quality the replies will be.
People will not hand you a solution you can use stright away, as you 
ain't paying them.

-- 

  //Aho

[toc] | [prev] | [next] | [standalone]


#11423

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-10-13 23:02 +0200
Message-ID<2300440.oCfmsFoUjv@PointedEars.de>
In reply to#11421
Varsha Shakya wrote:

> about $_SESSION and session_start();
> 
> how to replace SESSION ???

You don't (cookies are a poor substitute, whoever suggests that should be 
ashamed).  PHP 5.4.20 does not remove $_SESSION or session_start(), so there 
is no need to replace it.

That session.auto_start is PHP_INI_PERDIR now does not prevent you from 
calling session_start().  It just means that session_start() will not be 
called *automatically* if, and only if, you have not explicitly set 
session.auto_start to 1 in any of php.ini, .htaccess, httpd.conf, or 
.user.ini.  session.auto_start=0 is the default since at least PHP 5.3, so 
your code should not be affected by the change.

<http://php.net/ChangeLog-5.php#5.4.20>
<http://php.net/manual/en/configuration.changes.modes.php>

> define("VARIABLE", variable) and $GLOBALS not functioning...

The *seeming* “not functioning” might have to do with the fact that define() 
defines _constants_, and that you, not having a minimum clue, are writing 
nonsensical code.  Blame yourself, not PHP.

> will any body provide me sample file ???

My Magic-8 Ball says “Unlikely”.


PointedEars
-- 
    realism:    HTML 4.01 Strict
    evangelism: XHTML 1.0 Strict
    madness:    XHTML 1.1 as application/xhtml+xml
                                                    -- Bjoern Hoehrmann

[toc] | [prev] | [next] | [standalone]


#11424

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2013-10-13 21:53 +0000
Message-ID<l3f4ov$f0i$1@dont-email.me>
In reply to#11421
On Sun, 13 Oct 2013 11:00:19 -0700, Varsha Shakya wrote:

> about $_SESSION and session_start();

http://php.net/manual/en/reserved.variables.session.php
http://php.net/manual/en/function.session-start.php

> how to replace SESSION ???

http://php.net/manual/en/function.str-replace.php

> define("VARIABLE", variable) and $GLOBALS not functioning...

http://php.net/manual/en/function.define.php
http://php.net/manual/en/reserved.variables.globals.php

> will any body provide me sample file ???

<?php
?>

-- 
Denis McMahon, denismfmcmahon@gmail.com

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web