943,788 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1798
  • PHP RSS
Aug 19th, 2007
0

Making a page read-only

Expand Post »
Is there a simple php way to make a webpage read-only, please?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zonkd is offline Offline
4 posts
since Aug 2007
Aug 19th, 2007
0

Re: Making a page read-only

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.
Reputation Points: 129
Solved Threads: 11
Posting Whiz in Training
Anonymusius is offline Offline
223 posts
since Aug 2006
Aug 19th, 2007
0

Re: Making a page read-only

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zonkd is offline Offline
4 posts
since Aug 2007
Aug 19th, 2007
0

Re: Making a page read-only

chmod ?
Reputation Points: 59
Solved Threads: 12
Junior Poster
MitkOK is offline Offline
142 posts
since Jul 2007
Aug 19th, 2007
0

Re: Making a page read-only

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zonkd is offline Offline
4 posts
since Aug 2007
Aug 19th, 2007
0

Re: Making a page read-only

What do you mean by read only? You don't want people to copy the text? Or save the page?
Moderator
Reputation Points: 161
Solved Threads: 38
He's No Good To Me Dead
stymiee is offline Offline
1,422 posts
since May 2006
Aug 19th, 2007
0

Re: Making a page read-only

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zonkd is offline Offline
4 posts
since Aug 2007
Aug 19th, 2007
0

Re: Making a page read-only

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.
Reputation Points: 59
Solved Threads: 12
Junior Poster
MitkOK is offline Offline
142 posts
since Jul 2007
Aug 20th, 2007
0

Re: Making a page read-only

"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.)
Reputation Points: 23
Solved Threads: 23
Posting Pro in Training
Puckdropper is offline Offline
494 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Creating Local php.ini
Next Thread in PHP Forum Timeline: login page problem again





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC