Register and join over 40,000 other developers!
Recent Topics
-
Tekken 7
IsrealJones - Mar 22 2021 07:21 AM
-
The Game You Are Waiting For?
WendellHarper - Dec 06 2020 01:21 PM
-
Quora and Reddit Backlinks
WendellHarper - Dec 06 2020 01:14 PM
-
Delete account
pindo - Jul 23 2020 01:33 AM
-
New to the community
iwinx - Jul 17 2020 12:02 PM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

2 replies to this topic
#1
Posted 02 April 2009 - 03:11 AM
I've written a php appication and linked it inside a Joomla1.5 site.
My application needs to write some variables into the session, but at the bottom of the page I get this message
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
Those settings are written inside php.ini file, but I have no access to it.
Is there any other way to hide that message?
I'm a php newbie, so I could say a wrong thing, but I was thinking to something like this: is there a way to say to the page "if you receive a text with this words don't write it, throw it away"?
If it is not possible, how could I solve my problem?
My application needs to write some variables into the session, but at the bottom of the page I get this message
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
Those settings are written inside php.ini file, but I have no access to it.
Is there any other way to hide that message?
I'm a php newbie, so I could say a wrong thing, but I was thinking to something like this: is there a way to say to the page "if you receive a text with this words don't write it, throw it away"?
If it is not possible, how could I solve my problem?
#2
Posted 02 April 2009 - 03:59 AM
Solved using error_reporting(0);
#3
Posted 02 April 2009 - 04:30 AM
You need to take action for what generated this warning instead of just turning the error message off. Exactly what is not good with your code is impossible to say with no further information.
I'm a System developer at XLENT Consultant Group mainly working with SugarCRM.
Please DO NOT send mail or PM to me with programming questions, post them in the appropriate forum instead, where I and others can answer you.
Also tagged with one or more of these keywords: session
General Forums →
Mobile Development →
html5 web storage session loginStarted by mutago, 11 May 2014 ![]() |
|
![]() |
||
Language Forums →
PHP →
PHP Session VS. Session issetStarted by Serialcek, 31 Jan 2014 ![]() |
|
![]() |
||
General Forums →
General Programming →
Preventing Session Hijacking?Started by Pally, 20 Dec 2013 ![]() |
|
![]() |
||
Language Forums →
HTML, CSS and Javascript →
Passing PHP session variables to a Jquery/Ajax script.Started by elliottveares, 15 Oct 2013 ![]() |
|
![]() |
||
![]() PHP session set but not being detectedStarted by JakeWelton, 06 Oct 2013 ![]() |
|
![]() |
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download