New Posts  All Forums:Forum Nav:

php vs htm vs html

post #1 of 10
Thread Starter 
I have my index page as both php and htm but i am curious as to what the benefits, if any, there are between the different codes?
Laptop
(13 items)
 
  
CPUGraphicsRAMHard Drive
Athlon-II P320 DualCore 2.1GHz AMD M880G with ATI Mobility Radeon HD 4250 3GB 250GB 
Optical DriveOSMonitorKeyboard
DVD/RW Windows 7 Home Premium 64Bit 24in 1080p Viewsonic Wireless 
Mouse
Wireless 
  hide details  
Reply
Laptop
(13 items)
 
  
CPUGraphicsRAMHard Drive
Athlon-II P320 DualCore 2.1GHz AMD M880G with ATI Mobility Radeon HD 4250 3GB 250GB 
Optical DriveOSMonitorKeyboard
DVD/RW Windows 7 Home Premium 64Bit 24in 1080p Viewsonic Wireless 
Mouse
Wireless 
  hide details  
Reply
post #2 of 10
html is static meaning pages content wont change (unless your using something like java in it)
php is dynamic meaning it can change depending on conditions and info feed into it.
post #3 of 10
if you dont know the difference then htm it is
post #4 of 10
.html or .htm is a file which has a primary language of html. It can include php, java, javascript...etc
.php is the same but w/ php.

They can be very interchangeable.

EDIT: You may also see:
.cgi <- a web executable usually scripted in perl
.jsp <- Java Server Page... dynamic page that can display a lot of languages
.asp <- active server page... usually (always?) in vbscript

EDIT2:
What are you trying to accomplish? .html (or html, rather) can implement php by using
Edited by BlackVenom - 2/15/12 at 7:30pm
IntelAsylum R2.1
(14 items)
 
M11xR2
(13 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500k ASRock Z77 Extreme6 MSI GTX 970 GAMING 4G 16GB Ripjaw X 
Hard DriveHard DriveOptical DriveOS
R0: 2x1TB WD Se Samsung 840 EVO LG UH12LS28 BDD Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell E2414H x2 M$ Sidewinder x4 Seasonic 600W CM HAF 932A 
MouseMouse Pad
Logitec M705 MouseMat 
CPUGraphicsRAMHard Drive
i7 GT335m 1gb 4gb ddr3 Sandisk 128GB SSD 
OS
Windows/Linux/Depends 
  hide details  
Reply
IntelAsylum R2.1
(14 items)
 
M11xR2
(13 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500k ASRock Z77 Extreme6 MSI GTX 970 GAMING 4G 16GB Ripjaw X 
Hard DriveHard DriveOptical DriveOS
R0: 2x1TB WD Se Samsung 840 EVO LG UH12LS28 BDD Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell E2414H x2 M$ Sidewinder x4 Seasonic 600W CM HAF 932A 
MouseMouse Pad
Logitec M705 MouseMat 
CPUGraphicsRAMHard Drive
i7 GT335m 1gb 4gb ddr3 Sandisk 128GB SSD 
OS
Windows/Linux/Depends 
  hide details  
Reply
post #5 of 10
Thread Starter 
The reason I went to php was due to using a program called backlinks from http://www.automaticbacklinks.com/

I could not get the php code to work in the htm file so i just created it in its own php page and linked the page inside the htm page

Still did not work like they said and so I made the page php and inserted the code inside the body tags and it worked.
Laptop
(13 items)
 
  
CPUGraphicsRAMHard Drive
Athlon-II P320 DualCore 2.1GHz AMD M880G with ATI Mobility Radeon HD 4250 3GB 250GB 
Optical DriveOSMonitorKeyboard
DVD/RW Windows 7 Home Premium 64Bit 24in 1080p Viewsonic Wireless 
Mouse
Wireless 
  hide details  
Reply
Laptop
(13 items)
 
  
CPUGraphicsRAMHard Drive
Athlon-II P320 DualCore 2.1GHz AMD M880G with ATI Mobility Radeon HD 4250 3GB 250GB 
Optical DriveOSMonitorKeyboard
DVD/RW Windows 7 Home Premium 64Bit 24in 1080p Viewsonic Wireless 
Mouse
Wireless 
  hide details  
Reply
post #6 of 10
Post the code or pm.
You did this?
Quote:
Most web servers run PHP so it is very likely that you will be able to get up and running. Simply paste the PHP code into your HTML markup (make sure to wrap it between tags).

You may also need to tell your server to parse your .html pages through PHP. To so this, simply create a file called ".htaccess" (without quotes) in the root of your site that contains the following lines:

AddType application/x-httpd-php .html .htm
addhandler x-httpd-php .html .htm

If this file already exists, add the above lines after any other contents.
EDIT: Don't post it if it has a user info in it.
Edited by BlackVenom - 2/15/12 at 7:44pm
IntelAsylum R2.1
(14 items)
 
M11xR2
(13 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500k ASRock Z77 Extreme6 MSI GTX 970 GAMING 4G 16GB Ripjaw X 
Hard DriveHard DriveOptical DriveOS
R0: 2x1TB WD Se Samsung 840 EVO LG UH12LS28 BDD Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell E2414H x2 M$ Sidewinder x4 Seasonic 600W CM HAF 932A 
MouseMouse Pad
Logitec M705 MouseMat 
CPUGraphicsRAMHard Drive
i7 GT335m 1gb 4gb ddr3 Sandisk 128GB SSD 
OS
Windows/Linux/Depends 
  hide details  
Reply
IntelAsylum R2.1
(14 items)
 
M11xR2
(13 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500k ASRock Z77 Extreme6 MSI GTX 970 GAMING 4G 16GB Ripjaw X 
Hard DriveHard DriveOptical DriveOS
R0: 2x1TB WD Se Samsung 840 EVO LG UH12LS28 BDD Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell E2414H x2 M$ Sidewinder x4 Seasonic 600W CM HAF 932A 
MouseMouse Pad
Logitec M705 MouseMat 
CPUGraphicsRAMHard Drive
i7 GT335m 1gb 4gb ddr3 Sandisk 128GB SSD 
OS
Windows/Linux/Depends 
  hide details  
Reply
post #7 of 10
Quote:
Originally Posted by BlackVenom View Post

.asp <- active server page... usually (always?) in vbscript
Does anyone even use ASP? I thought ASP.NET (.aspx ??) superseded ASP a good 10 years ago.

For the record though, ASP supports JS as well as VBS.
post #8 of 10
Something uses it. lol. I couldn't think of anything so I started clicking random bookmarks to remember others.
MSDNAA uses .aspx

EDIT: M$ Exchange uses asp (school email).
IntelAsylum R2.1
(14 items)
 
M11xR2
(13 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500k ASRock Z77 Extreme6 MSI GTX 970 GAMING 4G 16GB Ripjaw X 
Hard DriveHard DriveOptical DriveOS
R0: 2x1TB WD Se Samsung 840 EVO LG UH12LS28 BDD Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell E2414H x2 M$ Sidewinder x4 Seasonic 600W CM HAF 932A 
MouseMouse Pad
Logitec M705 MouseMat 
CPUGraphicsRAMHard Drive
i7 GT335m 1gb 4gb ddr3 Sandisk 128GB SSD 
OS
Windows/Linux/Depends 
  hide details  
Reply
IntelAsylum R2.1
(14 items)
 
M11xR2
(13 items)
 
 
CPUMotherboardGraphicsRAM
i5 2500k ASRock Z77 Extreme6 MSI GTX 970 GAMING 4G 16GB Ripjaw X 
Hard DriveHard DriveOptical DriveOS
R0: 2x1TB WD Se Samsung 840 EVO LG UH12LS28 BDD Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
Dell E2414H x2 M$ Sidewinder x4 Seasonic 600W CM HAF 932A 
MouseMouse Pad
Logitec M705 MouseMat 
CPUGraphicsRAMHard Drive
i7 GT335m 1gb 4gb ddr3 Sandisk 128GB SSD 
OS
Windows/Linux/Depends 
  hide details  
Reply
post #9 of 10
Quote:
Originally Posted by iamme View Post

The reason I went to php was due to using a program called backlinks from http://www.automaticbacklinks.com/
I could not get the php code to work in the htm file so i just created it in its own php page and linked the page inside the htm page
Still did not work like they said and so I made the page php and inserted the code inside the body tags and it worked.

The reason php code was not read in html pages is because the web server is configured to treat pages a certain way depending on the file extension. If it's not configured to have html pages read by php, it won't work.

Edit: Oops! Just noticed BlackVenom already wrote this in one of his posts.
Edited by ChaoticKinesis - 2/16/12 at 11:48pm
     
CPUMotherboardGraphicsRAM
Intel Core i7-4770K Gigabyte G1.Sniper M5 EVGA GTX 780 SC Crucial Ballistix Sport 2 x 8GB 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 Pro 256GB Seagate Barracuda 3TB Seagate Barracuda 4TB Asus BD-ROM 
CoolingOSMonitorKeyboard
Noctua NH-D14 Windows 8 Pro Dell U2713HM Ducky YOTD (MX Brown) 
PowerCaseMouseMouse Pad
SeaSonic SS-760XP2 Fractal Design Arc Mini Roccat Savu SteelSeries 9HD 
Audio
Beyerdynamic DT990 250 Ohm 
CPUMotherboardGraphicsRAM
AMD A6-3500 Asrock A75M HD 6530D Samsung 4GB DDR3 1600  
Hard DriveHard DriveHard DriveOptical Drive
Intel 320 80GB Samsung Spinpoint F4 2TB WD Caviar Green 3TB Sony BD-Rom 
CoolingOSMonitorKeyboard
Noctua NH-C12P SE14 Win 7 Professional 64-bit Samsung LN46C600 Lenovo N5902 
PowerCaseOther
Corsair CX430 Antec Veris Fusion HDHomeRun Prime 
CPUMotherboardGraphicsRAM
AMD Phenom II X3 B55 Asus M5A99X EVO Sapphire HD 7950 G.Skill 8GB DDR3 
Hard DriveOptical DriveCoolingMonitor
Samsung F3 1TB LG DVD-RW CM Hyper 212 Plus Dell U2312HM 
KeyboardPowerCaseMouse
Pink KBT Race (MX Blue) Lepa G700-MA Corsair 500R Razer Abyssus 
Mouse Pad
Razer Goliathus Speed 
  hide details  
Reply
     
CPUMotherboardGraphicsRAM
Intel Core i7-4770K Gigabyte G1.Sniper M5 EVGA GTX 780 SC Crucial Ballistix Sport 2 x 8GB 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 Pro 256GB Seagate Barracuda 3TB Seagate Barracuda 4TB Asus BD-ROM 
CoolingOSMonitorKeyboard
Noctua NH-D14 Windows 8 Pro Dell U2713HM Ducky YOTD (MX Brown) 
PowerCaseMouseMouse Pad
SeaSonic SS-760XP2 Fractal Design Arc Mini Roccat Savu SteelSeries 9HD 
Audio
Beyerdynamic DT990 250 Ohm 
CPUMotherboardGraphicsRAM
AMD A6-3500 Asrock A75M HD 6530D Samsung 4GB DDR3 1600  
Hard DriveHard DriveHard DriveOptical Drive
Intel 320 80GB Samsung Spinpoint F4 2TB WD Caviar Green 3TB Sony BD-Rom 
CoolingOSMonitorKeyboard
Noctua NH-C12P SE14 Win 7 Professional 64-bit Samsung LN46C600 Lenovo N5902 
PowerCaseOther
Corsair CX430 Antec Veris Fusion HDHomeRun Prime 
CPUMotherboardGraphicsRAM
AMD Phenom II X3 B55 Asus M5A99X EVO Sapphire HD 7950 G.Skill 8GB DDR3 
Hard DriveOptical DriveCoolingMonitor
Samsung F3 1TB LG DVD-RW CM Hyper 212 Plus Dell U2312HM 
KeyboardPowerCaseMouse
Pink KBT Race (MX Blue) Lepa G700-MA Corsair 500R Razer Abyssus 
Mouse Pad
Razer Goliathus Speed 
  hide details  
Reply
post #10 of 10
Quote:
Originally Posted by BlackVenom View Post

Something uses it. lol. I couldn't think of anything so I started clicking random bookmarks to remember others.
MSDNAA uses .aspx
EDIT: M$ Exchange uses asp (school email).

Microsoft have shifted their infrastructure to ASP.NET a long time ago. So it's no great surprise that MSDNAA is on .aspx.

As for Exchange, your school is running an old server wink.gif
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding