Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Confused..... .php / .html

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Internet Discussion

Confused..... .php / .html
Reply
 
Thread Tools
Old 22-02-2005, 21:18   #1
Raistlin
Inactive
 
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Confused..... .php / .html

What is PHP and why would I want to use it?

The reason I ask is that the holding page for my new website has a .php extension but appears to have been written in HTML (or at least there is HTML in the source code when viewed in Firefox).

Anybody able to clear this up for me / tell me when I should be using one instead of the other / why?

Thanks.
Raistlin is offline   Reply With Quote
Advertisement
Old 22-02-2005, 21:20   #2
Paul
Dr Pepper Addict
Cable Forum Admin
 
Paul's Avatar
 
Join Date: Oct 2003
Location: Nottingham
Age: 63
Services: IDNet FTTP (1000M), Sky Q TV, Sky Mobile, Flextel SIP
Posts: 30,319
Paul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered stars
Paul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered stars
Re: Confused..... .php / .html

PHP is a programming (script) language.
__________________

Baby, I was born this way.
Paul is offline   Reply With Quote
Old 22-02-2005, 21:21   #3
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 46
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Re: Confused..... .php / .html

Quote:
PHP (recursive acronym for "PHP: Hypertext Preprocessor") is a widely-used Open Source general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.
More here:
http://uk.php.net/manual/en/introduction.php
Richard M is offline   Reply With Quote
Old 22-02-2005, 21:26   #4
Raistlin
Inactive
 
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Re: Confused..... .php / .html

Ok, thanks for that guys.

I can't see any PHP in the source code though, is there a chance that it's somewhere else?

The only thing I can see is a bit of JavaScript that doesn't actually seem to do anything.
Raistlin is offline   Reply With Quote
Old 22-02-2005, 21:27   #5
Plonking
Inactive
 
Join Date: Feb 2004
Location: Bournemouth
Age: 42
Services: BT Somethingorother
Posts: 470
Plonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to behold
Send a message via MSN to Plonking
Re: Confused..... .php / .html

Quote:
Originally Posted by Raistlin
What is PHP and why would I want to use it?

Anybody able to clear this up for me / tell me when I should be using one instead of the other / why?

Thanks.
It lets you do funky stuff on websites, for example, this forum! It's quite easy to use as well, and there are plenty of tutorials and books out there, so if you're interested in what it can do, those might also help you get a good idea...

Plonking is offline   Reply With Quote
Old 22-02-2005, 21:27   #6
Paul
Dr Pepper Addict
Cable Forum Admin
 
Paul's Avatar
 
Join Date: Oct 2003
Location: Nottingham
Age: 63
Services: IDNet FTTP (1000M), Sky Q TV, Sky Mobile, Flextel SIP
Posts: 30,319
Paul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered stars
Paul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered stars
Re: Confused..... .php / .html

Quote:
Originally Posted by Raistlin
I can't see any PHP in the source code though, is there a chance that it's somewhere else?

The only thing I can see is a bit of JavaScript that doesn't actually seem to do anything.
source code of what ?
__________________

Baby, I was born this way.
Paul is offline   Reply With Quote
Old 22-02-2005, 21:28   #7
Plonking
Inactive
 
Join Date: Feb 2004
Location: Bournemouth
Age: 42
Services: BT Somethingorother
Posts: 470
Plonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to behold
Send a message via MSN to Plonking
Re: Confused..... .php / .html

Quote:
Originally Posted by Raistlin
Ok, thanks for that guys.

I can't see any PHP in the source code though, is there a chance that it's somewhere else?

The only thing I can see is a bit of JavaScript that doesn't actually seem to do anything.
You don't get to see the php code itself, that is hidden away on the server, which works everything out and then sends the html to you when you view it.. if that makes sense, lol!
Plonking is offline   Reply With Quote
Old 22-02-2005, 21:31   #8
Raistlin
Inactive
 
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Re: Confused..... .php / .html

Quote:
Originally Posted by Plonking
You don't get to see the php code itself, that is hidden away on the server, which works everything out and then sends the html to you when you view it.. if that makes sense, lol!
There's nothing in the HTML for the page that looks anything like a call to any other resource though. Is it possible that the HTML itself is being generated by the .php page and I am seeing the result of that dynamic generation rather than actually seeing the coding of the .php page?
Raistlin is offline   Reply With Quote
Old 22-02-2005, 21:33   #9
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 46
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Re: Confused..... .php / .html

Quote:
Originally Posted by Raistlin
There's nothing in the HTML for the page that looks anything like a call to any other resource though. Is it possible that the HTML itself is being generated by the .php page and I am seeing the result of that dynamic generation rather than actually seeing the coding of the .php page?
That's what server-side code does. :o
Richard M is offline   Reply With Quote
Old 22-02-2005, 21:33   #10
Plonking
Inactive
 
Join Date: Feb 2004
Location: Bournemouth
Age: 42
Services: BT Somethingorother
Posts: 470
Plonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to beholdPlonking is a splendid one to behold
Send a message via MSN to Plonking
Re: Confused..... .php / .html

indeed, you have, as they say, hit the proverbial nail on the head.
Plonking is offline   Reply With Quote
Old 22-02-2005, 21:34   #11
Raistlin
Inactive
 
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Re: Confused..... .php / .html

Cool, downloaded it and opened using notepad and there's a whole load of code that I couldn't see before. Thanks for your help guys.
Raistlin is offline   Reply With Quote
Old 22-02-2005, 21:51   #12
Bifta
Inactive
 
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
Bifta has a nice shiny starBifta has a nice shiny star
Bifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny star
Re: Confused..... .php / .html

Quote:
Originally Posted by Raistlin
Cool, downloaded it and opened using notepad and there's a whole load of code that I couldn't see before. Thanks for your help guys.
You can (if you wanted) just save a normal html document with no server side code in with a .php suffix.
Bifta is offline   Reply With Quote
Old 22-02-2005, 22:10   #13
punky
Inactive
 
Join Date: Jun 2003
Age: 44
Posts: 14,750
punky has a golden aurapunky has a golden aura
punky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aura
Re: Confused..... .php / .html

One thing I should add is you can spot PHP code in two ways:

1

PHP Code:

<?php

....

?>
2.

PHP Code:

<?

...

?>
punky is offline   Reply With Quote
Old 23-02-2005, 01:21   #14
greencreeper
Inactive
 
Join Date: Nov 2003
Location: Leeds - the dog house
Age: 48
Services: Email me for a current price list
Posts: 8,270
greencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny star
greencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny stargreencreeper has a nice shiny star
Re: Confused..... .php / .html

There's a nifty bit of Apache (web server), which is bolted on, that goes "Cooooo - someone requesting a PHP page" and nips in, grabs the page, has a read, converts all the programming code to HTML, and hands the HTML to Apache to give to the client. The nipping in bit is where much tweaking goes on to improve the speed of the nipping. It's caused a few problems with this site, I believe? The bolted on bit is called a module, and the conversion process from PHP to HTML code is interpretation - which makes PHP an interpreted language.

The page does not have to have a .php extension - could have .moo Just depends on how Apache is configured.
greencreeper is offline   Reply With Quote
Old 23-02-2005, 01:40   #15
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 46
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Re: Confused..... .php / .html

Quote:
Originally Posted by greencreeper
The page does not have to have a .php extension - could have .moo Just depends on how Apache is configured.
Or .html or even dot nothing
Richard M is offline   Reply With Quote
Reply

Thread Tools

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 19:57.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum