SEO Class in Chicago, IL
Are you a Google Analytics enthusiast?
More SEO Content
Html Vs Php Vs Asp Etc For Ecommerce
Posted 25 July 2007 - 07:47 AM
I am a little lost here. I'm new to complete ecommerce sites, but I'm helping someone with one.
I mostly know html, so I don't exactly know how ASP/PHP/PERL work.
But how is using something like PHP better/easier than making the pages in HTML?
What benefits does PHP have?
And if I use something like Oscommerce, do I need to know PHP?
Posted 25 July 2007 - 09:02 AM
Then, let's say the post office decides to change your ZIP code. (This actually happened in my town a couple of years ago.) If your pages are in HTML, you'll have to update and upload every page of your site. With an "include" set up, all you'd have to do is edit and upload one file -- the one that contained that footer text -- and the correction would automatically show up on every page of your site.
Beyond that, any scripting language (like PHP, ASP, etc.) will also allow you to add interesting scripts that can -- when employed thoughtfully -- greatly enhance the functionality and user-friendliness of your site. Ultimately, you could even build an entire content management system and run your entire website off of a database, making it very very easy to add/update/delete content using a simple browser-based interface.
That's what most blog software and content management systems do. I use WordPress for managing almost all of my websites, and I believe it's written in PHP.
As to whether you need to know PHP to use osCommerce, I don't think it's an absolute requirement. It does make things a lot easier if you find you need to tweak the functionality to meet your specific needs, and I would say at least a passing knowledge makes it easier to install add-ons and keep everything running smoothly, but you can probably get by without an in-depth knowledge of PHP.
Posted 25 July 2007 - 10:46 AM
Posted 25 July 2007 - 12:12 PM
Posted 25 July 2007 - 04:05 PM
Posted 25 July 2007 - 04:30 PM
Posted 26 July 2007 - 12:24 PM
And thanks AlDugan, that is a smart idea.
Posted 26 July 2007 - 02:04 PM
Posted 24 August 2007 - 02:53 AM
But do I save the simplest of all pages as .php even if there is not any chance of adding php code to that page in the future?
Posted 24 August 2007 - 03:26 AM
I would name all to .php, even if it was just for the sake of consistency. Nothing more annoying than thinking you linked to the correct page, but finding out (after days/weeks) that you linked to the .php instead of the .html.
Just keep it simple.
Posted 24 August 2007 - 03:57 AM
Just keep it simple.
Posted 24 August 2007 - 05:14 AM
Action Y/Z can be almost anything you can imagine, from showing a particular set or subset of information from a database, to including a picture, or styling something differently, or writing a link in a certain way or a hundred other things - plus you can include as many of these types of decisions in one page as you want.
Have a look at the site in my sig, virtually every page has some of these types of logic applied. Have a look at the shopping pages especially and look at the page names/URLs - notice that there are actually very few pages and the thing that differs in each address is the information after the '?', which tells the server what to do with the page (as described above)
I highly recommend reading 'programming for dummies' (if you've never done any programming this will give you a good foundation knowledge of how this type of thing works), then I recommend 'PHP & MySQL for dummies' to learn PHP and the MySQL database. I'm sure others can recommend equally good resources too.
Posted 24 August 2007 - 07:54 AM
Oscommerce is built using PHP and it would help to understand it but from what I've used of it you don't really need to know php to use it as long as it's been setup by someone who does.
PHP and other scripting languages for the web are great because as everyone stated above you have more control over your pages and you're not repeating things over and over. At the most basic level all of you pages could look like.
<div> This would be the body of the page, all of the content </div>
Then you have a header.php and footer.php that are shared by all pages so if you need to change anything you just change it in once place.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users