List Info

Thread: how can i hide the path of file so user can not download it directly




how can i hide the path of file so user can not download it directly
user name
2006-06-29 05:29:34
Hello friends,
I am working on a upload and share script and there i am
facing a
problem.
Problem is that when i show a file on the view page then any
one can ge
the exact  path of that file through the view source of the
html page.
and he can download that file in easy way by just type that
path on
browser.


code is like this

<OBJECT id='rvocx'
classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'
        width="100" height="50">
                            <param name='src'
value="<? echo
$row_show['path']; ?>">
                            <param name='autostart'
value="true">
                            <param name='controls'
value='imagewindow'>
                            <param name='console'
value='<? echo
$row_show['type']; ?>'>
                            <param name='loop'
value="false">
                            <EMBED src="<? echo
$row_show['path']; ?>"
width="100" height="50"
        loop="false"
type='audio/x-pn-realaudio-plugin'
controls='imagewindow' console='<? echo
$row_show['type']; ?>'
autostart="true">
                            </EMBED> </OBJECT>


and when it execute then at the place of path it write exact
path and
if i dont write then that file should not view :(

can any one help me how can i prevent it.
Thanx in advance


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )