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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
I just upgraded to 4.03pl1 and have no problems with the paths. What version of PHPix are you using?
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
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...
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.