random image script problems
Posted by: ergate
Posted on: 2007-11-30 10:06:00
Hi,
I just switched to Dreamhost from another service. I am having luck with most of my scripts and web apps, but one little script is giving me some problems.
It is a random image script, rid.php, you call the script with the image tag, the script then randomly selects an image from its location directory and displays it. This was working perfectly at the previous host, but I cannot get it to work here. When it is placed inside a page and called it does not display, see my test page set up here, (as you can see the image is not loading)
http://paintbox.org/includes/random.php
But if the script is called directly it does work
http://paintbox.org/includes/main_images/rid.php?pic=random1
You can see the script is here
http://paintbox.org/includes/script.html
and here is the site and working example from the developer
http://www.bezveze.com/skripte/rid/
I am thinking that there may be some differences in the way php is set up or handled. I am wondering if there is something in php5 that may be hindering this.
Any advice is welcome.
Thanks
Edited by ergate on 11/30/07 10:26 AM (server time).