SitePoint Sponsor

User Tag List

Results 1 to 14 of 14
  1. #1
    SitePoint Zealot
    Join Date
    May 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I test out my PHP code on my own computer?

    Anyone know?

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Install a server (Apache) and PHP
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Member
    Join Date
    Sep 2005
    Location
    Poland
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Take a look at XAMPP (apache + PHP + MySQL) - it's very easy to install and has a lot of features
    http://www.apachefriends.org/en/xampp.html.

  4. #4
    SitePoint Evangelist Andrewaclt's Avatar
    Join Date
    Dec 2003
    Location
    Raleigh, NC
    Posts
    535
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or use something like Zend Studio, but that's not a free solution.

  5. #5
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,443
    Mentioned
    82 Post(s)
    Tagged
    3 Thread(s)
    I use XAMPP as well; there are loads of different versions so you can match whats on my server.

    I was told you can run php directly on Linux but I have not looked into that. It may depend on how you installed it.

  6. #6
    derrrp
    Join Date
    Aug 2006
    Location
    earth
    Posts
    923
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've been using WAMP (for my Windows machine) with no problems. Plus it was a cinch to install.
    No, I REALLY dislike having to use Joomla.

  7. #7
    An average geek earl-grey's Avatar
    Join Date
    Mar 2005
    Location
    Ukraine
    Posts
    1,403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by crowden View Post
    I've been using WAMP (for my Windows machine) with no problems. Plus it was a cinch to install.
    Same here

  8. #8
    SitePoint Member snuffles117's Avatar
    Join Date
    Jun 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can download xampp or wamp to install PHP, MySQL, Apache on your server. No sweat! But I think it is better if you are going to install them manually so that you'll familiarize yourself with the setup of your php.ini

    there are a lot of helpful sites that discuss how to install and configure PHP/MySQL

  9. #9
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Couldnt agree more snuffles (nice name btw )
    Installing Apache, MySql and PHP on Windows isn't an impossible task so dont be afraid of it. Most of them come with windows installers to do the dirty work for you.
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  10. #10
    SitePoint Enthusiast c.norris's Avatar
    Join Date
    Jun 2007
    Location
    Butler, PA
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use wamp http://www.wampserver.com installs itself, comes with PHP, Apache, Mysql and phpmyadmin :-X good luck

  11. #11
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Rubble View Post
    I was told you can run php directly on Linux but I have not looked into that. It may depend on how you installed it.
    You are able on window as well by using the command line. If you have PHP's path to the executable set in the PATH environment variable you can run a file by typing C:\>php myphpfile.php
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  12. #12
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,443
    Mentioned
    82 Post(s)
    Tagged
    3 Thread(s)
    Thats interesting logic_earth; I will have to give it a go.

  13. #13
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    easyphp is also an option but they are upgrading their product too slowly ...but u can give a try
    www.easyphp.org

  14. #14
    SitePoint Wizard wheeler's Avatar
    Join Date
    Mar 2006
    Location
    Gold Coast, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I find myself always uploading the remote server to test things out, fortunately the server is physically about 50km away so it is virtually as fast to hit upload, and by the time I refresh my window, the file is already on the server.

    BUT if I do that with a server in the US, we are talking an extra 1-5 seconds which adds up when testing hundreds if not thousands of files a day.

    I did try to install xampp once, but failed miserably. maybe I can revisit with a bit more knowledge under my belt now (yes i'm talking to myself)
    Studiotime - Time Management for Web Developers
    to-do's, messages, invoicing, reporting - 30 day free trial!
    Thomas Multimedia Web Development


Bookmarks

Posting Permissions

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