How to save php files in xampp
When the Home page of the site opens, you should click on the latest version of the program for your operating system. At the time of this writing, PHP 7. Click on the one you need to download it. The most common practice is to install it on the C drive, though some users opt to install it on D or other non-system partitions.
Click on the Run button to start the installation. Follow the installation wizard to complete the installation. However, it is recommended to keep everything as is and install the full version. You can change it if you want to, but it is recommended not to. You can also cut and paste the file. Go to the folder you created in the previous step and create a new text file in it. If you go down the path of changing ownership of directories away from root , you are making your system less safe and may open yourself up to serious problems.
The best way to do what you're trying to do is to use a solution similar to what someone here already suggested: use the gksudo command. However, because it's tedious to constantly open a terminal to type the full command, create a shell.
Double click on it. A window will pop-up asking for your password. When you type it in the xampp htdocs folder will open along with root privileges. Additional note! Since you are using Xampp on Linux, it might be convienient for you to also repeat the above steps using these codes:. To open a text editor gedit is used here as root. This will allow you to save to the htdocs folder because opening gedit as root means you can save into the htdocs folder as root.
You will need to make the. I was having this problem myself, and then I realized I can do just one thing and everything will be flowers and roses every time from now on. Then I changed the owner and group to myself, and then I provided the read and write privileges to everyone.
However when I tried to do it for the files somehow it was returning back to - instead of Read and write however. This worked. And now I can modify the files stored in htdocs. Ubuntu Community Ask! Note, if you have database connection issues, you will need to locate the database connection file within your project and update the connection.
Your email address will not be published. Let us know your thoughts! Save my name, email, and website in this browser for the next time I comment. By Chris on August 7, All Rights Reserved. Sitemap Legal Disclaimers. Skip to main content. Put this as the contents of the php file:. Once you have the file saved in your htdocs folder, you will need to open the xampp control panel, it's located in the xampp directory and called xampp-control.
Once that is open, you will need to start "Apache service" and if you want "mysql service". I hope this has helped you and you have fun experimenting with php. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 7 years, 11 months ago. Active 7 years, 11 months ago. Viewed 1k times.
0コメント