Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. PHP Hello world Example

PHP Hello world Example

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
phptutorialquestion
6 Posts 4 Posters 22 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RachelSo
    wrote on last edited by
    #1

    Ive been tryin for awhile to get a simple webpage to display when I run my project and just cant seem to get anywhere. Obivously Im new to PHP. Can someone post me a link to a Hello World project so I can get started? Just something that echos out some text on a webpage. Thanks

    U M 2 Replies Last reply
    0
    • R RachelSo

      Ive been tryin for awhile to get a simple webpage to display when I run my project and just cant seem to get anywhere. Obivously Im new to PHP. Can someone post me a link to a Hello World project so I can get started? Just something that echos out some text on a webpage. Thanks

      U Offline
      U Offline
      udch
      wrote on last edited by
      #2

      I am also new like you in php but may be this site can help you for improving your knowledge in php. http://www.w3schools.com/PHP/DEfaULT.asP

      R 1 Reply Last reply
      0
      • U udch

        I am also new like you in php but may be this site can help you for improving your knowledge in php. http://www.w3schools.com/PHP/DEfaULT.asP

        R Offline
        R Offline
        RachelSo
        wrote on last edited by
        #3

        Thanks alot!

        1 Reply Last reply
        0
        • R RachelSo

          Ive been tryin for awhile to get a simple webpage to display when I run my project and just cant seem to get anywhere. Obivously Im new to PHP. Can someone post me a link to a Hello World project so I can get started? Just something that echos out some text on a webpage. Thanks

          M Offline
          M Offline
          Marc Firth
          wrote on last edited by
          #4

          I recommend installing xampp (& then turn apache service on using xampp control panel). http://www.apachefriends.org/en/xampp.html When you've done that: -Go to localhost and run through basic security stuff. -Make a php file "index.php" with the following contents: <?php echo "hello world!"; ?> -Save that in your C:/xampp/htdocs/yourfolder or whatever open a browser and go to http://localhost/yourfolder/index.php = Hello world!

          Neonlight

          M 1 Reply Last reply
          0
          • M Marc Firth

            I recommend installing xampp (& then turn apache service on using xampp control panel). http://www.apachefriends.org/en/xampp.html When you've done that: -Go to localhost and run through basic security stuff. -Make a php file "index.php" with the following contents: <?php echo "hello world!"; ?> -Save that in your C:/xampp/htdocs/yourfolder or whatever open a browser and go to http://localhost/yourfolder/index.php = Hello world!

            Neonlight

            M Offline
            M Offline
            Muammar
            wrote on last edited by
            #5

            Hey Mar, Thanks for your helpful post, I installed this XAMPP thing and it's weird!! How do you get to the Apache screen and setup a virtual directory to host a website??


            We will either find a way, or make one!   (\ /)   (- .-) C(''')(''')

            M 1 Reply Last reply
            0
            • M Muammar

              Hey Mar, Thanks for your helpful post, I installed this XAMPP thing and it's weird!! How do you get to the Apache screen and setup a virtual directory to host a website??


              We will either find a way, or make one!   (\ /)   (- .-) C(''')(''')

              M Offline
              M Offline
              Marc Firth
              wrote on last edited by
              #6

              edit text file in apache/bin/conf. then restart apache service.

              Neonlight

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups