Making a page read-only

Reply

Join Date: Aug 2007
Posts: 4
Reputation: zonkd is an unknown quantity at this point 
Solved Threads: 0
zonkd zonkd is offline Offline
Newbie Poster

Making a page read-only

 
0
  #1
Aug 19th, 2007
Is there a simple php way to make a webpage read-only, please?
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 223
Reputation: Anonymusius is on a distinguished road 
Solved Threads: 10
Anonymusius's Avatar
Anonymusius Anonymusius is offline Offline
Posting Whiz in Training

Re: Making a page read-only

 
0
  #2
Aug 19th, 2007
This question makes no sense. Pages are read-only. You are probably not formulating this correctly. Post again and explain what you want PHP to do. We'll help you on your way to do it.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 4
Reputation: zonkd is an unknown quantity at this point 
Solved Threads: 0
zonkd zonkd is offline Offline
Newbie Poster

Re: Making a page read-only

 
0
  #3
Aug 19th, 2007
Originally Posted by Anonymusius View Post
This question makes no sense.
Really glad the slogan is about the friendliest forum.
I need to make a webpage read-only. It is a php webpage, and I'd like to code it to be read-only. Cheers
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 142
Reputation: MitkOK is an unknown quantity at this point 
Solved Threads: 12
MitkOK's Avatar
MitkOK MitkOK is offline Offline
Junior Poster

Re: Making a page read-only

 
0
  #4
Aug 19th, 2007
chmod ?
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 4
Reputation: zonkd is an unknown quantity at this point 
Solved Threads: 0
zonkd zonkd is offline Offline
Newbie Poster

Re: Making a page read-only

 
0
  #5
Aug 19th, 2007
Thanks v much, MitkOK, but where and how does that go in the page, please? I've looked at it on the php site, but don't follow how it is supposed to go.
I mean, say the page is 'content/display.php', do you have to state chmod is for that particular page, or is the meaning just assumed for whatever page it is used on, please?
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Making a page read-only

 
0
  #6
Aug 19th, 2007
What do you mean by read only? You don't want people to copy the text? Or save the page?
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 4
Reputation: zonkd is an unknown quantity at this point 
Solved Threads: 0
zonkd zonkd is offline Offline
Newbie Poster

Re: Making a page read-only

 
0
  #7
Aug 19th, 2007
Stymie
The tutorial I am trying to follow through says to make the page read-only. I had assumed it was so that it couldn't be hacked - that any changes made couldn't be saved.
I can't really think of any other reason for doing it.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 142
Reputation: MitkOK is an unknown quantity at this point 
Solved Threads: 12
MitkOK's Avatar
MitkOK MitkOK is offline Offline
Junior Poster

Re: Making a page read-only

 
0
  #8
Aug 19th, 2007
Hi.

If you're uploading files with ftp client, there must be an option to change permissions.

More info about chmod -> link


- Mitko Kostov
Last edited by MitkOK; Aug 19th, 2007 at 2:28 pm.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 494
Reputation: Puckdropper is an unknown quantity at this point 
Solved Threads: 21
Puckdropper Puckdropper is offline Offline
Posting Pro in Training

Re: Making a page read-only

 
0
  #9
Aug 20th, 2007
"Read only" is a file access issue, not a PHP issue. If your web server is set up correctly, only authorized users should be able to change your page anyway, so read-only will only keep you from doing so.

Most service providers have a way to set permissions on files. A common issue with Perl scripts, for example, is improper permissions, so service providers have to let you change them. (PHP usually doesn't have this problem.)
www.uncreativelabs.net

Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC