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.
Results 1 to 6 of 6

Thread: new to php

  1. #1
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    new to php

    hi i am a beginner who have just shifted to php..i dont know any thing about the php..do we need any software to run php or they are just executed like the javascripts...please help me i want to start php what dont know how to start ....

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    I have moved your post from the FAQ to your own thread.

    As for your question, yes you need special software installed to run PHP. You need to have PHP installed on your web server because that is where it executes. Unlike javascript which is executed on the client side.
    OracleGuy

  • #3
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,522
    Thanks
    8
    Thanked 1,091 Times in 1,082 Posts
    Ethan ...

    If you are dealing with a website and a webhost, like GoDaddy or whatever,
    they have PHP installed on their servers, so you use it on your web pages and scripts.
    You most likely also have free access to a few MySQL database accounts, and you
    then use those with your PHP scripts.

    You can't run PHP scripts on your own PC unless you have server software installed,
    as Oracleguy says. So you script using Notepad or Notepad++ and upload to your
    website to run your scripts. Lots of information and tutorials via Google.

  • #4
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Buy a domain from a web hosting company that supports PHP. Then you can play with it all day long, they are only around $3.95 a month.

    Or else you can get Apache or something server for your computer and software and do it on your desktop.
    Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?

  • #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
    I recommend you download and install XAMPP: http://www.apachefriends.org/en/xampp.html . It consists of Apache, MySQL, Perl and PHP all pre-configured. Just load your files into the proper directory and make sure it's running. The directory for Linux is: /opt/lampp/htdocs

    Using a host to test scripts is too impractical.

    EDIT: XAMPP also comes with phpMyAdmin, another huge plus for using XAMPP.



    -------
    Last edited by Len Whistler; 01-15-2010 at 06:50 AM.
    Leonard Whistler

  • #6
    Regular Coder
    Join Date
    Dec 2009
    Location
    UK
    Posts
    495
    Thanks
    0
    Thanked 58 Times in 58 Posts
    I have to say I hate phpMyAdmin. And XAMPP is great for those with server experience, but WAMP is more suited to beginners as it allows simple customizations via a context menu with the server icon in the system tray
    My site: JayGilford.com
    Resources:
    PHP Pagination Class | Getting all page links | Handling PHP Errors properly
    If you like a users help, show your appreciation with the rep and thanks buttons :)


  •  

    Posting Permissions

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