Viewing PHP files?

Discussion in 'PHP' started by Plutonic, May 2, 2007.

  1. #1
    I have a few PHP pages, If I open them in my browser it is all text, there are meant to be images, But if I upload them to the server they are normal (with images and scripts)

    How do I view the pictures offline?
     
    Plutonic, May 2, 2007 IP
  2. Gunda

    Gunda Guest

    Messages:
    344
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    install the server on ur comp like apache php etc

    or instead install xampp
     
    Gunda, May 2, 2007 IP
  3. kashem

    kashem Banned

    Messages:
    1,250
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    0
    #3
    post some code , urls of your pages, then it will be easier to help
     
    kashem, May 2, 2007 IP
  4. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #4
    typobay.info

    When I open the file in my browser it is just the text, but when I go to the actual website it is full.
     
    Plutonic, May 2, 2007 IP
  5. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #5
    php needs to be processed to be rendered properly, either done by apache, IIS, lighthttpd or another webserver, you can't just open files on your pc and look at them.

    If you want to view php locally, you MUST have a server installed to serve those pages.......
     
    krakjoe, May 2, 2007 IP
  6. pepsipunk

    pepsipunk Well-Known Member

    Messages:
    208
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #6
    download this Apache Web Server

    Install it as a service
    configure it correctly and when you want to see your website you should be able to go to http://127.0.0.1 and it will be your website running on your machine
     
    pepsipunk, May 2, 2007 IP