ENC: RES: [PHP] I am a Windows programmer and getting started on PHP
| From: | Alejandro Michelin Salomon | Date: | Fri, 19 Nov 2010 17:46:52 +0000 |
| Subject: | ENC: RES: [PHP] I am a Windows programmer and getting started on PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-309575@lists.php.net to get a copy of this message | ||
De: Alejandro Michelin Salomon [mailto:amichelins@hotmail.com]
Enviada em: sexta-feira, 19 de novembro de 2010 14:45
Para: 'ash@ashleysheridan.co.uk'
Assunto: RES: RES: [PHP] I am a Windows programmer and getting started on PHP
Daevid Vincent:
For me is no problem if Linux is case sensitive, because all my files ( php, JavaScript, html,
images, etc ) are lowercase as default.
For my each directory has is own name, and i never use especial characters in file names. And chmod
i use only in the production server that is a Ubuntu Linux,
for some folders that need write access.
I run my code on windows in development time, and Linux in production time, code runs in both OS,
because the rules that i use are good for windows and Linux too.
Alejandro M.S.
De: ash@ashleysheridan.co.uk [mailto:ash@ashleysheridan.co.uk]
Enviada em: sexta-feira, 19 de novembro de 2010 12:33
Para: Alejandro Michelin Salomon; 'Daevid Vincent'
Cc: php-general@lists.php.net
Assunto: Re: RES: [PHP] I am a Windows programmer and getting started on PHP
The reason you might run it on a vm is because not all operating systems are created equal. Things
that work in Linux won't necessarily work on windows, and vice versa. If you're developing
on the same type of platform as the live server, there is less chance of a problem rearing its head.
For example, the file system is one major area of windows/linux problems. Windows isn't case
sensitive, while Linux is. In windows, you can have a file and a directory with the same name, but
not so on Linux. Windows heavily restricts the characters you can use in a filename, Linux is much
more relaxed.
There is also the problem of all the various modules. Chmod has no real function on windows, but is
very important on Linux.
It's worth bearing in mind all these issues as you develop.
Thanks,
Ash
http://www.ashleysheridan.co.uk
----- Reply message -----
From: "Alejandro Michelin Salomon" <amichelins@hotmail.com>
Date: Fri, Nov 19, 2010 16:13
Subject: RES: [PHP] I am a Windows programmer and getting started on PHP
To: "'Daevid Vincent'" <daevid@daevid.com>
Cc: <php-general@lists.php.net>
Daevid Vincent:
I never use XAMP and those type of installations.
Is very simple install Apache on windows ( takes 3 minutes ), and php too.
Install php is simples, run the msi package, the installer configures
httpd.conf
Then you make the changes that you need to php.ini and is complete!!!!. (
enable a extension is just cut off ";" in front of the line, in the php.ini,
and restart apache ).
Simples, fast, get up and running apache and php on windows.
If you need mysql, download the mysql server. Run the installer. The
installer configure the database server.
When i start with php ( 4.0x ), apache is configured manually.
Now is automatic.
All the php developers that i know are windows users. OS is not a problem to
use php.
What install a VM to run linux? If i could run php on windows directly?
Alejandro M.S.
-----Mensagem original-----
De: Daevid Vincent [mailto:daevid@daevid.com]
Enviada em: quinta-feira, 18 de novembro de 2010 19:55
Para: 'Keerat Singh'; php-general@lists.php.net
Assunto: RE: [PHP] I am a Windows programmer and getting started on PHP
> -----Original Message-----
> Subject: [PHP] I am a Windows programmer and getting started
> on PHP. What is the easiest way of getting started? Most of
> the stuff I encounter seems to be very Linux specific.
>
> I am a Windows programmer and getting started on PHP. What is
> the easiest way of
> getting started? Most of the stuff I encounter seems to be
> very Linux specific.
Personally, I would avoid XAMP and those hacks to run apache and PHP on
your XP (or vista or win7 or whatever). I'd say the vast majority of PHP
developers are LAMP developers so get used to Linux at least enough to move
around the file-system and know where to put files (/var/www/ or
~/public_html etc). With that in mind, I would look for either a pre-built
VM. VirtualBox is free and VERY easy/robust. Also VMWare is outstanding and
they have a free "player" and eight bajillion pre-made VM appliance setups:
http://www.virtualbox.org/
http://www.munkyonline.com/articles/lamp-ubuntu-server-on-virtualbox.html
http://www.vmware.com/products/player/
http://www.vmware.com/appliances/directory/cat/0?k=lamp
I also strongly suggest you setup your VM to use samba shares so it's easy
to edit/save/view your files without some tedious FTP or SCP step.
-Daevid.
P.S. I'd also limit your email subject lines to a simple sentence or less.
Not a paragraph!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php