Go Back   Cloud Computing > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-11, 02:29
BOD Member
 
Join Date: Aug 2011
Posts: 76
Default file permissions in php

I'm writing a content management system and need to be able to create .php files, with a php script. But when I try to open a file for writing/create a file, it says I don't have permission to do it. I'm not super sure how to change the permissions, but more importantly I wonder whether doing so would make me vulnerable to people hacking the site.

Basically, there is a password protected directory that acts as an area where the site owners can log in and work with the CMS. (Very few people have access to this directory.) I need my php code in this area to be able to create a file, which would be a php webpage, in the directory containing the website pages visitors see. Is there a safe way to do this with a php script, which wouldn't force me to allow anyone in the world to write to files on my site?

I really appreciate any help on this - I'm stuck!
Reply With Quote
  #2 (permalink)  
Old 09-07-11, 10:34
paullopez's Avatar
Administrator
 
Join Date: Nov 2010
Posts: 195
Default

You will have to consider following URL. I guess your problem might be similar to below thread.

__________________
"I'm not anti-social; I'm just not user friendly"
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.