Under Win and Linux to develop PHP differences, feelings, inner thoughts. Reviews

Source: Internet
Author: User
Tags apache php ftp client
I used to write PHP code under win, and then put it on Linux to run (development environment WAMPP, run environment LAMP/LNMP), but many times to see the recruitment information to recruit PHP programmers are talking about being able to develop PHP in Linux, and then I myself recently had to go to Linux (CentOS) to develop PHP.
Say a profound experience, feel, I hope you can evaluate it. by default7#zbphp.com

1) Linux Installation development environment is not convenient
Under win directly with integrated development package installation is very convenient AMPP environment all have. It is also convenient to open the extension directly and conveniently.
Under Linux must be manually compiled, install Apr apr-util pcre apache php libxml2 mysql ... and the installation of PHP, but also to configure PHP.ini my.cnf httpd.conf, and modified after it will not take effect, very strange phenomenon.
PHP.ini in/etc/php.ini, but there is another one in/usr/local/php5/lib/php.ini, and I open the Apache virtual directory vhosts, if you put the directory/home/username/ There is no access under WWW, but it can be accessed under/var/www/.

Then I installed Drupal, and found that again zlib extension, I went to recompile PHP. PHP-5.5.13 in the Ext directory has zlib folder, compile time--with-zlib, can not be installed up.
And I found that I have all the PHP files including directories have been deleted, restart httpd, incredibly still can open phpinfo.php, very strange.
MySQL configuration is not good configuration, I win7 under the Wamp, directly modify the My.ini can be moved to any directory, but in Linux there are also a lot of permissions. Anyway, it is really troublesome to configure the lamp environment under Linux, and the quickest one is to have a morning, because compiling and installing php,make test There are nearly 10,000 items, make install and very long.
Coupled with the configuration MySQL, Apache (open vhosts) will not necessarily be able to succeed, permissions issues, directory allocation problems.


2) worry about developing PHP under win
I have been tangled up is not to go to the Linux development PHP, the main factor is: first I have one or two times to interview PHP programmers, but see the other programmer is under Linux to develop PHP, and then I say I am not in Linux under the development of PHP, but under the win development, after listening to the other side immediately said I was a very basic PHP programmer , the second is the PHP 5.6.x version, they no longer release the following version of Win; third, I was watching Symfony recently, but found that they were composer installed, And the prompt operation of the official website is done under Linux. So my mind is not after PHP can not be developed under win, is not a foreign PHP programmers are in the development of PHP under Linux.


3) Disadvantages and problems of developing Web sites under Linux
I have also carefully thought about some problems, now this time, the site is very elegant UI experience, want to make a decent site if only PHP programmer is really impossible to complete, and art designers must work with the completion . If you develop PHP Web site under Linux, then the artist often pass the picture material come over, then how to get? Art is responsible for the design, now the domestic company to do the website art transfer things pictures are through the QQ, very convenient, fast. If you go to Linux under development, how will it be delivered? First from the VM Win7 QQ receive and then upload themselves from the WIN7 FTP client to the Linux Web site directory, and then switch to Linux to use the image resources?


4) Speaking of the end, I think the essential difference between PHP and other software programs Java C + +
I have been doing PHP for many years, always feel that PHP is always the other software programming language, such as Java C + + interference. It is arbitrary to think that PHP should be the same as C + + Java, but I always feel that they are fundamentally different,C + + Java seems to require teamwork, recruiting Java C + + can not be like recruiting PHP just one , And the art of the participation of less or perhaps not there is no art designer's participation, because the software aspect of the interface has no requirements, the requirements are running and business logic. But to do the site, most of the content, CMS enough to meet, and then static generation, the procedural requirements are secondary, the art of participation is very much, so that, simply can not be like C + + Java Those languages independent development, Must be more artistic very strong co-ordination (because most companies do not understand HTML CSS JS). And do the site PHP programmer, in fact, you still need to use PS, DW transduction these software, and these software Linux is not supported at all. So I have been very obsessed with this problem, on the one hand, the actual need for PHP is not like the C + + Java Those programs have what kind of team, most companies are only one PHP programmer. On the other hand, many places also said that PHP must be developed under Linux, but I myself actually several times to Linux under the development of PHP feel really troublesome, inconvenient, inflexible.


Write these hope to get everyone's comments, views, opinions. (by default7#zbphp.com)

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.