Php Code Problem

Click on this link and see what kind of problem I have with my php script. I am honestly surprised because my script works perfectly on other servers. Here is the link http://chatsrbija.000webhostapp.com/enter.php?ver=xhtml&id=1717&ps=DataStreamer512bit&ref=609192

Hi @Jovica

I checked your scripts. Many scripts have opening tag <?php. But some has <? which is not supported by php.ini (in header.php of your site)

Change all <? to <?php

Thank you for your response. I solved the problem.
However, there is now a new problem. My galery.php does not display uploaded images.
On the script itself there is another similar file albums.php that works without problems.
That’s strange for me. Here are links to both files

https://chatsrbija.000webhostapp.com/albums.php?ver=xhtml&id=1717&ps=DataStreamer512bit&ref=465607 Abums and

https://chatsrbija.000webhostapp.com/galery.php?mod=male&ver=xhtml&id=1717&ps=DataStreamer512bit&ref=472022 Galery

Did it work before? :slight_smile:

Yes, it worked before. I hosted the script on some other servers, and it was not like this.

Try changing your PHP version to 5.6, from cPanel>Settings>General.

Already set to php version 5.6
I think the problem is in this code
echo “”. $ i. ".

<a href=“galery.php?mod=viewuser&who=$item[1]&$ses&ref=$ref”> <img src = \ "thumbnail.php? thumb = $ item [2] \ "alt = " $ item [1] \ "/>
";
I made the code change in this way: echo "$ lnk <img src = " $ filenamess \ ">


"; and the photo is now visible, but the thumbnail.php (which is responsible for the watermark in the photo) does not work on this principle.