Trying to save some PHP files I sent myself ; able to download from mail and bring them up in an editor, but cant save them (just text files); thought I was root; delusions of greatness !
You leave quite a few things to guess for us. So let’s assume that
-
You are using openSUSE as your OS
-
You are importing some PHP files as an ordinary user (which you should do)
-
You are working from the command line
then save them somewhere in your user directory under /home/username/whatsoever/ and, as a second step, copy these files to the desired location as user root:
su -c 'cp file.php /srv/www/htdocs/'
I hope this is what you want to do. Otherwise explain your situation in some more detail.