Rare Error

Gestart doorDaan9 reacties42 weergaven

10 berichten · pagina 1 van 1

Daan

Lid · Topicstarter

Berichten
692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik krijg deze error:
Spoiler tonen
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
Op deze pagina:
Spoiler tonen
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Bedankt voor uw bestelling! <br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Uw wordt door gestuurd naar de betaalpagina!"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<META HTTP-EQUIV=Refresh CONTENT="2; URL=betaal.php">[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]]=[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]];[/COLOR]
?>
Wat kan ik hier aan doen?

Alvast bedankt,
Daan
0
Berichten
81
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
je php versie is te laag denk ik
0
Berichten
6.485
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Update je php versie (neem aan dat dit je localhost is?)
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Voer phpinfo(); uit in een nieuw document en kijk of de php versie up-to-date is..
0
Daan

Lid · Topicstarter

Berichten
692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik host hem gewoon bij o2x, moet ik hem dan updaten? Nee toch?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Wat staat er in je config? En heb je session_start(); toegevoegd?
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Bedankt voor uw bestelling! <br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Uw wordt door gestuurd naar de betaalpagina!"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<META HTTP-EQUIV=Refresh CONTENT="2; URL=betaal.php">[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]]=[/COLOR][COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700];[/COLOR]
?>


Werkt dit?
0
Daan

Lid · Topicstarter

Berichten
692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Luukvdo schreef:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Bedankt voor uw bestelling! <br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Uw wordt door gestuurd naar de betaalpagina!"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<META HTTP-EQUIV=Refresh CONTENT="2; URL=betaal.php">[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]]=[/COLOR][COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700];[/COLOR]
?>
Werkt dit?

Ja! Dit werkt, bedankt!
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Graag gedaan. De fout was dus dat je een sessie niet rechtstreeks mag setten met een andere global, wat hier dus de $_POST is
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Heb ik ook eens wat bijgeleerd. Best dom, het heeft zelfde effect.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren