You are here: Re: Apache,MySql,PHP on Windows vs. Linux « PHP Programming Language « IT news, forums, messages
Re: Apache,MySql,PHP on Windows vs. Linux

Posted by Jim Michaels on 02/07/06 10:41

"Sean Barton" <barton.sean@gmail.com> wrote in message
news:1139252277.386148.150990@g43g2000cwa.googlegroups.com...
> Hi...
>
> the linux version is much nicer to play with although i suggest you use
> xwindows to do the development, if you like the command line stuff i
> recommend you install vim or emacs as vi is spawn of the devil.

vim's OK. had a few problems with vi once in a while. massive problems and
learning curve with emacs.
ahh - you emacs people... emacs makes my control and meta pinky hurt. :-)
but, in emacs you can do just about anything, I'll give it that - even send
emails & compile programs.
to each his own I guess. I found a favorite editor on my platform that's
neither vi nor emacs.

One thing to keep in mind is that if you transfer files between the two
boxes, you may want to do cr/lf conversions on the files if you are doing
any editing.
PHP won't care about the cr/lf difference AFAIK. but it's annoying in an
editor.
When you port a UNIX file to windows, because there is no cr, and you open
the file up in notepad, (dreamweaver fixes things great), notepad will run
all the lines together in one big mash with little lf symbols sprinkled
throughout. That can be manually corrected.
You can probably find a free unix2pc crlf conversion utility out there for
Windows. or, just write a PHP script to convert the linefeeds using
file_get_contents() and file_put_contents(), explode(), and implode(). UNIX
already has these text tools built-in... I just forgot what they were - I
think tr can be used, but it may be the hard way to do it. On the UNIX box,
make sure you install man pages (probably is by default, but make sure they
are *all* installed). then try using
man tr
and
man -k pc2unix
or
man -k pctounix | more
or
man -k crlf | more
and see if any commands pop up.
and remember that \r is a return, \n is a linefeed for the tr command (or
most commands on UNIX). on a pc, \r\n is the sequence. on UNIX, I think
it's simply \n.

>
> make sure that if you open any files in your scripts that the paths
> have been changed to match their linux location unless your smart
> enough to code with ../../../ etc... much easier. some php functions
> behave differently with windows and linux but not mostly.
>
> finally browsers are slightly different. if you are unfortunate enough
> to use internet explorer then your pages especially the tables may draw
> differently in mozilla, konqueror or firefox. i suggest firefox for
> both windows and linux.
>
> please be aware as you are new to linux you might find it very hard to
> begin to use. stick at it as as they say 'everything else is just a
> toy' ok i nicked that from toy soldiers but its true. make sure you
> know someone with linux
>
> good luck with it
>
> Sean Barton
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация