473,289 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Developing PHP under Windows - Why?

I have seen postings that indicate some developers are creating PHP
apps for a Windows server environment. I am not sure if they run
underr IIS or Apache, but I wonder why Windows and PHP vs. the
PHP/Apache/Linux triumvirate.

I would think that if you developed under windows, why not stick to
ASP.net and IIS. If you want to use Apache, why not stick with Linux.

Mostly curious.
Sep 6 '05 #1
20 2965

David wrote:
I have seen postings that indicate some developers are creating PHP
apps for a Windows server environment. I am not sure if they run
underr IIS or Apache, but I wonder why Windows and PHP vs. the
PHP/Apache/Linux triumvirate.

I would think that if you developed under windows, why not stick to
ASP.net and IIS. If you want to use Apache, why not stick with Linux.


I develop my PHP code on a Windows laptop using local copies of
Apache/PHP/MySQL. By doing this, I don't have to be connected to the
Internet at all times and debugging is much easier. I don't have to be
uploading the code to the host all of the time and it reduces the
possibility of replacing working code with test code that may be buggy.
I don't even have IIS turned enabled on my laptop.

Apache runs on many differenct platforms, not only Linux.

Ken

Sep 6 '05 #2
I am beginner in php under windows. My reason for learning the language is
hat my employer wants me to have this skill :)
I have programmed in asp for 5 years and 2 years in asp.net and if it wasn't
for my employer I would never have given php a chance.

I must say php is a platform where you can acheive professional results very
quickly. It takes me back to the old classic asp days but now with lots and
lots of usefull functions.

Its always good to look at another approuch even if you can solve the problem
with your old skill. You always learn this way.

And its good to know that once I master php I can target unix, windows, etc
for deployment (unix is free, windows server are $$).
If you know asp you are confined to the windows world of doing things (there
is mono of course, I haven't tried that).

Cheers,
Tom Pester
Sep 6 '05 #3
David wrote:
I have seen postings that indicate some developers are creating PHP
apps for a Windows server environment. I am not sure if they run
underr IIS or Apache, but I wonder why Windows and PHP vs. the
PHP/Apache/Linux triumvirate.

I would think that if you developed under windows, why not stick to
ASP.net and IIS. If you want to use Apache, why not stick with Linux.

Mostly curious.


I use PHP on Windows - the reason I do so as apposed to using ASP is
that I know my applications can be deployed on almost any OS and
Webserver combo known to man. I guess its my way with the heavy
emphasis on standards and CSS and so forth but I it gives me an edge
over using ASP. Ironically if I develop PHP on Linux I seem to have more
problems dealing with Windows after the fact that the other way round -
so I develop on Windows, test on *Nix and it seems to work well.

I do also code ASP/SQL Server/Oracle apps - simply because some clients
run Windows environments and PHP is not supported as policy.

J
Sep 7 '05 #4
NC
David wrote:

I have seen postings that indicate some developers are creating
PHP apps for a Windows server environment. I am not sure if
they run underr IIS or Apache, but I wonder why Windows and PHP
vs. the PHP/Apache/Linux triumvirate.
Any number of reasons, really. Here are a few:

1. You want to have both PHP and ASP available for development
and testing. One way to solve this problem is to run PHP
under IIS (with ASP already there).
2. You want PHP to be a part of an application suite somehow
tied to Windows. One of my PHP/MySQL applications, for
example, contains a third-party data update utility
implemented as a Windows executable.
3. You want to automate certain tasks under Windows, and
command-line PHP attracts you as just the tool for the job.
4. You want command-line scripting with advanced capabilities
(such as access to databases, reading remote files, etc.)
5. You already have a Windows server running, but want to
deploy a PHP application.
I would think that if you developed under windows, why not
stick to ASP.net and IIS.
Because PHP runs under IIS, too; also, PHP allows you to
break away from object-oriented programming, which in many
cases is unnecessarily confusing.
If you want to use Apache, why not stick with Linux.


What if you don't want to use any Web server at all (as in
command-line scripting)?

Cheers,
NC

Sep 7 '05 #5
At my place of employment we have a pair of quad-Xeon servers running
Windows 2000, Apache 2, Microsoft SQL Server, and PHP. We went with the
Windows route mainly for human resource reason. Everyone here knows
Windows already, whereas relatively few people know Linux. This makes
staffing and hiring much easier. Our office desktop support guy, for
instance, double as our server admin.

Why not ASP.Net and IIS? ASP.Net is a pain to work in while IIS
administration is still very much a dark art.

So we basically took the route of least unresistance, picking
technologies that seem most convinient.

Sep 7 '05 #6
Chung Leong wrote:
At my place of employment we have a pair of quad-Xeon servers running
Windows 2000, Apache 2, Microsoft SQL Server, and PHP. We went with the
Windows route mainly for human resource reason. Everyone here knows
Windows already, whereas relatively few people know Linux. This makes
staffing and hiring much easier. Our office desktop support guy, for
instance, double as our server admin.

Why not ASP.Net and IIS? ASP.Net is a pain to work in while IIS
administration is still very much a dark art.

So we basically took the route of least unresistance, picking
technologies that seem most convinient.


Chung,

Yes, ASP.Net can be a pain in the posterior. But so can PHP, Perl or
other languages. It's all in what you're familiar with. And any of
these can generally do the job in web programming.

If your programmers weren't familiar with either PHP or ASP.Net, then I
can understand your decision to go the PHP route. It's easier to learn
and many programmers can come up to speed more quickly than ASP.Net. Of
course, it also has the advantage of being more portable.

However, if a large percentage of your programmers were already familiar
with ASP.Net, it would make more sense to go that route, IMHO.

You also might look at the possibility of migrating to Linux/Apache in
the future. I got my first Linux VPS a couple of years ago. I knew
virtually nothing about Linux at the time - and very little about
Apache. But I was able to pick both up in my spare time through some
books and web sites. And now I'm far from an expert - but I consider
myself competent enough to install software (without using the Debian
package manager), make changes to the Apache configuration file, and so
on. I wouldn't sell myself as a Linux admin - but I can handle my own
machines. Of course, I also remember the DOS 1.0 days - so I'm quite
comfortable working from a command prompt - that does make a difference!

My suggestion would be for you to get a test machine and install Linux
and Apache on it. Let people play with the machine (ensure you have
backups of the install - they WILL crash it at some point! :-) ).

The reason I say this is - Windows makes a decent desktop system. But
it has a large amount of unnecessary overhead. For instance, my VPS has
128K of RAM - and I'm not using all of it. I have 3GB of disk space -
but I'm only using a little over 1GB for the actual system. And
response time is great.

I've become a believer in using Linux for website. But I still think
Windows makes a more user-friendly desktop.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 7 '05 #7
David wrote:
I have seen postings that indicate some developers are creating PHP
apps for a Windows server environment. I am not sure if they run
underr IIS or Apache, but I wonder why Windows and PHP vs. the
PHP/Apache/Linux triumvirate.

I would think that if you developed under windows, why not stick to
ASP.net and IIS.
If you want to use Apache, why not stick with Linux.

Mostly curious.


Some of my customers use windows, others use linux. If i don't want to
deny them this choice (IOW, if i do want all of them to be my
customers), why would i learn two languages if one suffices? Why would i
build my reusable components twice if php runs on both?

Henk Verhoeven,
www.phppeanuts.org.
Sep 7 '05 #8
Jerry Stuckle wrote:
The reason I say this is - Windows makes a decent desktop system. But
it has a large amount of unnecessary overhead. For instance, my VPS has
128K of RAM - and I'm not using all of it. I have 3GB of disk space -
but I'm only using a little over 1GB for the actual system. And
response time is great.


Computing resource is cheap, while human resource is expensive.
Decisions are sometimes therefore made with greater regards to the
latter--that's the point I was trying to make. Windows might not be the
best OS for web hosting, but hiring a Linux/Unix guy was out of the
question.

Sep 7 '05 #9
Chung Leong wrote:
Jerry Stuckle wrote:
The reason I say this is - Windows makes a decent desktop system. But
it has a large amount of unnecessary overhead. For instance, my VPS has
128K of RAM - and I'm not using all of it. I have 3GB of disk space -
but I'm only using a little over 1GB for the actual system. And
response time is great.

Computing resource is cheap, while human resource is expensive.
Decisions are sometimes therefore made with greater regards to the
latter--that's the point I was trying to make. Windows might not be the
best OS for web hosting, but hiring a Linux/Unix guy was out of the
question.


Yes, computer resources are cheap. But maintenance becomes expensive
when you need two or three Windows machines to do the same job one Linux
machine can do. Windows is good - but quite frankly it's a resource
hog. As long as your web site isn't very busy, Windows will do just
fine. However, if your site gets busy, you'll find Windows will run out
of resources much faster than Linux will.

I understand hiring a Linux guy is out of the question. That's why I
suggested getting a Linux machine in house and let your people play with
it. It's a great way for them to learn Linux in their spare time (or
when they just need a break from programming). Get a couple of good
books and let them go at it. Even if they crash the machine, it's only
a test machine, after all (warning - do NOT do "rm -R /"!).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 8 '05 #10
On Tue, 06 Sep 2005 18:26:42 -0500, David wrote:
I have seen postings that indicate some developers are creating PHP
apps for a Windows server environment. I am not sure if they run
underr IIS or Apache, but I wonder why Windows and PHP vs. the
PHP/Apache/Linux triumvirate.


Actually, Windoze is a better platform for a developer as there are many
more good IDE packages. If one writes it correctly, PHP application will
run on any platform. Windoze is the most comfortable for the vast majority
of developers and has things like Visio, MS-Project, Word, Outlook, Excel
and alike which are all miles ahead of their OO alternatives like Dia,
AbiWord, GNUmeric or OO.

--
http://www.mgogala.com

Sep 9 '05 #11
Jerry Stuckle wrote:
Yes, computer resources are cheap. But maintenance becomes expensive
when you need two or three Windows machines to do the same job one Linux
machine can do. Windows is good - but quite frankly it's a resource
hog. As long as your web site isn't very busy, Windows will do just
fine. However, if your site gets busy, you'll find Windows will run out
of resources much faster than Linux will.
But the procedures and software for such tasks as back-up and patch
installation are the same for the web servers as they are for the file
and print servers, as well as desktop machines around the office. Using
Linux would mean having a separate sets of procedures and tracking
another OS for updates.
I understand hiring a Linux guy is out of the question. That's why I
suggested getting a Linux machine in house and let your people play with
it. It's a great way for them to learn Linux in their spare time (or
when they just need a break from programming). Get a couple of good
books and let them go at it. Even if they crash the machine, it's only
a test machine, after all (warning - do NOT do "rm -R /"!).


There is a different between being able to do something and having a
certificate stating you can do something. The guy in charge of the
servers has a MSCE. He is not certified to administrate a Linux server,
nor was that in his job description when he was hired.

Sep 9 '05 #12
Chung Leong wrote:
Jerry Stuckle wrote:
But the procedures and software for such tasks as back-up and patch
installation are the same for the web servers as they are for the file
and print servers, as well as desktop machines around the office. Using
Linux would mean having a separate sets of procedures and tracking
another OS for updates.

With the packages handlers the distributions use, updating is even
easier than with Windows. One command does it all - and if you wish,
that can be performed automatically.


There is a different between being able to do something and having a
certificate stating you can do something. The guy in charge of the
servers has a MSCE. He is not certified to administrate a Linux server,
nor was that in his job description when he was hired.

Yes, there is a difference. Having a certificate means you passed the
test. It does NOT mean you can do the job. I've seen too many people
with (insert your favorite certificate here) not be able to do the job
they are 'certified' for. And I've seen too may people without (insert
your favorite certificate here) be able to do a much better job than
someone certified. Give me someone with experience over a "certified"
person any day.

And BTW - I'm not picking on MSCE or any other particular certification.
I'm speaking of most certifications out there today. A one or two day
"cram course" will get you by the test - but not teach you how to do the
job.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 9 '05 #13
Mladen Gogala wrote:
On Tue, 06 Sep 2005 18:26:42 -0500, David wrote:
Actually, Windoze is a better platform for a developer as there are many
more good IDE packages. If one writes it correctly, PHP application will
run on any platform. Windoze is the most comfortable for the vast majority
of developers and has things like Visio, MS-Project, Word, Outlook, Excel
and alike which are all miles ahead of their OO alternatives like Dia,
AbiWord, GNUmeric or OO.


You mean you don't write all your PHP in vi? :-)

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 9 '05 #14

Jerry Stuckle wrote:
Yes, there is a difference. Having a certificate means you passed the
test. It does NOT mean you can do the job. I've seen too many people
with (insert your favorite certificate here) not be able to do the job
they are 'certified' for. And I've seen too may people without (insert
your favorite certificate here) be able to do a much better job than
someone certified. Give me someone with experience over a "certified"
person any day.


Ah, but if the guy with the certificate fails to do his job, it's his
fault. If the guy without the certificate fails, it's the manager's
fault for assigning a task to someone who isn't unqualified.

Sep 9 '05 #15
Chung Leong wrote:
Jerry Stuckle wrote:
Yes, there is a difference. Having a certificate means you passed the
test. It does NOT mean you can do the job. I've seen too many people
with (insert your favorite certificate here) not be able to do the job
they are 'certified' for. And I've seen too may people without (insert
your favorite certificate here) be able to do a much better job than
someone certified. Give me someone with experience over a "certified"
person any day.

Ah, but if the guy with the certificate fails to do his job, it's his
fault. If the guy without the certificate fails, it's the manager's
fault for assigning a task to someone who isn't unqualified.


Not true. Having a certificate doesn't mean you're "qualified". It
only means you could pass a test. And not having one doesn't mean
you're "not qualified". It generally only means you didn't take the
test. A few may have tried to take the test and failed - but those are
by far in the minority.

Experience is a much better qualification than certification. But most
managers are completely clueless about the job they're hiring for - so
they don't know what the right questions to ask are. So they just
demand "xxx certification" and hope they pick right.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 9 '05 #16
Jerry Stuckle wrote:
Not true. Having a certificate doesn't mean you're "qualified". It
only means you could pass a test. And not having one doesn't mean
you're "not qualified". It generally only means you didn't take the
test. A few may have tried to take the test and failed - but those are
by far in the minority.
There is your opinion, which could be quite valid, and then there is
government HR policy, which we have to live with.
Experience is a much better qualification than certification. But most
managers are completely clueless about the job they're hiring for - so
they don't know what the right questions to ask are. So they just
demand "xxx certification" and hope they pick right.


Experience is, of course, part of the job requirement. You need that
and a certificate to land a job. In any event, someone who has been
just playing around with Linux obviously would have neither experience
or a certificate. Easier to just stick with Windows.

Sep 9 '05 #17
I develop my PHP applications on a Windows PC for the simple reason that my
PC is a Windows box, not Linux. I can do this for the simple reason that
PHP, Apache and MySQL all run on various platforms, so I can develop on one
and deploy on another without any problems. I will not switch to Linux for
development for the following reasons:
(a) I don't have to.
(b) All of the other software that I use is Windows only, not Linux.
(c) I don't believe Linux is good enough yet to compete with Windows.

I choose not to develop with ASP and IIS because I prefer open source
products.

Does that answer your question?

--
Tony Marston

http://www.tonymarston.net

"David" <ma******@sbcglobal.net> wrote in message
news:t4********************************@4ax.com...
I have seen postings that indicate some developers are creating PHP
apps for a Windows server environment. I am not sure if they run
underr IIS or Apache, but I wonder why Windows and PHP vs. the
PHP/Apache/Linux triumvirate.

I would think that if you developed under windows, why not stick to
ASP.net and IIS. If you want to use Apache, why not stick with Linux.

Mostly curious.

Sep 10 '05 #18
I guess I should have been clearer in my question. I was talking
about developing under Windows to work primarily with Windows. I
understand wanting to develop under Windows, as you have the
flexibility not given to some Linux users.

However, does anyone choose to use PHP for a Windows only project? Why
rather than .net?

Sep 13 '05 #19
On 2005-09-13, David <ma******@sbcglobal.net> wrote:
I guess I should have been clearer in my question. I was talking
about developing under Windows to work primarily with Windows. I
understand wanting to develop under Windows, as you have the
flexibility not given to some Linux users.

However, does anyone choose to use PHP for a Windows only project? Why
rather than .net?


A windows only project is way too vague. What are the real requirements
and restrictions? (Fe: if your target os is w9x, .net isn't an option
either)

--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>
Sep 13 '05 #20
David wrote:
I guess I should have been clearer in my question. I was talking
about developing under Windows to work primarily with Windows. I
understand wanting to develop under Windows, as you have the
flexibility not given to some Linux users.

However, does anyone choose to use PHP for a Windows only project? Why
rather than .net?


The question is more like why you don't want to use .Net. Here are some
reasons:

1) ASP.Net is a pain to set up. Nothing drives a programmer crazy quite
like mysterious alert boxes.
2) You more or less have to use Visual Studio.Net.
3) The event driven model is very different from what people are used
to.
4) ASP.Net essentially requires Javascript on the client side.
5) Little guarantee that pages would work with non-IE browsers.
6) Pointlessly complicated class structure. Dumb HTML tags are
represented by classes inherited four, five levels deep.
7) Stupid use of namespace. Whoever thought it's a good idea to use
namespaces as a primary mean to identify classes desires a good
beating.
8) Documentation sucks.

Sep 13 '05 #21

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: aj | last post by:
hi i am a newbi to python and developing a web application what do u all think is the best application framework for developing web application in python. I want a framework that supports...
2
by: paul | last post by:
I have developed an application for pocket pc that requires multiple forms to be open at any one time. The user is able to flick from one to the other, making changes to each as and when necessary...
13
by: James Harris | last post by:
Hi, Can someone recommend a book that will teach me how to approach C programming so that code is modularised, will compile for different environments (such as variations of Unix and Windows),...
11
by: Simon | last post by:
Hi all As I'm sure is common knowledge the version of IIS included in XP Pro is limited in that you can only create 1 website in the IIS snap in. As an ASP.net developer this is a pain in the...
4
by: Vivek Sharma | last post by:
Hi There, I am about to develop a windows application. I was wondering if there is any set of general guidelines I should be following when developing a windows application? Is there a...
1
by: Jeff | last post by:
Hey IDE: VS .NET 2005 #1 I want to start developing web parts in visual studio 2005 and are wondering where is the latest version of the web part templates. I did find this download (the...
6
by: =?Utf-8?B?Sm9l?= | last post by:
Hello, I have 10 years of experience working as a Webmaster. For about an year I worked on a 3-tier ASP application which gave me a good experience with SQL Server (Stored procedures) and...
4
by: Jason Huang | last post by:
Hi, I am thinking in comparing developing speed between C# Windows Form and C# Web Form applications. Assuming the scenario is that we have 2 C# coding engineers, engineer A has 2 years...
0
by: =?Utf-8?B?bWo=?= | last post by:
Hello, I am planning on developing a windows service in C# using VS 2005 on a Vista 32bit operating system. I am going to be deploying this windows service on a 2003 server in our Production...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.