View Full Version : new to ssl

09-02-2002, 12:25 AM

i have been working with client side development for a while now
and was thinking about learning sever side language and was wondering if anyone could tell me which one would be the best for a newcomer and if possible give me references to some information on the subject.

any help would be nice thank for your time.


stupid should hurt!

09-02-2002, 09:45 AM
lol... maybe the first thing to learn is the meaning of the "SSL" in the title of this thread. It stands for Secure Sockets Layer. A protocol for sending encrypted data over the net.

09-02-2002, 09:21 PM
Excuse me for my mistake i'll rephrase

Could someone tell me what would be a good sever side development language for a begginer to start with.

There is that better!!

09-02-2002, 11:04 PM
What I meant was, when people see "new to ssl" as the name of this thread they don't think of "server side language" and may not read your post.

You could learn Perl, is installed on most servers, just like PHP. And there's ASP - Windows only.

09-02-2002, 11:13 PM
Thanks for the info but i have heard from many people that perl
is out of date and slow and to learn ASP, PHP or SQL. Whats the difference between em? Or can they all pretty much peform the same function and bound to the same limitations? Sorry if that sound like a stupid question but i dont want to go out and by books for all of them. So id like to find out the pros and cons between them before running into the jungle.

Thanks much 4 your help!


Stupid Should Hurt!

09-02-2002, 11:43 PM
As I said, ASP is Windows servers only. Perl may be out of date but is everywhere.
MySQL is not a language but a database with its own language. Often used together with a PHP website. From the PHP website you can send SQL statements to the database. I think learning PHP is a good choice.
<? Actually, I think I'm gonna learn it myself :)

09-02-2002, 11:48 PM
Take this very page for example it is named with a .php
extension but when i look at the source it just looks like html
is that because the php runs on the sever. But then how is it that the html page activates the script. Php is a scripting language correct like javascript so it must be triggered?

09-03-2002, 03:51 AM
The Apache webserver that runs this site is configured so that when someone asks for a .PHP page it passes the contents of whatever.php (which is a mix of PHP script and HTML) to the PHP parser which processes the PHP portions of the script and outputs HTML from that.

so with the following PHP script ...

echo "Hello number $x <br />";

PHP sees that it has to echo to screen Hello number $x 10 times and produces the following output ..

Hello number 1
Hello number 2
Hello number 3
Hello number 4
Hello number 5
Hello number 6
Hello number 7
Hello number 8
Hello number 9
Hello number 10

so you never get to see the actual PHP code as it never leaves the server, only the output of the script is passed to your browser unlike javascript which you can see in your source

the same is almost true for PERL/ASP/JSP/CFM/etc with each being handled slightly differently (soe would say less efficiently ;)) at the server end , the result though is always HTML.

09-03-2002, 05:33 AM
Ok i understand how it works now but do I need to start over on all my webpages. I dought it is possible to place Jascript in a PHP unless its after it outputs it as HTML. Then would it be possible to rewrite all of my Javascript in PHP? Can PHP do everything that Javascript can do?and how might i go about that?

much thanks

09-03-2002, 05:50 AM
No PHP cant do everything javascript can, and javascript cannot do what php can do.

Javascript can not touch the serverside as it is executed in the browser itself. The opposite is true for php, it is executed on the server and doesnt leave it.

So for instance you would not see a DHTML effect written in php and you would not write a file on the server with javascript.

But you can however influence the javascript on the clientside with php. Though please do not misunderstand me it does not do anything once the page is sent, but you can do something like setting the variable, or conditionally writing out part of the javascript.

Here is an example of what I mean

blah=new Array()
$x=array('apples', 'oranges', 'bannanas');
echo "blah[$i]=\"".$x[$i]."\"\n"

would produce:

blah=new Array()

I appologize if there are any errors there I typed it on the fly. One language does not replace the other, but if you use both you can pull off some really good things :)

09-03-2002, 06:39 AM
So in other words im screwed i cant use my present Javascript
on my PHP pages that sux. But i can rewrite my scripts in PHP.
Well ill be busy for the next year yahhhh!!

09-03-2002, 07:07 AM
sorry if I was unclear, you can use your javascript. the php will not effect it and the javascript will not effect your javascript. they execute in 2 different locations.

I was trying to give an example how you can use php to set javascript variables :) but, unless you are doing things with javascript that you can do easier with php, leave your pages as is.

There are some things that you can do with php, but everything has to be done before the page leaves the server, which in many cases is not what you want