PHP / HTML?
Autor: P. S
Besucht 1581,
Followers 2,
Geteilt 0
This may be a simple question, but i am trying to understand the basics of HTML / PHP settings for new pages.
I notice that when i create pages, sometimes the page defaults to HTML and others it defaults to PHP in the page propereties, expert, page name format.
I can see that special pages, blog, private area, locked pages are PHP with no option to change.
But i have general pages which have nothing but a picture and some text, set to PHP, others with the same content are set to HTML, the same with pages that contain forms.
How do i decide which to use for a particular page?
I want to include these pages in the ROBOTS txt file, so i need to know how they will be published.
Thanks
Gepostet am
Hi P.S
You can use either even though they are both different.
Some differences between HTML5 and PHP:
• PHP5 is a server side scripting language and HTML5 is a version of HTML which is the language to write the web page.
• HTML is used to dictate the look of the website, whereas PHP is required to make the page function.
• HTML is used for links, redirecting, colors, text, aligning, etc., whereas PHP is used for calculations, login, register, databases, etc.
• HTML is used to develop static web pages. PHP can be used to add components to the static web page to make them more dynamic.
• HTML allows one to put images, text, videos, forms, etc., on the webpage. PHP is uses to make plugins, widgets, etc. work.
• PHP is a language of web applications, whereas HTML is the language to write up a webpage.
PHP includes a command-line interface capability and can be used in standalone graphical applications. PHP commands can be embedded directly into an HTML source document rather than calling an external file to process data. In the HTML document, the PHP script is enclosed within special PHP tags. Due to these tags, the programmer can alternate between HTML and PHP instead of having to rely on heavy amounts of code to output HTML. Also, as PHP is executed on the server, the client cannot view the PHP code.
Hope this helps
David Wilson
Autor
Hi David, Thankyou for the explanation.
So if websiteX5 sets the page as PHP and does not allow it to be changed, thats what it should be.
But when i create a page, do i need to look at the content of the page and decide what format to use?
Or could i use HTML regardless of the content, and the code within the page will do the work.
Thanks
Hi
P.S
Website X5 Lets you know if a page needs to be php or not, so if your using dynamic content etc, the program sets the page to php. For most web pages HTML is the default standard.
Thanks