saiprem 4 Posting Whiz in Training

Hi guys, I have created a php file, which will takes a filename as input parameter,

It will just check the extension of that filename and displays the file to the browser using phpscript.

for this I used

header('Content-Disposition: inline; filename='.$filename);

Everything working fine for me, but I need those files to be displayed on the center of the page.

So I used Iframe to call that phpsource, check below how I am showing it in a html page.

<center>

<iframe src="http://creativeblows.com/test/parse_files.php?file_name=universe.swf"  width="99%" height="400" scrolling="auto"></iframe> (This file is displaying on the center to the page)

<iframe src="http://creativeblows.com/test/parse_files.php?file_name=coming-soon.jpg"  width="99%" height="400" scrolling="auto"></iframe>(This file is not coming in the center to the page)

</center>

If you have any suggestions to get the image to center.

And also I am trying to display spread sheet in the page(I don't need it as for save As, I need to be displayed on the browser), If you find any solutions for it, please help me....

For more details check the following url

http://creativeblows.com/test/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.