Jump to content


Using Python and why

python mysql php

16 replies to this topic

#1 bigjoe11a

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts
  • LocationUSA

Posted 15 January 2012 - 05:10 PM

Guys. After reading this form and watching some of the tutorials. I see no since at all for using Python. Since PHP does the job for us.

So my question is for what reason would you have to use Python.

Joe

#2 Zoopstud

    Advanced Member

  • Members
  • PipPipPip
  • 176 posts
  • LocationWales, UK

Posted 15 January 2012 - 07:33 PM

Comparing PHP and Python is like comparing JavaScript to Java. Python is a general purpose language, PHP is a scripting language.
The more you learn, the more you realize how little you know…

#3 bigjoe11a

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts
  • LocationUSA

Posted 15 January 2012 - 07:46 PM

Ok, if Python is a general purpose language, Then what good is it. How can that make any web site better. If PHP is a scripting language and every one knows this. Then where does Python come in at. Just what can Python do that PHP can't do. Or is there some thing that Python can do that PHP can't do.

#4 Zoopstud

    Advanced Member

  • Members
  • PipPipPip
  • 176 posts
  • LocationWales, UK

Posted 16 January 2012 - 04:25 AM

Python can do every thing PHP can and every thing PHP can't, Joe there is a hell of a lot more to programming than the just on thweb.
The more you learn, the more you realize how little you know…

#5 bigjoe11a

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts
  • LocationUSA

Posted 16 January 2012 - 04:29 AM

Oh, ok, that explains it then. Your saying that python is not just for web development but it's use for other languages too. So I could use it in C or C++ or even Visual C# and other programming languages. ?. I didn't know that until now. Thanks Zoo. I'll have to see if I can find some information on this.

Joe

#6 Zoopstud

    Advanced Member

  • Members
  • PipPipPip
  • 176 posts
  • LocationWales, UK

Posted 16 January 2012 - 05:40 AM

Nope python is newer and better than c++, nice analogy here http://jeetworks.org/node/103. As for C that's a lower level language, its compiled rather than interpreted.
The more you learn, the more you realize how little you know…

#7 dlantz

    Advanced Member

  • Members
  • PipPipPip
  • 62 posts
  • LocationOakland, MD

Posted 16 January 2012 - 10:44 AM

joe, like zoop is saying, python is very powerful, but like any language its only as useful as the project needs it to be - sometimes the project may not even need that kind of horse power.


you're definitely on the right track, and you should do some hello worlds with python just to see how it works and then try it just for fun.

i still prefer to use python as a script or c# as a service to take some of the weight off of php.
In my free time between 2 and 4am.

#8 bigjoe11a

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts
  • LocationUSA

Posted 16 January 2012 - 11:14 AM

Ok, well then, can you tell me just what I would use Python for. If Python is that powerfull then just what can I or should I use if for. What would be a good reason to use Python.

#9 Zoopstud

    Advanced Member

  • Members
  • PipPipPip
  • 176 posts
  • LocationWales, UK

Posted 16 January 2012 - 11:43 AM

If you have to ask that question then you don't need to use it and have no reason to use it. Ever used dropbox, or played/heard of eve online?
The more you learn, the more you realize how little you know…

#10 bigjoe11a

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts
  • LocationUSA

Posted 16 January 2012 - 03:13 PM

I have use dropbox before. What does that have to do with Python.

#11 Zoopstud

    Advanced Member

  • Members
  • PipPipPip
  • 176 posts
  • LocationWales, UK

Posted 16 January 2012 - 05:10 PM

Dropbox is written in python.
The more you learn, the more you realize how little you know…

#12 bigjoe11a

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts
  • LocationUSA

Posted 16 January 2012 - 05:53 PM

Oh, ok, Thanks Zoo!, I'll have to try playing a round with Python. as soon as I can get some of this other crap working.

#13 bigjoe11a

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts
  • LocationUSA

Posted 16 January 2012 - 09:57 PM

Can some one tell me how I would excute a python program in PHP. Since it was a program. I thought of using exec() and that doesn't seem to do any thing. So can some one tell me how to run a python program.

#14 Zoopstud

    Advanced Member

  • Members
  • PipPipPip
  • 176 posts
  • LocationWales, UK

Posted 17 January 2012 - 04:42 AM

http://docs.python.o...webservers.html
The more you learn, the more you realize how little you know…

#15 bigjoe11a

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts
  • LocationUSA

Posted 17 January 2012 - 05:56 AM

Thank Zoo, It's just I don't under stand any of that. Since I'm new to python. None of it makes any since.

#16 jream

    Administrator

  • Administrators
  • 263 posts
  • LocationFlorida

Posted 04 February 2012 - 10:23 AM

Python can make GUI's, Websites, and Handle Multi-Threading (PHP Can't). It's very useful if you want to write scripts in SSH as well, it is much less code than if you were to write a PHP equivalent most of the time.

Simplicity is the ultimate sophistication. — Leonardo da Vinci


#17 bigjoe11a

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts
  • LocationUSA

Posted 04 February 2012 - 10:30 AM

hi! Jream, and thanks. How ever for the last month I been stuck on my PHP project and I haven't been able to complete the ACL part of it. and your video tutorials only give small samples of just what I can do with it. and since I not getting any more help from your board. At this time I don't know what to do.

Joe