Need help with - readfile.php
Posted: Sun Jan 16, 2011 2:42 am
Hi
I bought an Ad Network script and I do not believe that the readfile.php is coded right. The script will not show the videos or the images.
The publisher or advertiser will upload a video or a image and then the script should load the image and video on to that page for them to see how their ad will look.
The source code shows that it generates the address to the video and the image file properly, but the video and the image will not show up.
When I create a static html page from the source code of that dynamic page and strip out the " readfile.php?f= " from the output, then the files will show up. So, I suspect that the readfile.php is not calling the files properly.
Below is part of the source code snippet from the generated html page. ( I changed the name of my website to "my-website.com"
codebase='http://download.macromedia.com/pub/shoc ... on=6,0,0,0' width='"+F.layoutWidth.value+"' height='"+F.layoutHeight.value+"'> <param name=movie value='http://www.my-website.com/images/flvpla ... ite.com/[b]readfile.php?f= [/b]upload%2Fusers%2Fvideo_default_1026.flv&image=http://www.my-website.com/images/sample ... tart=false&'> <param name=quality value=high> <param name=bgcolor value=#ffffff> <embed name='vid1' src='http://www.my-website.com/images/flvpla ... ite.com/[b]readfile.php?f= [/b]upload%2Fusers%2Fvideo_default_1026.flv&image=http://www.my-website.com/images/sample ... tart=false&' quality=high bgcolor=#ffffff width='"+F.layoutWidth.value+"' height='"+F.layoutHeight.value+"' align='' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashpl ... d></object> ";
My question is this. If I were to make a new readfile.php to use with this script, what code snippet would I use?
Thanks for your help
I bought an Ad Network script and I do not believe that the readfile.php is coded right. The script will not show the videos or the images.
The publisher or advertiser will upload a video or a image and then the script should load the image and video on to that page for them to see how their ad will look.
The source code shows that it generates the address to the video and the image file properly, but the video and the image will not show up.
When I create a static html page from the source code of that dynamic page and strip out the " readfile.php?f= " from the output, then the files will show up. So, I suspect that the readfile.php is not calling the files properly.
Below is part of the source code snippet from the generated html page. ( I changed the name of my website to "my-website.com"
codebase='http://download.macromedia.com/pub/shoc ... on=6,0,0,0' width='"+F.layoutWidth.value+"' height='"+F.layoutHeight.value+"'> <param name=movie value='http://www.my-website.com/images/flvpla ... ite.com/[b]readfile.php?f= [/b]upload%2Fusers%2Fvideo_default_1026.flv&image=http://www.my-website.com/images/sample ... tart=false&'> <param name=quality value=high> <param name=bgcolor value=#ffffff> <embed name='vid1' src='http://www.my-website.com/images/flvpla ... ite.com/[b]readfile.php?f= [/b]upload%2Fusers%2Fvideo_default_1026.flv&image=http://www.my-website.com/images/sample ... tart=false&' quality=high bgcolor=#ffffff width='"+F.layoutWidth.value+"' height='"+F.layoutHeight.value+"' align='' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashpl ... d></object> ";
My question is this. If I were to make a new readfile.php to use with this script, what code snippet would I use?
Thanks for your help