LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-07-2008, 10:00 PM   #1
sajro
Member
 
Registered: Jan 2008
Location: Tennessee
Distribution: Arch, Debian, Ubuntu, Puppy
Posts: 39

Rep: Reputation: 15
A couple questions about Arch servers and Python vs PHP...


I am setting up an Arch Linux server for my personal site and my band site. It will be a LAMP, but I only want one language for the P part. I am trying to decide if it will be better to use Python or PHP.

I need to make ecommerce and a simple blog/news system (two things I want to build myself for experience). So, I need to know:
  • From someone with ecommerce experience in either/both languages, how easy is it to integrate with Paypal and Credit/Debit card payments?
  • Which would be more important to get experience in? I'm thinking Python as it's quite widely used on desktop AND web, but is there another side?
  • Since *nix doesn't require the stupid file extension (replaced with the shebang line), can I setup urls to be like
    Code:
    http://arandomsite.not/shop/quadraticfunc?ran=025105
    . I have always hated file certain extensions in web URLs for some reason

Those are my important concerns. I'll probably think of some more, though.

Thanks in advance.
 
Old 03-08-2008, 02:01 AM   #2
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 142

Rep: Reputation: 32
It depends really on what you want to do. The thing to bear in mind though is that python isn't designed to be a web language while php is and because of that it easier to work with php because it does things like db integration, templating, cgi a lot better without any help and there are more web tools that work with php.

Thats not to stay however that you can't build production class sites with python, You can, if you seriously want to use python for whatever reason. I would take look a good luck at zope and plone as these take modpython and build on it to make it more productive for a web application point of view.

Finally yes you can setup urls to sensible names. Though personally I would keep the file extension as it allow you to distinguish what file types are on your web server and the add something like this in the apache config

Code:
<DocumentIndex>
*.py *.php
</DocumentIndex>
 
Old 03-08-2008, 04:02 PM   #3
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
I use both Python and PHP, but for different things. If you're looking into web stuff, especially eCommerce or blogs, you'll probably be able to find a lot more pre-written code, packages, and help for PHP.

That being said, when I load a new web server, I put PHP, Python, and Perl on it. There's no reason why you have to choose one, and it's usually helpful to have all 3 on the system - even if all of you web site is in PHP, you may want to run an administrative script in Python or Perl.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Arch Questions cheetahman Arch 3 07-05-2006 09:56 AM
questions about sound in arch linux. greythorne Arch 2 06-27-2005 07:26 AM
Apache, MySQL, PHP, a couple simple questions. The_Messiah Linux - Software 3 04-09-2005 05:17 PM
Some questions on integrating a couple simple python programs. RHLinuxGUY Programming 1 12-17-2004 12:32 PM
A couple of CGI and PHP questions amp2000 Programming 1 01-23-2003 04:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration