FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » about php 5.4.20version
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
about php 5.4.20version [message #183234] Sun, 13 October 2013 14:00 Go to next message
varsha.shakya is currently offline  varsha.shakya
Messages: 2
Registered: October 2013
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
about $_SESSION and session_start();

how to replace SESSION ???
define("VARIABLE", variable) and $GLOBALS not functioning...
will any body provide me sample file ???
Re: about php 5.4.20version [message #183235 is a reply to message #183234] Sun, 13 October 2013 15:17 Go to previous messageGo to next message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
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
Re: about php 5.4.20version [message #183236 is a reply to message #183234] Sun, 13 October 2013 17:02 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
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
Re: about php 5.4.20version [message #183237 is a reply to message #183234] Sun, 13 October 2013 17:53 Go to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
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(at)gmail(dot)com
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: counting the plays
Next Topic: curiosity mainly users online script
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Oct 22 15:23:58 EDT 2017

Total time taken to generate the page: 0.00657 seconds