Ok i have this working script now thanks to a member here: that works perfect.. now i need to use it as an include on my forums.. please give me the right code! thanks, -Andy EDIT: this is called random_image.php
you could also use require("random_image.php"); Require and Include do almost the same thing. If an error is detected on random_image.php while using require then the script will stop. However if it is detected while using include it will continue to execute the script. This makes require a tad bit safer depending on what you want to accomplish.
Ok dude ur right.. that code does work in a html page.. on my VB forums (in the right place.. i did check) not so much.
Post some code please so we can see where you're trying to post it, it may be that you need to write a plugin (if VB has them - haven't used it much myself) to allow you to integrate this in posts for example. Dan
if you need to insert HTML codes to call this page use AJAX to grab file and show it ( with Javascript and XML HTTP request ) or use iframe .
Different approach. New thread. http://forums.digitalpoint.com/showthread.php?p=8453194#post8453194 thanks guys.