Click to See Complete Forum and Search --> : PHP No Right Click...


spykemitchell
09-17-2003, 11:16 AM
I have a php script i wish to run in a I-Frame. I have source code in the script i would rather was not viewed. I know that there are still other ways of viewing the source but still.

I want to disable the right click function within the script.

As it is run as a page and not inserted into a document i am not sure how to do this....

Can anyone tell me how i can do this?????

Spyke.

Khalid Ali
09-17-2003, 11:26 AM
That is extremely annoying to me as well as un-professional

AdamGundry
09-17-2003, 11:33 AM
PHP runs on the server, so if it is set up correctly then users cannot view the PHP code. Anyway, read this: http://www.webdevfaqs.com/general.php#protectsource

Adam

spykemitchell
09-17-2003, 12:39 PM
So you can't actually view the source of a php script through an IE browser?

AdamGundry
09-17-2003, 01:16 PM
No, as long as the code executes, it will not show up, because it runs on the server. The only code is visible is whatever you output to the browser outside of PHP tags or using echo() etc.

Adam

spykemitchell
09-17-2003, 02:27 PM
Thankyou for clearing that up for me.

I have managed to get my script to work so your help was much appreciated.

Spyke.