Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP error

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
I installed php 4.3.dev the other day and now i get this error:

Warning: 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

i tried setting session.bug_compact_warn to 0, but it still had no effect.

i am runing php 4.3.dev with apache 2.0.43

any suggestions would be greatly appreciated. thanks!
 
sorry if i sound like a perfect idiot in PHP. the books make it sound so easy but when i run their example tutorials, i keep getting all sorts of errors.


Sleipnir, after changing the "bad code" as you advised, i got another error.


Notice: Undefined variable: count in C:\Program Files\Apache Group\Apache2\htdocs\tutorials\session_count_working.php on line 16
 
Code:
    echo &quot;<P> you been here $count times. cheers</P>&quot;;
should be changed to
Code:
    echo &quot;<P> you been here &quot; . $_SESSION['count'] . &quot; times. cheers</P>&quot;;
//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top