Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How are these websites doing it? PHP vs HTML


Guest

Recommended Posts

I was looking at some of the showcased OSCommerce web stores, and after viewing the source for those pages, it was all HTML. Now, I know that it won't show the PHP because its executed before it hits the browser. So, my question is...how are they creating their pages with HTML when its all PHP based?

 

http://shops.oscomme...tory/goto,44027 [view the source, its all HTML]

 

How? Where are they putting it?

-Jennifer J.

Link to comment
Share on other sites

PHP is "Hypertext Pre Processor", which basically means that PHP just processes code and then outputs HTML, so what you see on the when you view the page source is just the output.

Link to comment
Share on other sites

You can just go to the oscommerce demo site http://demo.oscommerce.com/ and view source there too...its html only....

Link to comment
Share on other sites

Yeah! So, where are they editing the HTML at? All I have are PHP pages.

 

 

Hi Jennifer,

 

 

If you open each .php file you will see in many of then little bits of html, it's a bit more difficult to see with 2.3.1 as a lot of it now has been converted to divs, which are basically tables but can be placed anywhere by the use of a stylesheet (.css)

 

template_top.php contains all the html script to start the page which shows in a browser, while template_bottom.php contains the closing html script. The rest of the .php files contain minute parts of the html script to fill in the rest of the page, depending on which page has been chosen to be shown. The php within each file choses which bits of html script to show depending on what is needed on the page being viewed.

 

This is known as dynamic scripting, it is very fast as it very often does not have to change the contents of a whole page, just changing part of it to get a new resultant page.

 

Hope this helps

My store is currently running Phoenix 1.0.3.0

I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 )

I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary

Link to comment
Share on other sites

I will add that you may also see something like the http://www.rubberstore.com/catalog/orings-c-33.html

 

Which would indicate the page is a HTML page, but since this site is Oscommerce it is using PHP server side scripting and outputting URL's as .html with the Header Tags SEO modification.

 

Hope that helps.

Link to comment
Share on other sites

 

 

Hi Jennifer,

 

 

If you open each .php file you will see in many of then little bits of html, it's a bit more difficult to see with 2.3.1 as a lot of it now has been converted to divs, which are basically tables but can be placed anywhere by the use of a stylesheet (.css)

 

template_top.php contains all the html script to start the page which shows in a browser, while template_bottom.php contains the closing html script. The rest of the .php files contain minute parts of the html script to fill in the rest of the page, depending on which page has been chosen to be shown. The php within each file choses which bits of html script to show depending on what is needed on the page being viewed.

 

This is known as dynamic scripting, it is very fast as it very often does not have to change the contents of a whole page, just changing part of it to get a new resultant page.

 

Hope this helps

 

Thank you so much! This is exactly what I needed to know! :]

-Jen

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...