Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide media file path

Status
Not open for further replies.

danny12

Programmer
Aug 28, 2001
4
US
hi, could anyone show me how to hide the media path in the <embed> tag:
example: <embed src=&quot;../movie.mov&quot;>
but I don't want the path &quot;../movie.mov&quot; to display in the web browser, just like this site: any help would be appreciate

thanks
 
You will need a server-side processor of some sort to throw a HEADER command to the browser.

The above example uses a cgi perl script (by the look of it).
I know how to do a header command in php, do you use php at all? If you do, its easy to write a script that will direct the browser at a certain file without revealing location. Dean Owen
 
Dean,
Thanks for checking it out. I'm using ASP with my page. Could you give me the header command in php, i'll see if I can convert that to asp

thanks
 
np.
As you prob know, if you are going to use a HEADER command, then you cannot have anything sent to the browser before you use it. This includes spaces!

The raw command is -
<?
header (&quot;Location:?>

Obviosly, you will want some processing setup to make it goto the right file. Dean Owen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top