Monday, May 24, 2010

What is PhP and how does it differ from HTML?

I currently have a website with html pages, but I want to use php because I was told my javascript headline scroller is not 'read' or indexed by search engine robots. If I use php, then I can get a different headline scroller that will be indexed by 'bots. Make sense? I'm confused. Anyhow...how do I change current html pages to php? can I just rename them with different extension or is it more complicated than that? Thanks.

What is PhP and how does it differ from HTML?
PHP (PHP HyperText Pre-processor) is a scripting language whose syntax is similar to C/C++. HTML and PHP are two different worlds. In order to run PHP, you need to use a server (Usually Linux/Unix...most hosting services are this way) that supports PHP (They all pretty much do). Next, you must take some tutorials about PHP. I recommend a good book, or just some web tutorials. http://www.w3schools.com is a good source for just about anything.





PHP is free and fairly simple to learn. It is very powerful and stable. PHP can dynamically generate your HTML if you want it to. This is usually a good idea when displaying large numbers of records retrieved from a database (But that's in the future;-). Using a simple tutorial, you should have a working PHP page in minutes. Good Luck!
Reply:A good place to start learning PHP (besides reading the online manual at www.php.net) is the articles at www.webmonkey.com and www.zend.com Report It

Reply:Think of a php page as a server side HTML page. It is very similar to ASP (Active Server Pages) from Microsoft. With php you can create more dynamic and interactive web content for your pages. The only difference between a php page and an HTML page is some embedded code you insert to the HTML page.
Reply:It's not simple, PHP is a seperate programming language from HTML. You'd have to buy a book or go to a class to learn it and then reprogram your website using the new language.
Reply:Php is something you imbed into html


No comments:

Post a Comment