Just learnt PHP and need to know one more thing...

Discussion in 'PHP' started by mistermix, Nov 23, 2006.

  1. #1
    I've just learnt some PHP and need to know how I can preview a php without uploading it to my webserver?

    Am I missing something?
     
    mistermix, Nov 23, 2006 IP
  2. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #2
    You need a webserver one way or the other to process a php page.. Most people just load Apache on their local machine or install php extensions for IIS.
     
    MrX, Nov 23, 2006 IP
    mistermix likes this.
  3. mistermix

    mistermix Well-Known Member

    Messages:
    2,326
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    140
    #3
    So whats the simplest thing to do for a noob? The only php tags i'm using are includes and a random image script, no database .
     
    mistermix, Nov 23, 2006 IP
  4. drewbe121212

    drewbe121212 Well-Known Member

    Messages:
    733
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    125
    #4
    There is a nice script that can do it all for you. Installs PHP and their is a MySQL Module addon if you really want it.

    http://www.sokkit.net/pragmacms/index.php

    It is only a 30 day trial, but I think the price is more then worth it ($25.00)

    If you want the easiest possible way to hook up PHP on your machine, their you go :)
     
    drewbe121212, Nov 23, 2006 IP
    mistermix likes this.
  5. vic_msn

    vic_msn Well-Known Member

    Messages:
    2,233
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    155
    #5
    there are many apache package for windows that come with php,Mysql,phpmyAdmin. I am using XAMPP from www.apachefriends.org
    it is very good. it come with filezilla,apache,php5and4 and Mercury mail.
    easy to install. once you install it you can access you site usinh http://localhost/ use should put your php files inside the folder called htdocs inside the installed folder. Remember to turn off Norton/Firewalls while installing.
     
    vic_msn, Nov 23, 2006 IP
    mistermix likes this.
  6. mistermix

    mistermix Well-Known Member

    Messages:
    2,326
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    140
    #6
    I'll check out those installers, thanks for your help.

    A one click install is just what I needed.
     
    mistermix, Nov 23, 2006 IP
  7. mistermix

    mistermix Well-Known Member

    Messages:
    2,326
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    140
    #7
    OK, I've installed XAMPP from www.apachefriends.org and it seems to have gone ok.

    How all I want to do is view a .php file as a webpage? :confused:
     
    mistermix, Nov 23, 2006 IP
  8. TVCokeCan

    TVCokeCan Peon

    Messages:
    1,208
    Likes Received:
    147
    Best Answers:
    0
    Trophy Points:
    0
    #8
    With XAMPP you should just pop them in the home folder then they shoudl work
     
    TVCokeCan, Nov 23, 2006 IP
    mistermix likes this.
  9. mistermix

    mistermix Well-Known Member

    Messages:
    2,326
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    140
    #9
    Thanks. Its all working now.
     
    mistermix, Nov 23, 2006 IP
  10. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    #10
    Thanks all you for this nice biot of information as I have been uploading my php into web servers and testing it

    now I would test it in my own computer
     
    Freewebspace, Nov 23, 2006 IP
  11. drewbe121212

    drewbe121212 Well-Known Member

    Messages:
    733
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    125
    #11
    Yup. Things always run faster too :) No need to update a file upload it to the web server etc.
     
    drewbe121212, Nov 24, 2006 IP
  12. Joshimitsu

    Joshimitsu Guest

    Messages:
    95
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Joshimitsu, Nov 24, 2006 IP