views:

37

answers:

2

Hello,

I have a script generating 3 diagrams from $_SESSION variables which work fine under php4 with register_globals = off, but when I parse the same script as php5 I get no diagram.

The diagrams a drawn from GD libary and it works, if I set the data into an Array (manually filled) within the script file. But I need a way to get it work on php5, without much changes.

Are there any SESSION settings or php-settings which might interfere with my script. I already checked a lot of the php-settings (changing php.ini over and over again), but found nothing what brings me the diagrams back.

Hopefully someone of you could kick me into the right direction. Any Ideas?
Thanks a lot.

A: 

I think you should first look at the array created with version 4 and version 5 and compare both. And you sould make a logical data structure, so you can access it without compatiblity problems

streetparade
Already compared the arrays, completely the same.
ste_php
If they are the same, i think your gd lib has some problem but im not sure
streetparade
A: 

See this please. It will help you to modify your code accordingly.

Differences between PHP4 and PHP5

http://stackoverflow.com/questions/475594/difference-between-php-4-and-php-5

Sarfraz