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 20
  1. #1
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help Running My Code

    Hello Fellow Coders,

    I am currently learning php, but how do i run the code i wrote. as i use dial up and i don't have a web host i want to run the script on my computer. is there like a virtual work space that i can download.

    AJW06

    what do you think of my new computer that i am building.

    Motherboard:MSI K9N SLI Platinum
    CPU (Central Processing Unit):AMD Athlon 64 X2 4200+
    HDD (Hard Drive Device):Maxtor DiamondMax 21 - 200GB
    Memory:1 GB DDR II SDRAM

  • #2
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    You need Apache (web server) and MySQL (for data bases) running on your computer. The easest way is to download and install the phpdev423 11.5mb package from: http://www.firepages.com.au/

    It's not running the latest php and mysql but it's perfect for 95% of any PHP coding you may want to do. What it comes with:

    * apache 1.3.27
    * php4.2.3
    * MySQL4
    * phpmyadmin 2.3.2
    * Invision Board
    * PhpWebsite
    Last edited by Len Whistler; 01-25-2007 at 08:43 PM.
    Leonard Whistler

  • #3
    New Coder
    Join Date
    Jan 2007
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My approach has been to install the apache web server and php on my desktop computer. Runs under most operating systems and is a good way to emulate a hosting environment while you are developing.

    Downloads and instructions are available here:
    http://apache.org/
    http://www.php.net/
    And if you want the database part:
    http://mysql.org/

    I have friends that complain about running a server in the background because it makes their games lag, but I can't speak to that because I am not much of a gamer.

    EDIT:
    I'm sorry, I could have given you better links.

    http://httpd.apache.org/
    http://www.php.net/downloads.php
    Last edited by Arragon; 01-25-2007 at 09:12 PM.

  • #4
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts
    once onto the apache and php website what is it i am downloading, once installed what does it do?

  • #5
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Quote Originally Posted by AJW06 View Post
    once onto the apache and php website what is it i am downloading, once installed what does it do?
    Click on phpdev bundles , I can't post a direct link, and download the package I mentioned. Then install like any other software package, it will then be ready to use with Win 98 or XP.
    Leonard Whistler

  • #6
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    I can only say good things about XAMPP as well:
    http://www.apachefriends.org/en/xampp.html

  • #7
    Super Moderator JohnDubya's Avatar
    Join Date
    Nov 2006
    Location
    Missouri
    Posts
    634
    Thanks
    12
    Thanked 18 Times in 18 Posts
    I couldn't agree more with Brando. I'm currently using XAMPP on my computer to do local tests and development work. It's great for learning PHP and MySQL because immediately when you save your pages, they are available to view, since they are on your computer. It's a bit difficult at times if you are trying to mess with admin features of Apache and MySQL, but as long as you just keep it as it is out of the box, you should be fine.

    Be careful if your computer is connected to the Internet...because anyone who knows your IP address can access an unprotected Apache/MySQL server.

  • #8
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    I just installed the php, mysql package that Brandoe85 recommended. It's excellent and has updated versions of php and mysql.

    I'm glad I saw this post or else I would still be using phpdev423.
    Leonard Whistler

  • #9
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i am downloading the top link on the php websites guess thats right, not sure what it means by the sub menu below windows binaries. also downloading lastest apache thats was called win32 tell me if either is not wrong. i am using xp. once dowloaded them what do i do.

  • #10
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts
    once i have dowloaded the things on the php and apache website what do i do

  • #11
    New Coder
    Join Date
    Jan 2007
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    When I posted my links I was unaware of the XAMPP bundle mentioned above. This looks like a good thing for you to get started with and others here are giving it good reviews. If you want something easy to get started with, go there.

    Downloading and configuring each component separately is a good choice if you are intent on learning and growing professional web dev skills. Doing it this way you can find answers to deeper questions such as: How does the internet work? What does PHP do really? How do databases connect to web pages? And other profound mysteries of strong web-fu. But be advised, this is more challenging and you will be required to do much reading and understanding with very little hand holding if you follow this path. Your next step is to follow the links labled 'documentation'.
    Last edited by Arragon; 01-26-2007 at 04:32 PM.

  • #12
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    If you are going to install them separate, marek_mar has a guide in his sig:
    http://a51.neostrada.pl/

  • #13
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts
    is there somthing i can download that is what i am downloading from the apache and php website but all configured

  • #14
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if i downloaded this Xampp thing does it work in the same way as if i was downloading php and apache

  • #15
    New Coder
    Join Date
    Jan 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    i agree that xampp is the best. I've been using it for while but now i got lucky with a web host and they gave me some free web space. If you're new to all of the coding, it may be a good idea to get a free webhost to experiment with it all rather that worrying with the setting up of the php/apachee server.

    Or you could just ignore me and use xampp
    woooooo!

    visit my website:
    click here!


  •  
    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
    •