1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Program that tests php scripts?

Discussion in 'Web Design & Development' started by corgwork, Jan 16, 2013.

Thread Status:
Not open for further replies.
Advertisement
  1. corgwork

    corgwork Thread Starter

    Joined:
    Jul 10, 2008
    Messages:
    106
    I want to test php scripts without turning my computer into a server.
     
  2. colinsp

    colinsp

    Joined:
    Sep 5, 2007
    Messages:
    2,256
    First Name:
    Colin
    What do you mean "without turning it into a server"?

    PHP is a server side language and so you must have PHP running before you can test a php script.

    The easiest way is with one of the bundled packages like Wampserver or Xamp.
     
  3. matthewdownloads

    matthewdownloads

    Joined:
    Dec 28, 2008
    Messages:
    249
    I think he means without having to set up a decicated server or anything complicated when he just wants to check a script works.

    Solution: Download SimpleServer, set the directory to where your PHP script is and go to http://localhost/ in your browser. Takes 2 mins to set up, rather than having to download apache/php etc and configure it.
     
  4. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    3,328
    First Name:
    Jim
    Nice link matthew:)
     
  5. matthewdownloads

    matthewdownloads

    Joined:
    Dec 28, 2008
    Messages:
    249
    Is that what the OP wanted? :)
     
  6. colinsp

    colinsp

    Joined:
    Sep 5, 2007
    Messages:
    2,256
    First Name:
    Colin
    Matthew, this is just an alternative to the 2 that I mentioned in my post. Wampserver and Xamp are exactly the same and only take 2 minutes to get running like this one you mentioned.
     
  7. matthewdownloads

    matthewdownloads

    Joined:
    Dec 28, 2008
    Messages:
    249
    Oops, didn't see that. Oh well, the more the merrier.
     
  8. corgwork

    corgwork Thread Starter

    Joined:
    Jul 10, 2008
    Messages:
    106
    thanks for the replies. I did try xampp previously and it was too confusing and also i don't like making my computer more vulnerable when i'm online.

    Is SimpleServer, simpler? and does it turn your computer into an open server?
     
  9. colinsp

    colinsp

    Joined:
    Sep 5, 2007
    Messages:
    2,256
    First Name:
    Colin
    All the programmes mentioned on this post are very similar. They create an Apache webserver with PHP and MySQL for use for testing purposes on your PC.They are not intended as webservers to deliver a website to the internet, they are intended for local use only. If so configured another PC connected to your router could have access to the Apache server BUT to connect that server to the internet so that others could access your website is not easy or its intended use. Running this does not imho make your PC more vulnerable when on-line.

    Personally I use Wampserver all the time without issue. I don't believe that any are simpler or harder than one another. I would suggest that you do some reading of the documentation with which ever one you go for they really aren't that complex.
     
  10. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - Solved Program tests
  1. OnuohaChinyereJacinta
    Replies:
    4
    Views:
    374
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1085593

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice