file saving problem...

This is a discussion on file saving problem... within the PHP Language forums, part of the PHP Programming Forums category; Hi everyone, I am using Fedora Core, version 6 as my development platform. My problem is if i have to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-26-2007
thushianthan15@gmail.com
 
Posts: n/a
Default file saving problem...


Hi everyone,

I am using Fedora Core, version 6 as my development platform. My
problem is if i have to save my PHP files in /var/www/html/, i need to
log in as a root. As a normal user, the OS is not allowing me to save
the files in /var/www/html directory. Due to some restrictions, i
cannot always log in as a root. So is there is any other way i.e.
whether we can store the PHP files in some other directory etc...

Any suggestions ? Thank you in advance :)


Thushanthan.
Reply With Quote
  #2 (permalink)  
Old 12-26-2007
My Pet Programmer
 
Posts: n/a
Default Re: file saving problem...

thushianthan15@gmail.com said:
> Hi everyone,
>
> I am using Fedora Core, version 6 as my development platform. My
> problem is if i have to save my PHP files in /var/www/html/, i need to
> log in as a root. As a normal user, the OS is not allowing me to save
> the files in /var/www/html directory. Due to some restrictions, i
> cannot always log in as a root. So is there is any other way i.e.
> whether we can store the PHP files in some other directory etc...
>
> Any suggestions ? Thank you in advance :)
>
>
> Thushanthan.


The files you need to save could be stored in a sub-directory, and then
you could set the permissions (CHMOD) the directory to allow write
access from the php page. I would not recommend setting that permission
level on your docroot (the html/ dir).

~A!
Reply With Quote
  #3 (permalink)  
Old 12-28-2007
Jerry Stuckle
 
Posts: n/a
Default Re: file saving problem...

thushianthan15@gmail.com wrote:
> Hi everyone,
>
> I am using Fedora Core, version 6 as my development platform. My
> problem is if i have to save my PHP files in /var/www/html/, i need to
> log in as a root. As a normal user, the OS is not allowing me to save
> the files in /var/www/html directory. Due to some restrictions, i
> cannot always log in as a root. So is there is any other way i.e.
> whether we can store the PHP files in some other directory etc...
>
> Any suggestions ? Thank you in advance :)
>
>
> Thushanthan.
>


Learn about Linux administration then set the appropriate owner/group
and permissions for the directory.

P.S. This has nothing to do with PHP.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:31 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0