What is the difference when coding PHP on windows and linux

I worked / worked in basic Java, PHP and had a strong intention to learn Python and AI related languages. But I always do coding (PHP, Java) on the Windows platform (I regret it myself ..). I always want to work in a Linux environment. But I wonder what the difference is. Someone will explain this to me, please. And please provide some good books for learning Linux. I checked google for this. But there are books in different versions (administration, Linux programming, etc.). Therefore, in order to simply do coding in PHP on the linux platform, what level of book should I read for linux.

Note. On Linux, I'm zero, and I'm also interested in Linux programming.

+4
source share
5 answers

My best recommendation is to create a mini-project for yourself and immerse yourself. It will not be easy, but work experience will help you learn. Perhaps take one of the existing PHP or Java applications and try to get it working on Linux. As a starting point, you'll need LAMP for PHP and Tomcat for your java applications if they are web-based. First you can start with a very convenient operating system such as Ubuntu. Then go to RHEL (CentOS free).

The biggest differences I've found are communities and value. The difference in costs is a general discussion between people in business regarding the achievement of business needs using open sources or their own solutions. When I mention communities, in my experience, I have always found that open source projects tend to have more reliable communities that, in my opinion, are "real." Some of their own communities feel that they are driven by $$$ and marketing. However, this is only my opinion.

On the other hand, starting with expanding my knowledge of Linux in my resume, I had a lot more work opportunities.

+4
source

I see two questions from your text:

1) Is PHP programming on Linux different from programming on PHP on Windows?

Answer: No, it is not. There may be other tools you work with, but even on Windows you have many options (from a simple Notepad to an IDE). There are many tools available on both platforms (such as IDEs such as NetBeans or Eclipse), which makes it easy to upgrade to Linux. If you want to run Script on your local computer, you can install the basic LAMP configuration (Linux Apache MySQL PHP) on your system, comparable, for example. XAMPP on Windows. Or you can install only php-cli (command line interface) without a full web server if you want to run only some scripts on the command line.

2) Is Linux difficult to use?

Answer: No, this is not so :-) The best way to find out is to get, for example, a distribution of Ubuntu that is very convenient for Linux and try it yourself. You can run the System as a Live CD without installing anything if you want to test something. After a bit of working with Linux, you quickly got used to it, and even application development should not be so difficult.

I can not recommend any books. Maybe someone else can.

+3
source

To learn Linux, you must study shell scripts. Without linux command line nothing. I think this is the average reason programmers choose linux for their coding. I recommend you take a look at this one . Hope this helps you.

0
source

I started programming on Linux just two weeks ago, before that I had always programmed on Windows.

It makes no difference, except when you use any particular IDE, I use PHP Storm, and it was available on Linux, so it's almost the same.

You will also need to get used to some shell commands in order to get used to it, but without a start you won’t know anything. just install ubuntu along with the windows and you will start talking soon. Now I almost do not open the windows :)

0
source

To answer the last part of your question:

So, to just do PHP coding on the Linux platform, what level of book should I read?

You can read any PHP starting book. If you write your code on Windows or Linux, the end result will be the same as the .php file. When you load the page into your browser, the PHP file is interpreted and compiled by the PHP server. The file that it creates is then displayed by your browser. So, whether you use firefox for windows or Linux, it really doesn't matter. Hope this clarifies some of your confusions.

If you are a beginner, I would suggest that you experiment a little on a server that is already configured for you, since setting up and installing Linux on Linux can be confusing. Try some simple scripts, etc. Etc., And take a book about the beginning of Linux.

0
source

All Articles