PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
sorry if im totally off base, but this is my first time trying something like this and it seems like it should work..
Had to mention it, that yes, this works, so you are very right. I was blindly refering to the way I'm used to it. Worth looking more into and commenting if I missed something.
include(adfile.php)
// get random file from databse
// determine what kind of file it is (either html, gif, jpeg or swf)
header(Content Tye: $type) based on type conditions
and echo $file