Menu

php 4.03pl1 and PHPix

Help
Jon
2000-10-22
2000-10-27
  • Jon

    Jon - 2000-10-22

    Anyone able to get their albums to display using php 4.03pl1?  for some reason the url isn't inserted in front of the dir structure so all the pictures come up blank.  I roll back to 4.02 and everything is fine.

     
    • Robert A. Holak

      Robert A. Holak - 2000-10-23

      I just upgraded to 4.03pl1 and have no problems with the paths.  What version of PHPix are you using?

       
      • Jon

        Jon - 2000-10-23

        version 1.02 .  I've tried it on two separate systems and the same thing happens.  the program runs fine but the photos are missing (the dreaded red x).  If I look at the properties the www.unclescrotor.com part of the path is missing (i.e. http://phpix/albums/foo.jpg

        I'll break it again and you can check it out at http://viddywell.unclescrotor.com

         
        • Jon

          Jon - 2000-10-23

          well I fixed (hacked?) it...  on lines 107, 189, 204 and 247 of index.phtml I removed the leading "/" from the front of the $pix_base variable and all seems to be well.  funny thing is this hack is backwards compatible...  it works in 4.02 also...

          weird...

           
          • Robert A. Holak

            Robert A. Holak - 2000-10-27

            I figured out what the problem was.  Before PHP4.0.3pl1, it seems as if the base is null if you are running PHPix as your root (pics.host.com goes right to the album) as opposed to host.com/pics. In 4.0.3pl1, the base is now defined as "/" so in case 1 you get "//albums/album/pic.jpg" instead of "/albums/album/pic.jpg". Case 2 works fine in any version of PHP because you the base is "/pics" so "/pics/albums/album/pic.jpg" is correct.  BTW, "//album/xxx" seems to tell netscape to put "http:" in front of the "//".  SO it is actually netscape that is causing the problem :-)
            I will work on a fix for this now that I know what is actually causing the problem.

             

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.