LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2005, 02:11 PM   #1
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Rep: Reputation: 31
How shall i program, with the enemy?


I am not a proper programmer just done bits on Visual Basic, HTML, Java script. Im currentley at university and have been put into a group to develop a basic consumer website. I had to open my mouth and defend linux based web development against 5 hardcore Windows losers. Now im expected to elad this group what languages do you think i should learn? I have chosen apache to host the site and mysql for the backend.
 
Old 02-07-2005, 02:18 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Let me be the first to tell you that you have opened up a can of worms with this one. What language you use really depends on what you need the application to do.

Since you are using Linux/Apache/MySQL your probably going to want to use one of the P languages to complete your LAMP: PHP, Perl, or Python. Each language has its own strengths but I would say PHP is probably the most widely used in terms of a LAMP architecture. Check those out and pick the one that you are most comfortable with.
 
Old 02-07-2005, 02:25 PM   #3
Phoenix2206
LQ Newbie
 
Registered: Jan 2005
Location: Kent, England
Distribution: SuSE 9.1 64 bit, FreeBSD 5.3 64 bit
Posts: 18

Rep: Reputation: 0
I do prefer Perl though.

PHP doesn't really have the feel of the languages like C, Java and Perl. But it is always preference at the end. Have a look at the syntaxes, and see which you are more comfortable with.

PHP is designed for web design, so some pieces of code are easier to write
 
Old 02-07-2005, 03:12 PM   #4
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
I have seen bits about perl and done the hello world part i actually like it, from the ideas being put together about the site, i need perl to be able to read & write to a mysql database on one apache server and be able to send that data to another apache server somewhere which could update a mysql or ms sql server, prefable secureley!!!!!

Thanx for every1s input
 
Old 02-07-2005, 03:13 PM   #5
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
How about JSP/Servlet? It runs on Windows and Linux, so the whole group should be satisfied. And since Apache Tomcat runs on both platforms, you all can code and debug on your own.
 
Old 02-07-2005, 06:24 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Perl, Apache run on both OS
If you go with Perl (my pref), lookup the CGI.pm module. The HTML stuff is avail as called subs, so you don't have to have embedded HTML, which makes it messy imho.
The Perl DBI will connect to multiple DBs, local or remote, if you use separate mysql_connect cmds;
Let me know if you want some code:
See these sites:
http://www.perl.com/pub/a/1999/10/DBI.html
http://search.cpan.org/~timb/DBI-1.45/DBI.pm
http://search.cpan.org/~rudy/DBD-mys...b/DBD/mysql.pm
http://www.perlmonks.com/
 
Old 02-08-2005, 02:01 AM   #7
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
Great stuff, thansk alot chrism01 if ts ok ill take u up on that, ill add u to my buddy list, this why i love the linux community I have just started reading up on some perl beginners stuff, perl is looking good....
 
Old 02-10-2005, 05:00 PM   #8
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
Update -

I have installed perl 5, mysql, created a table and now trying to connect to the sql table, have so far just managed to connect to it, but cannot manage to connect to it with username / password, i receive the error message : client does not support authenication protocol requested by server , consider upgrading mysql client

any ideas???

also ive been trying to connect to a txt file to read n print the text, it never works....heres the code

$file = 'C:\Documents and Settings\Administrator\Desktop\My Perl\db.txt';

open (INFILE, $file) or die "cannot open file: $!";

@my_file = <$file>;

print "Hello, $file!";
 
Old 02-11-2005, 04:06 PM   #9
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
Another problem? help someone pls......

Can't locate DBI:MYSQL.pm in @INC <@INC Contains: c/perl/lib c:/perl/site/lib

theres a lil more but thats the main error message

any ideas
 
  


Reply



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
Enemy Territory Leviathan Linux - Newbie 8 02-02-2005 08:03 PM
Enemy Territory tykkea811 Slackware 2 12-12-2004 07:31 PM
Enemy Territory the_sLiDe Linux - Games 3 10-02-2004 06:50 PM
Enemy territory BriceM Linux - Software 10 08-18-2003 08:12 PM
Enemy Territory CommieWithAPie Linux - Newbie 6 07-30-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:04 PM.

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