Beginner to php

Discussion in 'PHP' started by Harish kumara, Feb 2, 2009.

  1. #1
    Hi friends,
    I am doing my final year B.E project that is based on web technology i know c,c++,java and c# but don't know a bit of php can you please guide me to get rid of my problem.
    1.which editor i should use to wite php code??????
    2.what are need to run php code???????
    3.how can i learn php more easily???????
    plz help me
     
    Harish kumara, Feb 2, 2009 IP
  2. NuLLByTe

    NuLLByTe Active Member

    Messages:
    382
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Hello Harish Kumara, welcome to dP :)

    For writing PHP code, there are a lot of editors out there. I recommend Notepad++ though. To run PHP, you need a server.

    To create a server on your computer, I recommend using WAMP. You can download it here.

    You can learn PHP from the official manual, available at PHP.net. Also, if you want to pick a book, get your hands on PHP & MySQL Bible.

    Hope this helps.
     
    NuLLByTe, Feb 2, 2009 IP
    shallowink likes this.
  3. Harish kumara

    Harish kumara Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hi,
    Thanks for your quick response,i have installed xampp n i have one example code but don't know how to execute it could you please tell me the clear n step by step procedures to execute php code plz...............
     
    Harish kumara, Feb 2, 2009 IP
  4. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #4
    open up notepad... type in
    <?php
    phpinfo();
    ?>

    save the file as info.php and place it the www directory for XAMPP. Start XAMPP (if you haven't already). In your browser type in http://localhost/info.php

    got it?
     
    shallowink, Feb 2, 2009 IP
  5. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #5
    XAMPP is recommended over WAMP, just my 2 cents :)
     
    harrisunderwork, Feb 2, 2009 IP
  6. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #6
    I've never tried XAMPP but really what are you basing the recommendation on? I mean, I click the WAMP server icon and that's about it. It's not like its an IDE or text editor, you start it, you forget about it.
     
    shallowink, Feb 2, 2009 IP
  7. bbrez1

    bbrez1 Banned

    Messages:
    208
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I like Appserv best :p. Harish kumara if you really know c and c++ than learning php will be easy. Just google for tutorials, there are millions of them everywhere!
     
    bbrez1, Feb 2, 2009 IP
  8. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #8
    Well xampp is nothing just another amp but it has so many addon that it edges over wamp. I have used both the servers, thats why I am able to compare :)
     
    harrisunderwork, Feb 2, 2009 IP
  9. elias_sorensen

    elias_sorensen Well-Known Member

    Messages:
    852
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #9
    I use XAMPP for my server, never got any problems with it.

    If you really want to write serious code, don't stick to Notepad++. Use UltraEdit-32 instead.
    I used NotePad++ earlier, but UltraEdit is way faster, has a more beautiful textprocessor, better syntax-highlighting and more. It makes developing faster. :)
     
    elias_sorensen, Feb 2, 2009 IP
  10. tech

    tech Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I also use Xampp and for writing code i prefer Dreamweaver.
     
    tech, Feb 3, 2009 IP
  11. Harish kumara

    Harish kumara Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    hey is net connection is necessary to execute php code
     
    Harish kumara, Feb 4, 2009 IP
  12. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #12
    no. you can run it off your computer without network connectivity (internet or LAN)
     
    shallowink, Feb 4, 2009 IP