Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: .PHP

  1. #1
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default .PHP

    How can you view .PHP files that are on your desktop?

  2. #2
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    To view them running you will need to setup apache on your machine.

    Get this: http://www.apachefriends.org/en/xampp.html

    Install it in C:/ or the default.

    Once isntalled go to C:/xampp/

    then open xampp-control and start the umm top 3 services.. apache mysql etc. You don't need filezilla.

    Once you've started them all, copy your php file into xampp/htdocs and then go to http://localhost/phpfileyounamed.php

    Lol.

  3. #3
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    Ok so I tried to open it and it automaticly tries to download the file, I stated Apache, MySQL and mercury. the only one left is filezilla and Tomcat which seems to be disabled.. should i be ticking the Svc boxes?

  4. #4
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    Quote Originally Posted by Shibby-Shabs View Post
    Ok so I tried to open it and it automaticly tries to download the file, I stated Apache, MySQL and mercury. the only one left is filezilla and Tomcat which seems to be disabled.. should i be ticking the Svc boxes?
    Yeh i said to tick the tickboxes.

  5. #5
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    Done - but my browser is trying to download files so i can't view.

  6. #6
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    Quote Originally Posted by Shibby-Shabs View Post
    Done - but my browser is trying to download files so i can't view.
    Where are you viewing the file ?

  7. #7
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    C:\xampp\htdocs\possiblesite
    I have tried with MS Internet Explorer and Google Chrome :S

  8. #8
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    Quote Originally Posted by Shibby-Shabs View Post
    C:\xampp\htdocs\possiblesite
    I have tried with MS Internet Explorer and Google Chrome :S
    You need to read what I tell you.

    View it as http://localhost/possiblesite

    Load that link k?

  9. #9
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    Awwww, I see. +Rep and thanks for help

  10. #10
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    you could of just opened it in IE or firefox

Page 1 of 2 12 LastLast

Posting Permissions

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