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.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: Futile!!!

  1. #1
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post

    Futile!!!

    Today is a sad day for the Gates Empire.

    After a lot of thought, I'm ditching ASP to start into PHP.
    I've come to realise that ASP hosting is just to expensive, and furthermore if I want the same functiuality of PHP I have to move to ASP.NET which is even more expensive.

    Although until I have the same level of skill all new clients (if I even get any...ever) will be developed in ASP.

    Ok, now I've got some webspace over at Krycek's ithium.net, I will without a doubt be signing up with ithium when he gets it all up and runnning.

    Anything I should know before I really dive into this? I have PHP-Dev by the way .
    Omnis mico antequam dominus Spookster!

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    577
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <?php
    phpinfo();
    ?>

    the useful one - will output all the particulars of your build that you need to know.

    the main other thing to keep in mind is that recent builds have register_globals set to OFF in the .ini which means you need to access environment variables in a different manner to most tutorials (the older ones certainly)

    form posted variables
    $_POST['variable_name'];

    url / form getted variables - eg a.php?id=7
    $_GET['id'];

    server variables - eg $php_self
    $_SERVER['PHP_SELF']; all uppercase

    $_COOKIE['var_name'];
    $_SESSION['var_name'];

    remember to encase the index in quotes - single or double will do - I prefer single.

    PS - welcome to PHP, you'll never regret your choice
    Ökii - formerly pootergeist
    teckis - take your time and it'll save you time.

  • #3
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Kewl, thanks for the info
    And from what I've seen I don't think that I will regret it!
    Omnis mico antequam dominus Spookster!

  • #4
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    welcome to the light
    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)

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm ditching server-side scripting almost completely, moving instead to functional programming in XSL.

    No more data/process/layout mish mash

    (sorry if this is OT ... but it seemed relevant to a thread about why moving from one language to another is a good idea)
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #6
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    I may dable in a bit of that next holidays.

    [edit:]I'm gainin' on ya Bro!
    Omnis mico antequam dominus Spookster!

  • #7
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I dont know at what level you are at now, but I would start by making forms that add data to a database and go from there.

    Look at examples of existing code and see how its done...


    Welcome to the light

    Nice one

  • #8
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Yeah, that's what I plan on doing today.
    It's not to different, it's still asp just different syntax, more control and a heck of a lot more grunt.
    Omnis mico antequam dominus Spookster!

  • #9
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I made the same switch about 2 weeks ago.

    My advice: search this forum . It solved most of my questions. Only the register_globals thing keept me awake for a few hours (i wrote my furst stuff in an older version ...)
    www.php.net is my other lifesaver.

    Only thing i'm having problems with is maintaining state through sessions. ASP's session object is really handy, but it's a small loss compared to some real usefull functions (on db-interaction; building PDF, images, XML, ...)

  • #10
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Yeah, I've been searching the forum for around an hour and everything I need to know is right here. .. not like the ASP forum, people only ever seem to request code in there.
    Omnis mico antequam dominus Spookster!

  • #11
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ASP is even easier to learn and you can do quite impressive stuff after a few days. So I think it's normal that there are more beginners over there. In fact, there are less coders and more "i wanna create a web-thingy" over there

    Not only beginners though.

  • #12
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Yeah, if you look back at some of my original posts you can see the difference between me being helped and me helping was around 2 weeks.

    The structure of ASP is very easy to learn, and although powerful I'm finding as I've been told by many that PHP is just so much more. . . And I'm finding that already.

    For instance, file uploads. Mostly for ASP you need a component although I did find a class for it, it was huge .. It's just a few lines for PHP..
    Omnis mico antequam dominus Spookster!

  • #13
    Regular Coder
    Join Date
    Nov 2002
    Location
    Bristol, UK
    Posts
    932
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm currently messing with PHP5... it's awesome

    just wait...

    ::] krycek [::
    ithium | SOAPI | SDP | PTPScript manual
    "ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."

  • #14
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Hey Krycek!
    Hehe, will do .
    Omnis mico antequam dominus Spookster!

  • #15
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i had a little dabble with PHP a few weeks ago, i'm gonig to enventually use it to build a decent web site for a scout group/district.

    I will serously learn it in 2-3 months after my exams.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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