Is it possible to mix python with php?

2013-12-13 Thread JL
Python is my favorite language. Very often, I am forced to use other languages like php because of better library support for web applications. Is it possible to write functions in python and then get php to call these functions? Thank you --

Re: Is it possible to mix python with php?

2013-12-13 Thread Chris Angelico
On Sat, Dec 14, 2013 at 12:42 PM, JL lightai...@gmail.com wrote: Python is my favorite language. Very often, I am forced to use other languages like php because of better library support for web applications. Is it possible to write functions in python and then get php to call these

Re: Is it possible to mix python with php?

2013-12-13 Thread Roy Smith
and then get php to call these functions? At one time, Songza was half PHP, half Python. The parts ran in separate processes, communicating over HTTP. I think that's probably what you want to do here. If you define a clean, and well-documented interface, nobody has to know what language

ANN: PDFTron PDFNet SDK v.5.7 for PYTHON, RUBY, PHP

2011-06-03 Thread trn2
, XPS, EMF, .NET/GDI+, etc. - PDF Printing - PDF viewing and markup - PDF Forms - PDF Content Extraction - PDF Redaction - Silverlight Viewer for PDF For a high-level overview of available functionality please see: http://www.pdftron.com/pdfnet/features.html WHAT'S NEW ? Support for PYTHON, Ruby

Re: Python and PHP encryption/decryption

2009-08-21 Thread Piet van Oostrum
Diez B. Roggisch de...@nospam.web.de (DBR) wrote: DBR Jean-Claude Neveu schrieb: I'm looking for a recommendation about encryption/decryption packages for Python. I'm working on a project that will require me to store some values in a database in encrypted format. I'll be storing them from

Python and PHP encryption/decryption

2009-08-19 Thread Jean-Claude Neveu
I'm looking for a recommendation about encryption/decryption packages for Python. I'm working on a project that will require me to store some values in a database in encrypted format. I'll be storing them from a PHP script and retrieving them (decrypting them) using Python. I'm currently

Re: Python and PHP encryption/decryption

2009-08-19 Thread Diez B. Roggisch
Jean-Claude Neveu schrieb: I'm looking for a recommendation about encryption/decryption packages for Python. I'm working on a project that will require me to store some values in a database in encrypted format. I'll be storing them from a PHP script and retrieving them (decrypting them)

Re: Python and PHP encryption/decryption

2009-08-19 Thread Paul Rubin
Jean-Claude Neveu jcn-france1...@pobox.com writes: I'm working on a project that will require me to store some values in a database in encrypted format. I'll be storing them from a PHP script and retrieving them (decrypting them) using Python. I'm currently using PHP's mcrypt package to

Re: ORB for Python and PHP

2008-12-09 Thread Laszlo Nagy
There are others but they do not support both Python and PHP. Should I implement my own ORB, or do you know a suitable solution? The whole purpose of an ORB ist that it is interoperable. So if you have a good python orb (I personally prefer OmniORB), and a good one for PHP - connect them

Re: ORB for Python and PHP

2008-12-09 Thread Diez B. Roggisch
Laszlo Nagy schrieb: There are others but they do not support both Python and PHP. Should I implement my own ORB, or do you know a suitable solution? The whole purpose of an ORB ist that it is interoperable. So if you have a good python orb (I personally prefer OmniORB), and a good one

ORB for Python and PHP

2008-12-08 Thread Laszlo Nagy
are our options? I checked these: - Bonobo is the most advanced, but it can only handle C language - FNORB is good for Python, but not for PHP - OmniORB would be very good for C and Python, but not PHP There are others but they do not support both Python and PHP. Should I implement my own ORB

Re: ORB for Python and PHP

2008-12-08 Thread Diez B. Roggisch
to use free software. What are our options? I checked these: - Bonobo is the most advanced, but it can only handle C language - FNORB is good for Python, but not for PHP - OmniORB would be very good for C and Python, but not PHP There are others but they do not support both Python and PHP. Should I

Re: Communication between Python and PHP

2008-06-30 Thread askel
On Jun 25, 6:59 pm, nicodotti2 [EMAIL PROTECTED] wrote: On Jun 25, 1:50 pm, Larry Bates [EMAIL PROTECTED] wrote: nicodotti2 wrote: Don't ask me why, but we have a bunch of legacy code in PHP on a server and a wee-bit of Python code for integrating GData google calendar services. We

Communication between Python and PHP

2008-06-25 Thread nicodotti2
Don't ask me why, but we have a bunch of legacy code in PHP on a server and a wee-bit of Python code for integrating GData google calendar services. We now need to build a way of sending messages between them. The general flow is: PHP Web Page(on apache) --- Python Gdata Consumer - Gdata and

Re: Communication between Python and PHP

2008-06-25 Thread Larry Bates
nicodotti2 wrote: Don't ask me why, but we have a bunch of legacy code in PHP on a server and a wee-bit of Python code for integrating GData google calendar services. We now need to build a way of sending messages between them. The general flow is: PHP Web Page(on apache) --- Python Gdata

Re: Communication between Python and PHP

2008-06-25 Thread nicodotti2
On Jun 25, 1:50 pm, Larry Bates [EMAIL PROTECTED] wrote: nicodotti2 wrote: Don't ask me why, but we have a bunch of legacy code in PHP on a server and a wee-bit of Python code for integrating GData google calendar services. We now need to build a way of sending messages between them. The

Re: Communication between Python and PHP

2008-06-25 Thread nicodotti2
On Jun 25, 1:50 pm, Larry Bates [EMAIL PROTECTED] wrote: nicodotti2 wrote: Don't ask me why, but we have a bunch of legacy code in PHP on a server and a wee-bit of Python code for integrating GData google calendar services. We now need to build a way of sending messages between them. The

Re: need advice on building core code for python and PHP

2007-05-29 Thread digimotif
On May 24, 5:01 pm, Graham Dumpleton [EMAIL PROTECTED] wrote: On May 25, 5:24 am, aspineux [EMAIL PROTECTED] wrote: On 24 mai, 19:33, Szabolcs Nagy [EMAIL PROTECTED] wrote: Is there a way I could code the base (core) code in Python and have PHP call it? I've really liked using

Re: need advice on building core code for python and PHP

2007-05-29 Thread Graham Dumpleton
in Python and have PHP call it? I've really liked using SQLAlchemy and there are other * quick and dirty solution: in a shell: $ python yourscript.py pipe_in pipe_out in the php script: fwrite(pipe_in, input_data); results = fread(pipe_out, sizeof_results

need advice on building core code for python and PHP

2007-05-24 Thread digimotif
processing. There is also the possibility of building client gui applications that work with the database as well, so I'm looking for a way I could create a code base that enables us to use the same functions and objects over and over again while building interfaces in Python, or PHP, or whatever

Re: need advice on building core code for python and PHP

2007-05-24 Thread Szabolcs Nagy
Is there a way I could code the base (core) code in Python and have PHP call it? I've really liked using SQLAlchemy and there are other * quick and dirty solution: in a shell: $ python yourscript.py pipe_in pipe_out in the php script: fwrite(pipe_in, input_data); results = fread

Re: need advice on building core code for python and PHP

2007-05-24 Thread Cameron Laird
again while building interfaces in Python, or PHP, or whatever. Is there a way I could code the base (core) code in Python and have PHP call it? I've really liked using SQLAlchemy and there are other great things like Pylons I could integrate for various tasks, but I first have to move some

Re: need advice on building core code for python and PHP

2007-05-24 Thread digimotif
* simple and nice solution: do not ever use php I'd like not to use it at all, but there's already been quite a bit of work done with it and I'm sure I won't be able to have it all removed at one time. I REALLY don't like debugging PHP especially after all the stuff I've done with Python.

Re: need advice on building core code for python and PHP

2007-05-24 Thread aspineux
On 24 mai, 19:33, Szabolcs Nagy [EMAIL PROTECTED] wrote: Is there a way I could code the base (core) code in Python and have PHP call it? I've really liked using SQLAlchemy and there are other * quick and dirty solution: in a shell: $ python yourscript.py pipe_in pipe_out in the php

Re: need advice on building core code for python and PHP

2007-05-24 Thread Graham Dumpleton
On May 25, 5:24 am, aspineux [EMAIL PROTECTED] wrote: On 24 mai, 19:33, Szabolcs Nagy [EMAIL PROTECTED] wrote: Is there a way I could code the base (core) code in Python and have PHP call it? I've really liked using SQLAlchemy and there are other * quick and dirty solution

Re: Python v PHP: fair comparison?

2006-11-27 Thread Cameron Laird
In article [EMAIL PROTECTED], I reported: . . . 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

Re: Python v PHP for web, and restarting Apache?

2006-11-19 Thread Bruno Desthuilliers
walterbyrd a écrit : Fredrik Lundh wrote: modularity, modularity, and modularity. Can't PHP be made to be just as modular? PHP has no notion of modules. As a matter of popular practise, I suppose that is not done. I would think that it could be. Certainly not the way Python is

Re: Python v PHP for web, and restarting Apache?

2006-11-18 Thread gavino
question. Most of us can act like adults here (although we all forget that from time to time.) Python is much better suited to writing and mainting large web applications though. Being both an experienced php and python programmer, I can tell you I don't use php any more unless I have no other

Re: Python v PHP for web, and restarting Apache?

2006-11-18 Thread walterbyrd
[EMAIL PROTECTED] wrote: Python is much better suited to writing and mainting large web applications though. I have to ask: why is that? Because Python is more readable? Because Python runs faster? Is Python more stable for large scale applications? Does this apply when using Python with

Re: Python v PHP for web, and restarting Apache?

2006-11-18 Thread Fredrik Lundh
walterbyrd wrote: Python is much better suited to writing and mainting large web applications though. I have to ask: why is that? modularity, modularity, and modularity. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Python v PHP for web, and restarting Apache?

2006-11-18 Thread walterbyrd
Fredrik Lundh wrote: modularity, modularity, and modularity. Can't PHP be made to be just as modular? As a matter of popular practise, I suppose that is not done. I would think that it could be. My big problem with PHP is the lack of backward compatibility. My big problem with Python is

Re: Python v PHP: fair comparison?

2006-11-17 Thread Paul Boddie
Luis M. González skrev: OK. But since when has python been considered a viable alternative for web development? [...] The problem is (or was) for mere mortals trying to create a web site on shared hostings. Yes, that was the barrier to entry observation, but you have to implicitly

Python v PHP for web, and restarting Apache?

2006-11-17 Thread walterbyrd
I think I have read somewhere that using Python to develop web-applications requires some restarting of the Apache server, whereas PHP does not. Also, I seem to remember reading something about PHP being able to recover from Apache restarting more easily than Python. I am not trying to suggest

Re: Python v PHP for web, and restarting Apache?

2006-11-17 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], walterbyrd wrote: I am not trying to suggest anything here. I'm just asking. Asking what? Asking something usually involves a question. ;-) Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list

Re: Python v PHP for web, and restarting Apache?

2006-11-17 Thread gabor
walterbyrd wrote: I think I have read somewhere that using Python to develop web-applications requires some restarting of the Apache server, whereas PHP does not. first thing... there are many many ways how to run a python-apache web application.. - mod_python - cgi - fastcgi - sci - proxy

Re: Python v PHP for web, and restarting Apache?

2006-11-17 Thread Michael Ströder
walterbyrd wrote: I think I have read somewhere that using Python to develop web-applications requires some restarting of the Apache server, whereas PHP does not. Using Python to develop web-applications is a very broad topic. E.g. you don't have to restart Apache if you develop simple

Re: Python v PHP: fair comparison?

2006-11-17 Thread [EMAIL PROTECTED]
Luis M. González wrote: [EMAIL PROTECTED] ha escrito: Luis M. González wrote: 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

Re: Python v PHP for web, and restarting Apache?

2006-11-17 Thread sandra . eloff
forget that from time to time.) Python is much better suited to writing and mainting large web applications though. Being both an experienced php and python programmer, I can tell you I don't use php any more unless I have no other choice. -Sandra -- http://mail.python.org/mailman/listinfo/python

Re: Python v PHP: fair comparison?

2006-11-16 Thread Steve Holden
bruce wrote: ummm bruno... you don't 'need' apache to run php. in fact, although i'm from the old hard c/c++ world way before web apps, i haven't really found much for most general apps (not ui/not threaded stuff) that php can't do.. You simply haven't been looking hard enough.

Re: Python v PHP: fair comparison?

2006-11-16 Thread Steve Holden
James Cunningham wrote: On 2006-11-15 20:59:26 -0500, walterbyrd [EMAIL PROTECTED] said: 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

Re: Python v PHP: fair comparison?

2006-11-16 Thread James Cunningham
On 2006-11-16 05:46:45 -0500, Steve Holden [EMAIL PROTECTED] said: James Cunningham wrote: On 2006-11-15 20:59:26 -0500, walterbyrd [EMAIL PROTECTED] said: Bruno Desthuilliers wrote: walterbyrd a écrit : You mean there are web hosting companies that are still using Apache 1.3.x ?

Re: Python v PHP: fair comparison?

2006-11-16 Thread Luis M. González
Cameron Laird ha escrito: In article [EMAIL PROTECTED], Luis M. González [EMAIL PROTECTED] wrote: . . . Then look no further. Learn python and go kick php developers asses in the market place. There are thousands of php

Re: Python v PHP: fair comparison?

2006-11-16 Thread Fredrik Lundh
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

Re: Python v PHP: fair comparison?

2006-11-16 Thread Paul Boddie
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

Re: Python v PHP: fair comparison?

2006-11-16 Thread Steve Holden
James Cunningham wrote: On 2006-11-16 05:46:45 -0500, Steve Holden [EMAIL PROTECTED] said: James Cunningham wrote: On 2006-11-15 20:59:26 -0500, walterbyrd [EMAIL PROTECTED] said: Bruno Desthuilliers wrote: walterbyrd a écrit : You mean there are web hosting companies that are still using

Re: Python v PHP: fair comparison?

2006-11-16 Thread James Cunningham
On 2006-11-16 09:08:43 -0500, Steve Holden [EMAIL PROTECTED] said: James Cunningham wrote: On 2006-11-16 05:46:45 -0500, Steve Holden [EMAIL PROTECTED] said: James Cunningham wrote: On 2006-11-15 20:59:26 -0500, walterbyrd [EMAIL PROTECTED] said: Bruno Desthuilliers wrote: walterbyrd a

Re: Python v PHP: fair comparison?

2006-11-16 Thread Cameron Laird
In article [EMAIL PROTECTED], Luis M. González [EMAIL PROTECTED] wrote: . . . 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

Re: Python v PHP: fair comparison?

2006-11-16 Thread Bruno Desthuilliers
(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

Re: Python v PHP: fair comparison?

2006-11-16 Thread Luis M. González
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

Re: Python v PHP: fair comparison?

2006-11-16 Thread John Bokma
Luis M. González [EMAIL PROTECTED] wrote: 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

Re: Python v PHP: fair comparison?

2006-11-16 Thread walterbyrd
James Cunningham wrote: Nope. It disproves your assertion that certainly all of the lower priced hosters use Apache 1.3. Okay, where can I get Python and Apache 2.X for $10 a year? -- http://mail.python.org/mailman/listinfo/python-list

RE: Python v PHP: fair comparison?

2006-11-16 Thread Demel, Jeff
Walterbyrd wrote: Okay, where can I get Python and Apache 2.X for $10 a year? Webfaction.com This email is intended only for the individual or entity to which it is addressed. This email may contain information that is privileged, confidential or otherwise protected from disclosure.

Re: Python v PHP: fair comparison?

2006-11-16 Thread Tim Chase
Demel, Jeff wrote: Walterbyrd wrote: Okay, where can I get Python and Apache 2.X for $10 a year? Webfaction.com Um, I think you're off by an order of magnitude. Walterbyrd asked about $10/*year* and webfaction.com charges $7.50/*month*. Well, I suppose if one only needed one and a

Re: Python v PHP: fair comparison?

2006-11-16 Thread James Cunningham
On 2006-11-16 12:46:05 -0500, walterbyrd [EMAIL PROTECTED] said: James Cunningham wrote: Nope. It disproves your assertion that certainly all of the lower priced hosters use Apache 1.3. Okay, where can I get Python and Apache 2.X for $10 a year? Frankly, I can't find *anybody* who

Re: Python v PHP: fair comparison?

2006-11-16 Thread Fredrik Lundh
Tim Chase wrote: I can't say I've come across any hosting places that serve up PHP for $10/yr either...the closest I've found is about $3.50/mo (which also provides Python CGI). https://www.nearlyfreespeech.net/about/faq.php#Average /F --

Re: Python v PHP: fair comparison?

2006-11-16 Thread John Bokma
James Cunningham [EMAIL PROTECTED] wrote: On 2006-11-16 12:46:05 -0500, walterbyrd [EMAIL PROTECTED] said: James Cunningham wrote: Nope. It disproves your assertion that certainly all of the lower priced hosters use Apache 1.3. Okay, where can I get Python and Apache 2.X for $10 a

Re: Python v PHP: fair comparison?

2006-11-16 Thread John Bokma
Tim Chase [EMAIL PROTECTED] wrote: Demel, Jeff wrote: Walterbyrd wrote: Okay, where can I get Python and Apache 2.X for $10 a year? Webfaction.com Um, I think you're off by an order of magnitude. Walterbyrd asked about $10/*year* and webfaction.com charges $7.50/*month*. Well, I

RE: Python v PHP: fair comparison?

2006-11-16 Thread Demel, Jeff
Walterbyrd wrote: Okay, where can I get Python and Apache 2.X for $10 a year? I replied: Webfaction.com Tkc then came back with: Um, I think you're off by an order of magnitude. Walterbyrd asked about $10/*year* and webfaction.com charges $7.50/*month*. Well, I suppose if one only needed

RE: Python v PHP: fair comparison?

2006-11-16 Thread John Bokma
Demel, Jeff [EMAIL PROTECTED] wrote: What kind of hosting does one get for $10 a *year*? And I'm not just talking Python here, but any hosting at all. I pay $12/year (see other posts, I am not going to name them again) for hosting a phpBB board and wiki, with 100+ members and currently close

Re: Python v PHP: fair comparison?

2006-11-16 Thread Paul Boddie
John Bokma wrote: Luis M. González [EMAIL PROTECTED] wrote: I know, but would you consider a python cgi application a good competence against php? php running as cgi you mean. Perhaps not: he's referring to deployment on really cheap hosting solutions which might support mod_php but

Re: Python v PHP: fair comparison?

2006-11-16 Thread [EMAIL PROTECTED]
Luis M. González wrote: Cameron Laird ha escrito: 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

Re: Python v PHP: fair comparison?

2006-11-16 Thread walterbyrd
Tim Chase wrote: I can't say I've come across any hosting places that serve up PHP for $10/yr either...the closest I've found is about $3.50/mo (which also provides Python CGI). dollar-hosting.net offers php5 and python 2.3, for $10 a year. the-protagonist.net has PHP 4.4 hosting for $10 a

Re: Python v PHP: fair comparison?

2006-11-16 Thread Luis M. González
[EMAIL PROTECTED] ha escrito: Luis M. González wrote: Cameron Laird ha escrito: 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

Re: Python v PHP: fair comparison?

2006-11-16 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: Huh? I've been doing paid python web work since 2000. I'm fairly sure that Yahoo! groups predates that by a while http://en.wikipedia.org/wiki/EGroups /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Luis M. González wrote: the new crop of web frameworks (Django, Turbo Gears, etc...). - Newer versions of mod_python require Apache 2.0, which few hosters have You can also get alder versions of mod_python. What's the problem? The problem is that the system requirements for django and

RE: Python v PHP: fair comparison?

2006-11-15 Thread Demel, Jeff
-Original Message- Behalf Of walterbyrd The problem is that the system requirements for django and turbogears are sky-high. I think Django requires Apache 2.0 (and maybe mod_python 3.x), and CherryPy (part of turbogears) requires Python 2.4. If you are developing for a hosted environment,

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Larry Bates wrote: I'd be surprised if there was more demand for PHP developers than Python developers. Prepare to be surprised. From what I have seen demand for PHP developers is off-the-scale higher than demand for Python developers. If you search the job boards, then -IMO- it is only fair

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Bjoern Schliessmann wrote: walterbyrd wrote: - PHP has a lower barrier to entry Which kind of barrier do you mean -- syntax, availability, ...? Putting php into a web-site is as easy as throwing some php code into a my html file, and maybe giving the file a php extension. I can get php

Re: Python v PHP: fair comparison?

2006-11-15 Thread Paul Boddie
walterbyrd wrote: The problem is that the system requirements for django and turbogears are sky-high. I think Django requires Apache 2.0 (and maybe mod_python 3.x), and CherryPy (part of turbogears) requires Python 2.4. If you are developing for a hosted environment, this can be a big

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Michael Torrie wrote: Absolutely false. Most of my standalone, command-line scripts for manipulating my unix users in LDAP are written in PHP, although we're rewriting them in python. I would say that you are one of very few who use PHP for sys-admin tasks - and even you have switched to

Re: Python v PHP: fair comparison?

2006-11-15 Thread Andy Dingley
walterbyrd wrote: I don't know if this is a fair comparison or not. Who cares? Anything involving PHP is a billion flies can't be wrong type of statement. I agree completely with your observation about PHP's lower cost of access. This is ostensibly a good thing, but it also means that every

Re: Python v PHP: fair comparison?

2006-11-15 Thread James Cunningham
On 2006-11-15 10:47:07 -0500, Demel, Jeff [EMAIL PROTECTED] said: [...] That's true, but I was lucky enough to find webfaction.com for python hosting, including Django. Good prices and they know Python. I think they used to be python-hosting.com or something. -Jeff Dirt-cheap

Re: Python v PHP: fair comparison?

2006-11-15 Thread tobiah
to cherrypy. Anyway, even though not all web hosters have a reasonable python web framework installed, they will almost certainly allow you to run python programs. The PHP might eventually boil down to simple function calls that get content from the back end. Let python do all the work: ?php

Re: Python v PHP: fair comparison?

2006-11-15 Thread Luis M. González
walterbyrd ha escrito: Luis M. González wrote: the new crop of web frameworks (Django, Turbo Gears, etc...). - Newer versions of mod_python require Apache 2.0, which few hosters have You can also get alder versions of mod_python. What's the problem? The problem is that the

Re: Python v PHP: fair comparison?

2006-11-15 Thread Bruno Desthuilliers
walterbyrd a écrit : Bjoern Schliessmann wrote: walterbyrd wrote: - PHP has a lower barrier to entry Which kind of barrier do you mean -- syntax, availability, ...? Putting php into a web-site is as easy as throwing some php code into a my html file, and maybe giving the file a php

Re: Python v PHP: fair comparison?

2006-11-15 Thread Bruno Desthuilliers
walterbyrd a écrit : Larry Bates wrote: I'd be surprised if there was more demand for PHP developers than Python developers. Prepare to be surprised. From what I have seen demand for PHP developers is off-the-scale higher than demand for Python developers. Anyone that knows how

Re: Python v PHP: fair comparison?

2006-11-15 Thread Bruno Desthuilliers
Michael Torrie a écrit : On Tue, 2006-11-14 at 18:55 -0800, Luis M. González wrote: - Python is more readable, and more general purpose Yes, php is only for web. Absolutely false. From a purely technical POV, you're of course right. But PHP has been hacked (nobody in it's own mind

Re: Python v PHP: fair comparison?

2006-11-15 Thread Bruno Desthuilliers
walterbyrd a écrit : Michael Torrie wrote: Absolutely false. Most of my standalone, command-line scripts for manipulating my unix users in LDAP are written in PHP, although we're rewriting them in python. I would say that you are one of very few who use PHP for sys-admin tasks - and

Re: Python v PHP: fair comparison?

2006-11-15 Thread Bruno Desthuilliers
walterbyrd a écrit : Luis M. González wrote: the new crop of web frameworks (Django, Turbo Gears, etc...). - Newer versions of mod_python require Apache 2.0, which few hosters have You can also get alder versions of mod_python. What's the problem? The problem is that the system

Re: Python v PHP: fair comparison?

2006-11-15 Thread Carl Banks
walterbyrd wrote: Trying to be as fair as I can be, my research shows that demand for developers where PHP is the primary is *far* higher than jobs where Python is the primary skills. Probably because PHP is so bug-prone and man-inefficient that a small website occupies a programmer's whole

Re: Python v PHP: fair comparison?

2006-11-15 Thread Gabriel Genellina
At Wednesday 15/11/2006 21:28, Bruno Desthuilliers wrote: Michael Torrie a écrit : On Tue, 2006-11-14 at 18:55 -0800, Luis M. González wrote: - Python is more readable, and more general purpose Yes, php is only for web. Absolutely false. From a purely technical POV, you're of

RE: Python v PHP: fair comparison?

2006-11-15 Thread bruce
PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Bruno Desthuilliers Sent: Wednesday, November 15, 2006 4:35 PM To: python-list@python.org Subject: Re: Python v PHP: fair comparison? walterbyrd a écrit : Michael Torrie wrote: Absolutely false. Most of my standalone, command-line scripts

RE: Python v PHP: fair comparison?

2006-11-15 Thread Gabriel Genellina
At Wednesday 15/11/2006 22:11, bruce wrote: interesting ongoing thread... i've seen a number of these over the years.. my language is better than your language!! i'm sure this question on the php list would have findings/results that are essentially opposite of what is being discussed here!

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
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. C'mon, let's be serious. I just ordered a dedibox - a small dedicated

Re: Python v PHP: fair comparison?

2006-11-15 Thread walterbyrd
Gabriel Genellina wrote: - php sucks :) I think that it's such a braindead language which turns people into braindead programmers :) In fairness, a lot of very serious work is done in PHP. I think yahoo and other major web-sites use php. I have issues with PHP as well. They will break

Re: Python v PHP: fair comparison?

2006-11-15 Thread Cameron Laird
In article [EMAIL PROTECTED], Luis M. González [EMAIL PROTECTED] wrote: . . . 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

RE: Python v PHP: fair comparison?

2006-11-15 Thread bruce
:[EMAIL PROTECTED] Behalf Of Bruno Desthuilliers Sent: Wednesday, November 15, 2006 3:46 PM To: python-list@python.org Subject: Re: Python v PHP: fair comparison? walterbyrd a écrit : Bjoern Schliessmann wrote: walterbyrd wrote: - PHP has a lower barrier to entry Which kind of barrier do you mean

Re: Python v PHP: fair comparison?

2006-11-15 Thread James Cunningham
On 2006-11-15 20:59:26 -0500, walterbyrd [EMAIL PROTECTED] said: 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

Python v PHP: fair comparison?

2006-11-14 Thread walterbyrd
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

Re: Python v PHP: fair comparison?

2006-11-14 Thread Bjoern Schliessmann
walterbyrd wrote: - PHP has a lower barrier to entry Which kind of barrier do you mean -- syntax, availability, ...? Also from what I know of PHP, language and API seem more unstable and inhomogenous. CMIIW. Regards, Björn -- BOFH excuse #219: Recursivity. Call back if it happens again.

Re: Python v PHP: fair comparison?

2006-11-14 Thread Larry Bates
walterbyrd wrote: 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

Re: Python v PHP: fair comparison?

2006-11-14 Thread martdi
I'd be surprised if there was more demand for PHP developers than Python developers. Google lists 51 PHP jobs and 168 Python jobs in their internal jobs database (I just did a quick search). Yes, but Google is the company that hired Guido, and that does most of it's dev in python. Looking

Re: Python v PHP: fair comparison?

2006-11-14 Thread Olexandr Melnyk
will tell me that it can be used that way ;-).Yes,itcan. I'd be surprised if there was more demand for PHP developers than Python developers.Google lists 51 PHP jobs and 168 Python jobs in their internal jobs database (I just did a quick search). Yes, but Google is the company that hired Guido

Re: Python v PHP: fair comparison?

2006-11-14 Thread Luis M. González
has a lower barrier to entry I don't think it is any easier than python. Not even to begin with. - Most inexpensive web-hosters support PHP, but not Python Sad but true. - PHP has far more pre-writen scripts available For web projects, perhaps. But I'm sure you can do everything better

Re: Python v PHP: fair comparison?

2006-11-14 Thread Michael Torrie
anything you may want to do. - PHP has awful backward compatibility Yes. And it's also an ugly language to work with. - PHP has a lower barrier to entry I don't think it is any easier than python. Not even to begin with. - Most inexpensive web-hosters support PHP, but not Python

Re: Python v PHP: fair comparison?

2006-11-14 Thread Luis M. González
Yes, php is only for web. Absolutely false. Most of my standalone, command-line scripts for manipulating my unix users in LDAP are written in PHP, although we're rewriting them in python. Although I can't think of a single app written in php that's not web- based (other than standalone

Re: Python v PHP: fair comparison?

2006-11-14 Thread Hendrik van Rooyen
Olexandr Melnyk wrote: PHP has a lower barrier to entry I don't think so. Python has more intuitive syntax for beginners and is one of the best choices for the first programming language to pick up. I second this - before discovering Python (in a GSM module's guts) - I was being steered in

Re: Python to PHP Login System (HTTP Post)

2006-06-24 Thread test
On Sat, 24 Jun 2006 01:28:29 GMT, [EMAIL PROTECTED] (John J. Lee) wrote: [EMAIL PROTECTED] writes: On 22 Jun 2006 16:19:50 -0700, Justin Azoff [EMAIL PROTECTED] wrote: Jeethu Rao wrote: You need to use httplib. http://docs.python.org/lib/httplib-examples.html Jeethu Rao Not at

Re: Python to PHP Login System (HTTP Post)

2006-06-24 Thread John J. Lee
[EMAIL PROTECTED] (John J. Lee) writes: [...] #--- import mechanize SHOW_COOKIES = True br = mechanize.Browser() if SHOW_COOKIES: cj = mechanize.CookieJar() br.set_cookiejar(cj) br.open(http://www.magnetshare.com/main.php;) br.select_form(nr=0)

Re: Python to PHP Login System (HTTP Post)

2006-06-23 Thread John J. Lee
[EMAIL PROTECTED] writes: On 22 Jun 2006 16:19:50 -0700, Justin Azoff [EMAIL PROTECTED] wrote: Jeethu Rao wrote: You need to use httplib. http://docs.python.org/lib/httplib-examples.html Jeethu Rao Not at all. They need to read the documentation for urrlib:

  1   2   >