Virtual pets and Sim games community

Would you like to become a member of the most successful virtual pets and sim games community on the internet today? We've been opened since 2011 and since then, we've been providing web game developers, artists, players and writers with the most relevant, up to date, quality and in depth content covering the entire online browser based games industry. So, if you virtual pet games, game development or online sims, our forum is perfect for you. Our sneak peeks forum is designed for new owners to showchase their upcoming in dev games.

Discuss online pet game management or developing a sim game.

  1. An upcoming virtual pet site that's owned by one of our moderators, Pepper-headIn icey them pet game Kaylune, a virtual pet site Breed online pet
    VigLink badge
    Novilar opening up for beta September 16 - Beastkeeper
    Gaming Reinvented

    breed horses on this very active sim game

    Browse our Online Games Directory
    Promote VPL - advertise here
    Admin and webmasters community - Browser games
    $300 posting contest ends on October 14th



Learning PHP.. yay me.

Discussion in 'Programming General' started by BigThinker, Sep 1, 2011.

  1. I am teaching myself PHP via unlimited resources online.

    I don't need any help with coding (because somehow, I am understanding the concepts) but I do need help with ONE thing.

    How do I program my entire site on my computer? I have my domain on greengeeks but I want to code everything on my computer so I don't get jumbled up with all the crap that's on there. I have no idea what I'm looking at!

    So, firstly, how do I code PHP and view PHP/HTML on my computer and secondly, when I get to MySQL, how do I do the same with that?

    Thanks.
     
    Your banner/button can be located here for an entire month or year, please see our advertising on virtualpetlist thread for more information.

  2. Perhaps you should understand the concepts of a web server before going straight into PHP...?

    Just my two cents.

    NBS
     
  3. Hmm, good idea. I'll do that first, then. Any source suggestions?
     
  4. Apache is the most commonly used web server, so I'll recommend that for you (though I personally use nginx).

    There are bundles out there that include the server, PHP, and MySQL. It depends what OS though. Windows? Look at XAMPP.

    NBS
     
  5. Alright, I downloaded and installed WAMP and now I need some help.

    I coded some stuff in PHP (not learning MySQL just yet). I am working on the registration page, and there's a submit button. For some reason, sometimes the submit button brings me to the output page but sometimes it doesn't. When it doesn't, I'll click on the submit button and a download window appears. Why?? Does this mean that there is something wrong with the coding or is this a weird funky weirdy-thing?
     
  6. Are you trying to access the page through file:// or through localhost? If you are doing it through file:// your browser doesn't know how to display a .php file, so it asks you to download it.

    I idle on the PHPFreaks IRC channel daily so stop by and more direct conversations can be had.

    ~judda
     
  7. The thing starts at localhost.
     
  8. The first file, is it .php? If not, then what happens if you make it .php, will it force you to download the file or will it run the PHP code?

    If it forces you to download, is the server set up to run PHP files?

    ~judda
     
  9. @BigThinkerBigThinker, You have to start Apache, if you haven't already done so.

    Still, I recommend XAMPP... it seems WAMP was last updated last year. I can help you if you use XAMPP. It has an easy GUI to enable the services you need.

    Good luck.

    NBS
     
    #10 nobackseat, Sep 5, 2011
    Last edited by a moderator: Oct 16, 2013
  10. The first file is .php and the second file is also .php

    I started over and started from scratch. I think an error in the coding is what was coding it. I keep jumping ahead of myself. Trying to learn how to do something in two days that some people take months to learn. :-|
     
  11. Do you have error reporting enabled? If yes, then it should show you the errors that are coming.

    As I said, the PHPFreaks IRC channel is a great place for people to learn because there are people always willing to help even with what may seem to be the stupidest of questions.

    ~judda
     
  12. alright, ill get the irc chat. :)

    i am just so basic right now that I am learning how to program information and to have it read back to me. I can't even imagine how or where to start when coding the actual site. :D
     
  13. It all comes with time :)

    ~judda
     
  14. @nobackseatnobackseat, I just downloaded the XAMPP. I'll keep this program on the comp but I think WAMP is more user (more like N00BISH) friendly, at least for me. :-|
     
    #15 BigThinker, Sep 6, 2011
    Last edited by a moderator: Oct 16, 2013
  15. Never mind!
     
    #16 BigThinker, Sep 6, 2011
    Last edited: Sep 6, 2011
  16. I'm learning stuff! Slowly, but surely.

    Right now I'm working on signing up and entering stuff into the database.

    After finishing the sign up page, what should I work on next? I obviously cant work on any games just yet!
     
  17. You should work on the login after a sign up page. :) Let me know if you have any questions. We can exchange messengers if you want.
     
  18. Will do. This whole thing is over whelming. I tend to jump ahead of myself every five minutes (oh! I learned this, now I can do that.. NOT!!) so I keep having to pull myself back, but I will definitely contact you if I need help. Thank you!!
     
  19. Well at least you're still sticking at it, which is a good sign :p A lot of people tend to just think programming will be magically simple to do after a few tutorials :p
     

Share This Page

  • About VPL, the #1 forum for pet sites, and online sims

    We are an online community of passionate artists, writers, programmers and general users who have a vested interest in virtual pet games & sim games. Everyone on our forum are from different backgrounds and yet we group together with one goal, to ensure our pet games and sims forum is one of the best!
  • Like VPL on Facebook!

  • Support VPL

    If you love our community and you'd like to help us cover our monthly costs, we'd greatly appreciate it if you could help us out by supporting us! If you can't donate, we totally understand. You can also support us by using our social media sharing buttons or by writing about us on other sites.

    Donate to VPL!