Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8

Thread: files

  1. #1
    New Coder
    Join Date
    Nov 2012
    Location
    Manchester
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    files

    Hello. I've got. A. Website. But php. Wordpress but windows8 opens them in notepad n nt ie any. Ideas pls

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Wut?
    You running a browser via file:// or http:// protocols? You have to access it via http:// protocol and the server must be configured to serve as PHP code. That is a configuration issue on your host assuming you're not talking about a local machine.

  • #3
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,327
    Thanks
    60
    Thanked 525 Times in 512 Posts
    Blog Entries
    4
    Quote Originally Posted by geekerman View Post
    Hello. I've got. A. Website. But php. Wordpress but windows8 opens them in notepad n nt ie any. Ideas pls
    m8 ntspk iz bd 4 ur hlf u no wt i mn? + tfl hd 2 udrstd 2 so if u wnt hlp tn please speak properly
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #4
    New Coder
    Join Date
    Nov 2012
    Location
    Manchester
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok English I have a Wordpress theme in php code I have opened the file but unlike html using ie it just shows the code n not wepages

  • #5
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    You cannot open a php script and have it parse. You have to use a webserver or an executable to parse it and return the results (ie: your browser using http protocol for example).

  • #6
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,327
    Thanks
    60
    Thanked 525 Times in 512 Posts
    Blog Entries
    4
    As Fou says, you will need a webserver to run it on and then access it via http using a browser. You can do this either by uploading it to your website that you already have OR by installing a server system such as wamp, xamp, uniformserver on your own windows system and then using the http://localhost address.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #7
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,327
    Thanks
    60
    Thanked 525 Times in 512 Posts
    Blog Entries
    4
    Quote Originally Posted by geekerman View Post
    Ok English ... code n not wepages
    Close lol
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #8
    New Coder
    Join Date
    Nov 2012
    Location
    Manchester
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Thanks


  •  

    Posting Permissions

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