php 4 vs php5 app will not run under php5

I used the installer to install the app on my host but in any case it would not run under php5 but would work fine under php4. Under php5 all I would get is a blank page. Is there a way to get it to run under php5? I think my host server is either linux or unix by the way the directory structure is.
I tried going through and changing <? to <?php but all I managed to do is corrupt the program. I really know very little about PHP, as I am just starting learn.
Thanks James

patrik's picture

Hi, the problem is not PHP5

Hi, the problem is not PHP5 but the short_open_tag option in php.ini. Your PHP5 setup has this option = off, this should be ON if you will run phpAlbum.
Next version of phpAlbum will fix this problem.

Patrik

mareike's picture

I have the same problem with

I have the same problem with php version 5. but my php5 is already set to short_open_tag = on. Still the following error message appears - even though i already set the desired writing rights to the datafolder.

I really appreciate your support!

Warning: fopen(data_417888f4/writablity_test) [function.fopen]: failed to open stream: Permission denied in /www/htdocs/w0097afa/mareike/main.php on line 2308

Warning: fclose(): supplied argument is not a valid stream resource in /www/htdocs/w0097afa/mareike/main.php on line 2309
Welcome to phpAlbum 0.4.1.14
Your data directory data_417888f4/ is not writable
Please change the rights on this directory so php can write in it. (UNIX: CHMOD 777, WINDOWS: setup rights)
Powered by PHP Photo Album

Adress is http://mareike.justchill.eu

Thank you - Mareike

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.