开发者

how to disable save as option of browser

how we can disable save as option o开发者_Go百科f browser by php?


Impossible. The user already has your page. It was transferred to their computer before it could be displayed on their screen. At this point no code you write can stop them from keeping what they already have.


You can not do that.


PHP is processed server-side. Your browser is client-side. Thus, you can not achieve this.


its not possible becaouse browser is on client side.


PHP stands for PHP: Hypertext Pre-processer. It can only process your PHP script. Thus, when you run your script, it just generates HTML output(in most cases), and sends that to the users browser. When you have already done the handling on the server side, and it has been sent to the browser, PHP can't change it. This means that this is not possible via PHP. You might be able to disable Control+S via Javascript, though.


It's possible to disable the "save" with PHP if you access the COM elements of the browser and control them before outputting. Google "accessing COM objects with PHP"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜