Loading...
  1. Dismiss Notice
  2. Dismiss Notice
  3. Dismiss Notice
  4. Dismiss Notice
  5. If this is your first visit, you may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

[Guide] How to start programming a website using PHP

Discussion in 'Programming Lounge' started by Dunamis, Jul 3, 2011.

Thread Status:
Not open for further replies.
  1. Dunamis

    Dunamis Awesome Member

    Joined:
    Aug 16, 2010
    Messages:
    403
    Likes Received:
    243
    Trophy Points:
    298
    Knowledge you must have before:
    *HTML
    *CSS ~Recommended.
    *MySQL ~For DB management.

    If you already know the above, or some of it and you wonder, where to begin this is why i'm writing this :p

    First you need an environment that can run PHP, it's supported natively on both Windows and Linux.
    I'll explain the simplest way to start using PHP on windows.

    Using an all-in-one pack which is called XAMPP, that contains PHP/MYSQL/FTP and much more in just one simple install.
    you can download it from here:
    apache friends - xampp
    after you're done installing it, go to the xampp folder (default is c:\xampp) and start 'xampp-control'
    you'll see a few options there, the one you'll need for now is 'Apache' (Mysql too later on when you'll start working with databases.)

    This is how it should look if everything is alright (notice that i have MySQL turned on but you aren't required to do so at this point.)

    [​IMG]

    If everything is in place, now go to the 'htdocs' folder, delete everything in it.
    In that folder you will place your PHP files, you can start by making a file and naming it 'index.php'
    Now in order to edit PHP files you can use any editor you like, even the simple windows notepad,
    but i personally recommend using 'Notepad++'
    You can download it from here:
    Notepad++ | 5.9.2

    after you choose which editor you want to use, open the index.php file.
    Now to test that everything works, write in it:

    PHP:
    <?php
    print "Hello World!";
    ?>
    and save.
    now to see if it works, visit http://127.0.0.1/index.php (This is your local IP address)
    if it works and you see 'Hello World!', Great! if not you probably done something wrong, check the guide again.
    if you want to show others the link to the website you'll need to use you're external IP address,
    You can find it by visiting this site:
    What Is My IP Address - Shows Your IP Address
    If you have any questions, feel free to ask. :p
     
    Last edited: Jul 3, 2011
    14 people like this.
  2. GianFranco

    GianFranco GamezNetwork Forum Legend

    Joined:
    May 2, 2010
    Messages:
    1,069
    Likes Received:
    78
    Trophy Points:
    268
    Location:
    Buenos Aires
    nice... xampp is not the only program with that performance , appserv works fine too..
     
  3. pinkfx

    pinkfx Expert

    Joined:
    Sep 26, 2010
    Messages:
    889
    Likes Received:
    62
    Trophy Points:
    0
    Location:
    in my lunchbox
    it would benefit you more if u were to learn the languages yourself.. html is basic form of website development and css is management of webpages..
     
  4. Dunamis

    Dunamis Awesome Member

    Joined:
    Aug 16, 2010
    Messages:
    403
    Likes Received:
    243
    Trophy Points:
    298
    I know, there are many other packs that do that, i also know of EasyPHP, i just picked one that i personally use.
    HTML and CSS is a requirement for PHP, so is MySQL and some JS could be nice too.
    and this forum is for teaching/helping others with PHP, that's why i made this guide, if someone wants to learn it alone it's his decision.
     
  5. pinkfx

    pinkfx Expert

    Joined:
    Sep 26, 2010
    Messages:
    889
    Likes Received:
    62
    Trophy Points:
    0
    Location:
    in my lunchbox
    haha duni :p i'll leave you too it.. btw there are easier ways of doing it :)
     
  6. Dunamis

    Dunamis Awesome Member

    Joined:
    Aug 16, 2010
    Messages:
    403
    Likes Received:
    243
    Trophy Points:
    298
    like? installing apache/IIS and Mysql separately? o_O
     
  7. HellMade

    HellMade Banned Forum Legend

    Joined:
    Dec 2, 2010
    Messages:
    2,651
    Likes Received:
    1,120
    Trophy Points:
    0
    Location:
    Hell
    not completed guide .
     
  8. pinkfx

    pinkfx Expert

    Joined:
    Sep 26, 2010
    Messages:
    889
    Likes Received:
    62
    Trophy Points:
    0
    Location:
    in my lunchbox
    i'm not a website developer ;) i have no interest in it just know a couple of things ;P
     
  9. Dunamis

    Dunamis Awesome Member

    Joined:
    Aug 16, 2010
    Messages:
    403
    Likes Received:
    243
    Trophy Points:
    298
    Would you care to complete it?

    I Don't see what's not completed about it since all it suppose to guide you is on how to be able to start programming, which it does.
     
  10. HellMade

    HellMade Banned Forum Legend

    Joined:
    Dec 2, 2010
    Messages:
    2,651
    Likes Received:
    1,120
    Trophy Points:
    0
    Location:
    Hell
    if its would be MINE I would , since its not I WONT. kapis ?
     
  11. Dunamis

    Dunamis Awesome Member

    Joined:
    Aug 16, 2010
    Messages:
    403
    Likes Received:
    243
    Trophy Points:
    298
    so you just made your response for what? spam?
    it's like i'll email google that i can do better.
     
  12. pinkfx

    pinkfx Expert

    Joined:
    Sep 26, 2010
    Messages:
    889
    Likes Received:
    62
    Trophy Points:
    0
    Location:
    in my lunchbox
    Dunamis is jus trying to help, please lay off him :)
     
    2 people like this.
  13. HellMade

    HellMade Banned Forum Legend

    Joined:
    Dec 2, 2010
    Messages:
    2,651
    Likes Received:
    1,120
    Trophy Points:
    0
    Location:
    Hell
    if so, nothing about port forwarding. duh , without that most of people who would try its would not work.
     
  14. Dunamis

    Dunamis Awesome Member

    Joined:
    Aug 16, 2010
    Messages:
    403
    Likes Received:
    243
    Trophy Points:
    298
    I Installed it both on my laptop and on PC without any need to do anything besides click 'unblock' in the Windows firewall popup.
    If someone has it's own personal firewall it's his job to know how to deal with it.
     
    2 people like this.
  15. HellMade

    HellMade Banned Forum Legend

    Joined:
    Dec 2, 2010
    Messages:
    2,651
    Likes Received:
    1,120
    Trophy Points:
    0
    Location:
    Hell
    because you was no need to, thats doenst mean for other will be same.
     
  16. Dunamis

    Dunamis Awesome Member

    Joined:
    Aug 16, 2010
    Messages:
    403
    Likes Received:
    243
    Trophy Points:
    298
    What's so different in my OS and others?
    only difference with others is their own port blocking software, which means if they don't have an external firewall installed they won't have to do anything.
    I Honestly don't think that even an external firewall should interfere but w/e.

    Edit:

    Also, i'm wondering if you really do know anything about PHP or you just decided to criticize my guide on a personal base.
     
  17. GianFranco

    GianFranco GamezNetwork Forum Legend

    Joined:
    May 2, 2010
    Messages:
    1,069
    Likes Received:
    78
    Trophy Points:
    268
    Location:
    Buenos Aires
    i think , if you put this guide , maybe you must put how to open the port 80 ( public page or project ,with no-ip sistem).
     
  18. chicotte

    chicotte Well-Known Member Forum Legend

    Joined:
    Jul 9, 2010
    Messages:
    1,573
    Likes Received:
    156
    Trophy Points:
    283
    Yo dawg if you ain't gonna say something productive just don't post at all, if you think there's something missing then post it. There's no need of douchebaggery.

    Anyways duna nice post even though I know nothing about this kind of things.
     
    2 people like this.
  19. HellMade

    HellMade Banned Forum Legend

    Joined:
    Dec 2, 2010
    Messages:
    2,651
    Likes Received:
    1,120
    Trophy Points:
    0
    Location:
    Hell

    port forwarding is not OS based... facepalm . you need open ports of router-modem, if you wanna others would see ur website and sometimes you just cant view be ur self if ports arent opened. also dont be mad, and dont tell to mods to infract me for nothing .

    if you dont know , dont say im posting shit.
     
  20. Dunamis

    Dunamis Awesome Member

    Joined:
    Aug 16, 2010
    Messages:
    403
    Likes Received:
    243
    Trophy Points:
    298
    I don't need to tell anyone to infract you, i can do it myself.

    right, port forwarding is based on routers and modems, i'm sorry that i didn't make a guide for port forwarding rather than a guide on how to use PHP.
    you're more than welcome to do so yourself, would be much more productive than posting useless posts in my thread.

    Edit:
    also, next time i'd want to make a guide about let's say, PHP functions, i'll also specify how to setup a video card, without it you won't see anything on your screen, can't do anything without it. -_-
     
Thread Status:
Not open for further replies.

Share This Page