473,806 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python v PHP: fair comparison?

I don't know if this is a fair comparison or not. Any comments
appreciated.

- Python is more readable, and more general purpose
- PHP has awful backward compatibility
- PHP has a lower barrier to entry
- Most inexpensive web-hosters support PHP, but not Python
- PHP has far more pre-writen scripts available
- Newer versions of mod_python require Apache 2.0, which few hosters
have
- There is more demand for PHP developers, than Python developers

Nov 14 '06
50 2672
James Cunningham wrote:
On 2006-11-15 20:59:26 -0500, "walterbyrd " <wa********@ina me.comsaid:
>Bruno Desthuilliers wrote:
>>walterbyrd a écrit :
You mean there are web hosting companies that are still using Apache
1.3.x ?
Practically all web-hosters still use Apache 1.3.x. Certainly all of
the lower priced hosters.

Not true. Dreamhost, at least, uses Apache 2.
So you thin a single counter-example disproves an assertion that begins
with "practicall y all"?
>>C'mon, let's be serious. I just ordered a dedibox - a small dedicated
web server - for my personal use. It's only 30 euros a month, you know...
What if I only need 25mb of space? I can that with a PHP hoster for $10
a year. That is about 1/36th the price that you posting about.

Maybe you don't mind paying 30 euros a month, but a lot others do.

Of course, you can't get $10 a year plans on Dreamhost. But with deals
you can get it down to about that low, at least for the first year. I
suppose I'm lucky enough not to miss $8 a month otherwise.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Nov 16 '06 #31
On 2006-11-16 05:46:45 -0500, Steve Holden <st***@holdenwe b.comsaid:
James Cunningham wrote:
>On 2006-11-15 20:59:26 -0500, "walterbyrd " <wa********@ina me.comsaid:
>>Bruno Desthuilliers wrote:
walterbyrd a écrit :
You mean there are web hosting companies that are still using Apache
1.3.x ?

Practically all web-hosters still use Apache 1.3.x. Certainly all of
the lower priced hosters.

Not true. Dreamhost, at least, uses Apache 2.

So you thin a single counter-example disproves an assertion that begins
with "practicall y all"?
Nope. It disproves your assertion that "certainly all of the lower
priced hosters" use Apache 1.3.

"Certainly all".

"Certainly" "all".

Best,
James

Nov 16 '06 #32

Cameron Laird ha escrito:
In article <11************ **********@m73g 2000cwd.googleg roups.com>,
Luis M. González <lu*****@gmail. comwrote:
.
.
.
Then look no further. Learn python and go kick php developers asses in
the market place.
There are thousands of php developers out there. Do you want to be just
one more?
I'd rather learn something newer, and much more powerful.
.
[more Python
cheerleading]
.
.
Perhaps it's timely to clarify the "newer" above: Guido
made Python public in '89-90, and Rasmus showed PHP to
others in '94-95.
OK. But since when has python been considered a viable alternative for
web development?
As a generalp purpose language, it's older.
But as a web development language, it's olnly when people started to
look for the "rails killer" and many python alternatives started to
come up (although Django has been in development for a long time before
all this hype).
I remember well, just a few months ago, there were many alternatives
(remember "subway"?).

Nov 16 '06 #33
Luis M. González wrote:
But as a web development language, it's olnly when people started to
look for the "rails killer" and many python alternatives started to
come up (although Django has been in development for a long time before
all this hype).
nah, people have built web stuff on Python for as long as we've had a web.

</F>

Nov 16 '06 #34
Luis M. González wrote:
>
OK. But since when has python been considered a viable alternative for
web development?
Since the Bobo era (ca. 1997), but quite possibly before. Sure, you had
to build your own mega-framework back then, but that's what a lot of
people were doing anyway.
As a generalp purpose language, it's older.
But as a web development language, it's olnly when people started to
look for the "rails killer" and many python alternatives started to
come up (although Django has been in development for a long time before
all this hype).
I remember maintaining a long list of Web frameworks a few *years* ago.
It's true that most of them didn't resemble the slick marketed package
that you see with something like TurboGears, but you might be surprised
how much you got with Webware back in 2001:

http://www.webwareforpython.org/Docs/RelNotes-0.5.html
I remember well, just a few months ago, there were many alternatives
(remember "subway"?).
Some people would like you to believe that they pioneered the
mega-framework, amongst other things. Freely available documentation
undermines such claims if you know where to look (and actually choose
to do so).

Paul

Nov 16 '06 #35
James Cunningham wrote:
On 2006-11-16 05:46:45 -0500, Steve Holden <st***@holdenwe b.comsaid:
>James Cunningham wrote:
>>On 2006-11-15 20:59:26 -0500, "walterbyrd " <wa********@ina me.comsaid:

Bruno Desthuilliers wrote:
walterbyr d a écrit :
You mean there are web hosting companies that are still using Apache
1.3.x ?
>
Practicall y all web-hosters still use Apache 1.3.x. Certainly all of
the lower priced hosters.
Not true. Dreamhost, at least, uses Apache 2.
So you thin a single counter-example disproves an assertion that begins
with "practicall y all"?

Nope. It disproves your assertion that "certainly all of the lower
priced hosters" use Apache 1.3.

"Certainly all".

"Certainly" "all".
Certainly. But not my assertion.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Nov 16 '06 #36
On 2006-11-16 09:08:43 -0500, Steve Holden <st***@holdenwe b.comsaid:
James Cunningham wrote:
>On 2006-11-16 05:46:45 -0500, Steve Holden <st***@holdenwe b.comsaid:
>>James Cunningham wrote:
On 2006-11-15 20:59:26 -0500, "walterbyrd " <wa********@ina me.comsaid:

Bruno Desthuilliers wrote:
>walterby rd a écrit :
>You mean there are web hosting companies that are still using Apache
>1.3.x ?
>>
Practical ly all web-hosters still use Apache 1.3.x. Certainly all of
the lower priced hosters.
Not true. Dreamhost, at least, uses Apache 2.
So you thin a single counter-example disproves an assertion that begins
with "practicall y all"?

Nope. It disproves your assertion that "certainly all of the lower
priced hosters" use Apache 1.3.

"Certainly all".

"Certainly" "all".
Certainly. But not my assertion.

regards
Steve
So I should be bothered to read the name of whom I'm replying to?

Sheesh. ;)

Best,
James

Nov 16 '06 #37
In article <11************ **********@k70g 2000cwa.googleg roups.com>,
Luis M. González <lu*****@gmail. comwrote:
> .
.
.
Perhaps it's timely to clarify the "newer" above: Guido
made Python public in '89-90, and Rasmus showed PHP to
others in '94-95.

OK. But since when has python been considered a viable alternative for
web development?
As a generalp purpose language, it's older.
But as a web development language, it's olnly when people started to
look for the "rails killer" and many python alternatives started to
come up (although Django has been in development for a long time before
all this hype).
I remember well, just a few months ago, there were many alternatives
(remember "subway"?).
I appreciate your clarification. I can report back that we
certainly move in different circles; I, for example, knew of
people with multi-million-dollar budgets deciding on Python-
based Web technology for *serious* applications in '96. Ruby
1.0, perhaps you'll recall, was a Christmas gift for 1996.
For this and allied reasons, it didn't occur to me to regard
Ruby as the senior "Web development language" among the two.
Nov 16 '06 #38
(replying to bruce - the post doesn't show up here)
bruce wrote:
>ummm bruno...

you don't 'need' apache to run php.
Yes, true, you can also install the cli version. Which has lots of
restrictions BTW.
>in fact, although i'm from the old hard c/c++ world.... way before web
apps,
Web apps are not where I learned programming...
>i haven't really found much for most general apps (not ui/not threaded
stuff) that php can't do..
I haven't really found much for most general apps that assembler can't
do - it's just too painful... !-)

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom. gro'.split('@')])"
Nov 16 '06 #39

Fredrik Lundh ha escrito:
Luis M. González wrote:
But as a web development language, it's olnly when people started to
look for the "rails killer" and many python alternatives started to
come up (although Django has been in development for a long time before
all this hype).

nah, people have built web stuff on Python for as long as we've had a web.

</F>

I know, but would you consider a python cgi application a good
competence against php?

Nov 16 '06 #40

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

Similar topics

699
34290
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
59
4322
by: Hugh Macdonald | last post by:
I've recently been trying out various different GUI frameworks in Python and was wondering if I could get your input on the pros and cons of the different ones... wxPython: I love the programming side of wxPython, but I find it's just so slow to initialise in the first place. Tkinter: While it's fast to load up, the syntax has never really appealed to me
114
9899
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
10
1894
by: walterbyrd | last post by:
I don't know if this is a fair comparison or not. Any comments appreciated. - Python is more readable, and more general purpose - PHP has awful backward compatibility - PHP has a lower barrier to entry - Most inexpensive web-hosters support PHP, but not Python - PHP has far more pre-writen scripts available - mod_python is difficult to set up, and use, and is buggy and prone to crash
0
1594
by: Paul Boddie | last post by:
QOTW: "I think you've got the wrong intuition about the balance between the amount of bandwidth and the amount of computation a given numer of dollars would buy. You've hundreds of CPU cycles available per bit transmitted; space enough to stick in even Python." - Thomas Womack (on comp.lang.lisp, earlier this year, so it's not a true QOTW) http://groups.google.com/group/comp.lang.lisp/msg/453239d7b8e0ef72 "I'm a recent, belated convert...
71
3369
by: Jack | last post by:
I understand that the standard Python distribution is considered the C-Python. Howerver, the current C-Python is really a combination of C and Python implementation. There are about 2000 Python files included in the Windows version of Python distribution. I'm not sure how much of the C-Python is implemented in C but I think the more modules implemented in C, the better performance and lower memory footprint it will get. I wonder if it's...
0
10618
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.