loading image from php script

47 views
Skip to first unread message

Todd McB

unread,
Jul 14, 2010, 3:48:10 PM7/14/10
to fancybox
I was having troubles loading an image via php script. ex.
http://www.example.com/images.php?file=imagename&blah=blah

when the image would load you would see a "code" representation of the
image.
by adding php to this line
imgRegExp = /\.(jpg|gif|png|bmp|jpeg(.*)?$/i
so it would look like this
imgRegExp = /\.(jpg|gif|png|bmp|jpeg|php)(.*)?$/i

the images displayed correctly.
Reply all
Reply to author
Forward
0 new messages