Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what difference it makes when coding PHP on windows and linux [closed]

Tags:

linux

php

I worked/working in core Java, PHP and have strong intention to learn Python and A.I. related languages. But always I do coding (PHP, Java) on windows platform (I feel pity about it myself..) . Always I wanna work in Linux environment. But I wonder what difference it makes. Someone explain me that please. And please provide some good books for linux learning. I checked google for it. But there comes books in different varieties of it (Administration, Linux programming etc.,). So to just do coding in PHP on linux platform what level of book I should read for linux.

Note: I am zero in Linux knowledge and I am interested in Linux programming too.

like image 965
poddroid Avatar asked Feb 24 '23 17:02

poddroid


2 Answers

My best recommendation is to create a mini project for yourself and dive in. It won't be easy by any means, but the hands on experience will help you learn. Maybe, take one of your existing PHP or Java applications and attempt to get it working in Linux. As a starting point, you'll need LAMP for PHP, and Tomcat for your java applications if they're web based. You might want to start first with a very user friendly OS such as Ubuntu. Then move on to RHEL (CentOS is free).

The biggest differences that I've found are the communities and the cost. The cost difference is a common debate between people in businesses concerning achieving business needs with open source or proprietary solutions. When I mention the communities, in my experience, I've always found that open source projects tend to have more robust communities that feel, in my words, "real". Some of the proprietary communities feel like their driven by $$$ and marketing. However, that is just my opinion.

On a side note, since expanding Linux knowledge on my resume, I have had a lot more job opportunities.

like image 67
regex Avatar answered Feb 26 '23 06:02

regex


I can see two questions from your text:

1) Does PHP programming on Linux differ from PHP programming on Windows?

Answer: No, it does not. There may be other tools that you work with, but even on Windows you have plenty of choices (from a simple Notepad to an IDE). Lots of tools (e.g. IDEs like NetBeans or Eclipse) are available on both platforms, which makes the switch to Linux even easier. If you want to run the Script on your local machine, you could install a basic LAMP (Linux Apache MySQL PHP) configuration on your system, comparable to e.g. XAMPP on Windows. Or you could install just the php-cli (command line interface), without the complete webserver, if you want to run only some scripts in command line.

2) Is Linux difficult to use?

Answer: No, it is not :-) The best way to find it out is to get e.g. the very user-friendly Linux Distribution Ubuntu and try it on your own. You can run the System as a Live CD without installing anything, if you want to test things. After working a bit with Linux, you get quickly used to it and even developing applications shouldn't be that hard.

I can't recommend any books, though. Maybe someone else can.

like image 25
Martin Matysiak Avatar answered Feb 26 '23 08:02

Martin Matysiak