D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Databases part 3

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Neil Williams wrote:
> Neil Winchurst wrote:
>> LAMP stands for Linux, Apache, Mysql and PHP, yes?
> 
> Typically, yes. Perl is another candidate.
> 
>> Or the
>> letter P could be for Perl or Python. I don't know Perl or PHP but I
>> do know Python. Is that acceptable or should I make the effort to learn
>> one of the others? And if so which one?
> 
> Certainly there are python web applications. I have no direct knowledge
> of Python but if Python can generate HTML and query a MySQL table, then
> it can perform the function of PHP in a LAMP type system. I'm fairly
> sure it can.
> 
> PHP is very easy to learn - much easier than Perl - for this kind of
> database driven web content site.
> 
>> And, since it appears that PHP is a scripting language, does it replace
>> Javascript, or is that needed too?
> 
> PHP is a server-side scripting language. Javascript is client side. i.e.
> PHP never leaves the server so it can safely access server resources
> like databases and use server security to protect the raw data.
> Javascript only runs in the web browser and is browser support is patchy
> at best. Javascript is unable to communicate with applications outside
> the browser (at least, that was the original intention, ActiveX tried to
> change that with catastrophic consequences for security).
> 
>> And, unfortunately, I don't know
>> Apache either.
> 
> You don't need to know Apache - simply upload your code to a server that
> has Apache running. If you want to run it locally, you only need to know
> how to create a local virtual host. That's just a simple tweak to
> /etc/apache2/sites-available and then make a symbolic link to that from
> /etc/apache2/sites-enabled and run apache2ctl restart.
> 
> Alternatively, just put your code in /var/www/ and view at http://localhost/
> 
>> Big sigh...... To have proper control takes a lot of
>> hard work.
> 
> Maybe, but you only have to learn things once. It gets a lot easier for
> the next site.
> 
> 

Good example of python on the web is.....




mailman, and that "just works"

- --
Neil Stone

Systems Administrator
FlashTek UK

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT d+(++) s: a-(?) C++++(--) UL++++$ P+ L+++ E- W+++ N+
o+ w--- O M PS+ Y+ PGP++ t+ 5+ X+ R+ tv+ b- DI++ D+++ G
e h--- r+++ y++++(**)
- -----END GEEK CODE BLOCK-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEqBp6z3Av8JKgzxQRApVAAJ9uBRkcbceeEneI6qaQT/shK//rjwCeM897
0uvUY/TxezN+S5YGE2iiprI=
=9+i3
-----END PGP SIGNATURE-----

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html