Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-28-2012, 05:57 PM   PM User | #1
geekerman
New Coder

 
Join Date: Nov 2012
Location: Manchester
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
geekerman is an unknown quantity at this point
files

Hello. I've got. A. Website. But php. Wordpress but windows8 opens them in notepad n nt ie any. Ideas pls
geekerman is offline   Reply With Quote
Old 12-28-2012, 06:00 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
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.
Fou-Lu is offline   Reply With Quote
Old 12-28-2012, 06:03 PM   PM User | #3
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,493
Thanks: 44
Thanked 438 Times in 427 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
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
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 12-28-2012, 06:21 PM   PM User | #4
geekerman
New Coder

 
Join Date: Nov 2012
Location: Manchester
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
geekerman is an unknown quantity at this point
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
geekerman is offline   Reply With Quote
Old 12-28-2012, 06:24 PM   PM User | #5
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
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).
Fou-Lu is offline   Reply With Quote
Old 12-28-2012, 06:33 PM   PM User | #6
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,493
Thanks: 44
Thanked 438 Times in 427 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
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.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 12-28-2012, 06:34 PM   PM User | #7
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,493
Thanks: 44
Thanked 438 Times in 427 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Quote:
Originally Posted by geekerman View Post
Ok English ... code n not wepages
Close lol
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 12-28-2012, 06:38 PM   PM User | #8
geekerman
New Coder

 
Join Date: Nov 2012
Location: Manchester
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
geekerman is an unknown quantity at this point
Thumbs up

Thanks
geekerman is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:24 AM.


Advertisement
Log in to turn off these ads.