I am using Zend Studio for Eclipse and I am trying to save a file but it failed!
I am new to PHP development and I just used Zend yesterday. One of the problems I ran into was saving the file in a read-only directory.
I am using Zend studio for PHP scripting development. I have XAMPP installed in my Ubuntu directory at / opt / lampp /.
The / opt / lampp / htdocs directory now requires privilege access. I can't save anything there. This demands everything from me. I know this is for security reasons.
Now I can just sudo gedit index.php inside the opt / lampp / htdocs / project directory and save the file there. But I want to use my Zend Studio for scripting development.
When I opened the file inside /opt/lampp/htdocs/project/index.php inside Zend. I cannot save him there. Save cannot be performed because the parent resource is marked read-only
Now I don't want to change the read / write directory, I just want to use Zend Studio and allow zend to save files inside the directory. Please guide me!
a source to share
Well, if you don't run Zend itself under sudo, I'm not sure if you can do that.
You are asking how to write to a write protected directory. Answer: "Don't try."
You will either have to unprotect it or figure out how Zend will make a copy of the file in the unprotected area for editing and then copy it (under sudo) when you close it.
I know which option I would take (I'm essentially lazy).
a source to share