Forum Moderators: coopster
Here is what I want to use PHP for; I want to use a PHP script to call up the index.html but not show the HTML code...just the text.
Do I need to just write the entire page with PHP?
I tried using an "include" statement with te HTMl files in the includes folder, however, the HTMl code is still visible when viewing the source.
I am guessing I may need to use a template script.
Shawn
Do you mean the PHP code? The post you left is a little confusing...
I was afraid of that! I guess what I am trying to accomplish is what you see when you view the source of the page ...you do not see any of the mark up language just plain text.
Similar to what you would see if you use PHP to dispay time and date on a page - if you view the source the time and date is plain text - you do not see the PHP code used to generate it.
This may not be possible but I figured this would be the place to find out!
Shawn
Could you not put that in your terms for supplying a demo site.. After all, its *your* website, so if the client tries to copy the site then wouldn't that be breach of copyright?
And if they want to copy a site design to save money, why would you want such a client?
And if they want to copy a site design to save money, why would you want such a client?
It's not the clients I am worried about - it's the other local guy(s).
I would rather avoid any issues that may arise out of copyrighted work - my attorney makes enough money now :)
So I am still confused. Are you saying that when you view the source, you see:
<?echo "Echo this string";
?>
If that is all they see with view source that would work. I guess they could still download the images etc.... I may just go back to watermarks. I was maybe thinking there would be a way not to use watermarks.
Maybe going back to watermarks and ending this thread is a good idea - that way I do not have a handful of people scratching their heads saying "What the? is this guy talking about?" :)
If you want to stop your clients competitors viewing in development pages:
- put the new pages in a subdomain or subdirectory and protect with .htaccess usernames and passwords.
If you want to stop your own client stealing your designs at initial stages
- watermarked images - though the design can still be reverse engineered.
If you want to stop competitors stealing your designs from live sites.
- sorry - no way to do this.
If information is highly sensitive and you don't want anyone to be able to save the contents
- write a flash application that will only run on a given server.
- caveat: screenshots are always available.
HTH
Hey Shawn,
I understand what you were trying to conceptualize (i think) Kinda what happens when a spider tries to index a framed site. Kinda the same as when php is run, you are trying to find a way to run the html some where else and only show the results on the screen. I think this is what you are getting at kinda. I would have no idea how to do something like that. I would think it could be done. Maybe an applet or something. Thats all i got for ya. Sorry i couldn't be of more help.
Thats exactly what I wanted to do - I will just go back to watermarks for now.
If your web page has both HTML and PHP code, then the PHP gets parsed on the server side, and the HTML part will be downloaded to the client side (browser).
Without that, your visitor cannot see the page.
However, if you're worried about someone stealing your web page code, like JavaScript etc, though I don't think it's worth worrying about (because almost anything that you see on the web can be stolen - those who know how to do it probably won't need to steal your code - they'll know how to do it themselves :-)
So, if it's on the web, it can be stolen.
However, if you want to prevent more than 90% of the general population from stealing HTML or Javascript code, or even image locations (URL's) from your web site, then you could use something like the <snip>
Regards,
Ravi
[edited by: jatar_k at 5:23 pm (utc) on Mar. 20, 2003]
[edit reason] no sigs, personal urls TOS [webmasterworld.com] [/edit]