Re: [PHP] php-cli vs python

2007-06-09 Thread Richard Lynch
On Thu, June 7, 2007 10:55 am, jose javier parra sanchez wrote:
> Hi. One big diferrence is that python can be run interactively, while
> php not. That's  a really good advantage to debug the scripts. Anyway,
> use the one you fell more comfortable.

U.

PHP has dozens of debuggers, and you can run CLI with -a to be
interactive, or with -r to run a bit of code directly.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php-cli vs python

2007-06-09 Thread Richard Lynch
I use PHP extensively for command line processing.

Why not just try it and see if it works well for you?

On Wed, June 6, 2007 5:13 pm, Abdullah Ramazanoglu wrote:
> Hello,
>
> I'm already (going to) use php for web based development. Shell
> scripting
> and compiled languages have their own places, but there's also a place
> for
> a high level scripting language. While people usually use python (for
> higher level and perl for lower level tasks) for this, I really wonder
> whether this would be worthwhile for me.
>
> I have just cursory info about python, and I'm by no means a php
> expert. So
> I can't reliably compare the two, but my rationale so far is simple:
> If
> php5, with its enhanced object oriented features and rich libraries is
> on
> par with python on the command line, then wouldn't it make better
> sense
> for me to use php for both web and cli/gui development?
>
> Nevertheless, I can't ignore the fact that people do use python almost
> exclusively for high level CLI/GUI scripting. Where's the catch?
> What's
> the top 3 killer features of python against php (and vice versa)?
>
> Any ideas, pointers, analysis, insights are most welcome. This is a
> rather
> strategical crossroads for me, and I'd very much like to make an
> informed
> decision.
>
> Thank you and kind regards.
> --
> Abdullah Ramazanoglu
> aramazan ÄT myrealbox D0T cöm
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php-cli vs python

2007-06-07 Thread Daniel Brown

On 6/7/07, jose javier parra sanchez <[EMAIL PROTECTED]> wrote:

Hi. One big diferrence is that python can be run interactively, while
php not. That's  a really good advantage to debug the scripts. Anyway,
use the one you fell more comfortable.


2007/6/7, Abdullah Ramazanoglu <[EMAIL PROTECTED]>:
> Hello,
>
> I'm already (going to) use php for web based development. Shell scripting
> and compiled languages have their own places, but there's also a place for
> a high level scripting language. While people usually use python (for
> higher level and perl for lower level tasks) for this, I really wonder
> whether this would be worthwhile for me.
>
> I have just cursory info about python, and I'm by no means a php expert. So
> I can't reliably compare the two, but my rationale so far is simple: If
> php5, with its enhanced object oriented features and rich libraries is on
> par with python on the command line, then wouldn't it make better sense
> for me to use php for both web and cli/gui development?
>
> Nevertheless, I can't ignore the fact that people do use python almost
> exclusively for high level CLI/GUI scripting. Where's the catch? What's
> the top 3 killer features of python against php (and vice versa)?
>
> Any ideas, pointers, analysis, insights are most welcome. This is a rather
> strategical crossroads for me, and I'd very much like to make an informed
> decision.
>
> Thank you and kind regards.
> --
> Abdullah Ramazanoglu
> aramazan ÄT myrealbox D0T cöm
>
> --
> 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




   My mistake I thought that's what `php -a` did.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php-cli vs python

2007-06-07 Thread jose javier parra sanchez

Hi. One big diferrence is that python can be run interactively, while
php not. That's  a really good advantage to debug the scripts. Anyway,
use the one you fell more comfortable.


2007/6/7, Abdullah Ramazanoglu <[EMAIL PROTECTED]>:

Hello,

I'm already (going to) use php for web based development. Shell scripting
and compiled languages have their own places, but there's also a place for
a high level scripting language. While people usually use python (for
higher level and perl for lower level tasks) for this, I really wonder
whether this would be worthwhile for me.

I have just cursory info about python, and I'm by no means a php expert. So
I can't reliably compare the two, but my rationale so far is simple: If
php5, with its enhanced object oriented features and rich libraries is on
par with python on the command line, then wouldn't it make better sense
for me to use php for both web and cli/gui development?

Nevertheless, I can't ignore the fact that people do use python almost
exclusively for high level CLI/GUI scripting. Where's the catch? What's
the top 3 killer features of python against php (and vice versa)?

Any ideas, pointers, analysis, insights are most welcome. This is a rather
strategical crossroads for me, and I'd very much like to make an informed
decision.

Thank you and kind regards.
--
Abdullah Ramazanoglu
aramazan ÄT myrealbox D0T cöm

--
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



Re: [PHP] php-cli vs python

2007-06-06 Thread Chris

Abdullah Ramazanoglu wrote:

Hello,

I'm already (going to) use php for web based development. Shell scripting
and compiled languages have their own places, but there's also a place for
a high level scripting language. While people usually use python (for
higher level and perl for lower level tasks) for this, I really wonder
whether this would be worthwhile for me.

I have just cursory info about python, and I'm by no means a php expert. So
I can't reliably compare the two, but my rationale so far is simple: If
php5, with its enhanced object oriented features and rich libraries is on
par with python on the command line, then wouldn't it make better sense
for me to use php for both web and cli/gui development?

Nevertheless, I can't ignore the fact that people do use python almost
exclusively for high level CLI/GUI scripting. Where's the catch? What's
the top 3 killer features of python against php (and vice versa)?

Any ideas, pointers, analysis, insights are most welcome. This is a rather
strategical crossroads for me, and I'd very much like to make an informed
decision.


If you want to have any sort of code re-use, then you're going to have 
to use php (or python) for both.


Otherwise you have to start again from scratch in python code (creating 
more places for bugs to hide and making the whole thing more complicated).


While they can access the same database, there's nothing else they can 
share.


Personally I'd stick to one or the other for the whole project, you'll 
save yourself a lot of headaches in the future.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php