Guest Posted December 26, 2011 Share Posted December 26, 2011 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 More sharing options...
Guest Posted December 26, 2011 Share Posted December 26, 2011 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 More sharing options...
♥toyicebear Posted December 26, 2011 Share Posted December 26, 2011 You can just go to the oscommerce demo site http://demo.oscommerce.com/ and view source there too...its html only.... Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
Guest Posted December 27, 2011 Share Posted December 27, 2011 Yeah! So, where are they editing the HTML at? All I have are PHP pages. Link to comment Share on other sites More sharing options...
Guest Posted December 27, 2011 Share Posted December 27, 2011 Jennifer, As Nick pointed out, there is NO direct HTML coding in osCommerce. All code is encapsulated into PHP tags. Chris Link to comment Share on other sites More sharing options...
Xpajun Posted December 28, 2011 Share Posted December 28, 2011 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 More sharing options...
NodsDorf Posted December 28, 2011 Share Posted December 28, 2011 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 More sharing options...
Guest Posted January 1, 2012 Share Posted January 1, 2012 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.