Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12

Thread: new to ssl

  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Location
    Sacramento, California
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    new to ssl

    Hello

    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.

    hairynugs

    stupid should hurt!
    Hairynugs


    Simple is best.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    Sacramento, California
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    You dont have to be a **** about it

    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!!
    Last edited by boxer_1; 09-03-2002 at 05:40 AM.
    Hairynugs


    Simple is best.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    Regular Coder
    Join Date
    Aug 2002
    Location
    Sacramento, California
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thank you

    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!

    Hairynugs

    Stupid Should Hurt!
    Hairynugs


    Simple is best.

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #7
    Regular Coder
    Join Date
    Aug 2002
    Location
    Sacramento, California
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    another ?

    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?
    Hairynugs


    Simple is best.

  • #8
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,108
    Thanks
    11
    Thanked 101 Times in 99 Posts
    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 ...

    PHP Code:
    <html>
    <body>
    <?
      
    for($x=1;$x<=10;$x++){
         echo 
    "Hello number $x <br />";
      }
    ?>
    </body>
    </html>
    PHP sees that it has to echo to screen Hello number $x 10 times and produces the following output ..

    Code:
    <html>
    <body>
    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
    </body>
    </html>
    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.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #9
    Regular Coder
    Join Date
    Aug 2002
    Location
    Sacramento, California
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Hairynugs


    Simple is best.

  • #10
    New Coder
    Join Date
    May 2002
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

    <script>
    blah=new Array()
    <?php
    $x=array('apples', 'oranges', 'bannanas');
    for($i=0;$i<count($x);$i++){
    echo "blah[$i]=\"".$x[$i]."\"\n"
    }
    ?>
    </script>

    would produce:

    <script>
    blah=new Array()
    blah[0]="apples"
    blah[1]="oranges"
    blah[2]="bananas"
    </script>

    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

  • #11
    Regular Coder
    Join Date
    Aug 2002
    Location
    Sacramento, California
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!!
    Hairynugs


    Simple is best.

  • #12
    New Coder
    Join Date
    May 2002
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •