There is no way to do this in PHP. None. None at all. It simply cannot be done. Right-clicking is handled by the browser client only, along with things like the back button, etc. If you could have a server-side scripting language make changes in how the browser works, you'd be in some serious trouble. It would be a very serious security violation (which means MicroSoft will probably allow it at some point -- heh).
Having said that, there are ways to disable the context menu using JavaScript and DHTML; however, it will only work in certain browsers (notably IE and higher versions of NS). Check out http://www.dynamicdrive.com for some ideas. On Thu, 2002-02-14 at 13:23, William Fong wrote: > I could wget these files and stick them in MySQL to organize ( had to make > this a legit post in php/db )... vi them and dd out the javascript lines. > > There is no point in protecting html... > > > > > -- > William Fong - [EMAIL PROTECTED] > Phone: 626.968.6424 x210 | Fax: 626.968.6877 > Wireless #: 805.490.7732 | Wireless E-mail: [EMAIL PROTECTED] > > > > > ----- Original Message ----- > From: "jas" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, February 13, 2002 10:17 PM > Subject: [PHP-DB] Disable Right click w/ php? > > > : I have been looking on php.net for a function to disallow people to right > : click to view source... anyone have a good idea of how to accomplish this > : without using java-script? > : Thanks in advance, > : Jas > : > : > : > : -- > : PHP Database Mailing List (http://www.php.net/) > : To unsubscribe, visit: http://www.php.net/unsub.php > : > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Sliante, Richard S. Crawford mailto:[EMAIL PROTECTED] http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Yahoo!: rscrawford MSN: [EMAIL PROTECTED] "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupery "Push the button, Max!" -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php