PHP, PHP3, and PHTML refer to different versions and contexts of the PHP programming language. PHP is the current and widely used version, while PHP3 is an older version that introduced many features but is no longer supported. PHTML is a file extension typically used for PHP files, indicating that the file contains PHP code, while .php is the more common extension today. In summary, the key differences lie in versioning and file naming conventions.
in programming, single quotes are for characters, and double quotes are for string, but in php, javascript, html, css i don't see any difference between the two.
There's not too much of a difference. Most people prefer using double quotes because of the fact that you can do this: <?php $var2 = "Look at {$var1}!"; ?> which you can't do the {} thing with single quotes. You would have to do <?php $var = 'Look at '.$var1.'!'; ?>
The terms "simple PHP" and "core PHP" are not commonly used in the web development community, but based on the context, we can provide an explanation of what they might refer to: Simple PHP: "Simple PHP" is a vague term that could refer to using basic PHP syntax and features without incorporating any advanced frameworks or libraries. In this context, "simple PHP" typically means writing PHP code without relying on additional tools or external dependencies. It implies a straightforward and minimalistic approach to PHP development. Core PHP: "Core PHP" refers to the fundamental and essential features of the PHP programming language itself. Core PHP includes the core functions, language constructs, and syntax provided by PHP without the use of any external libraries or frameworks. It involves writing PHP code in its purest form, utilizing the features and functionalities offered by the PHP language without any additional abstractions. In summary, "simple PHP" suggests a minimalistic approach to PHP development, while "core PHP" focuses on utilizing the essential features and syntax of the PHP language itself without relying on external dependencies. It's worth noting that both terms are not widely used, and their exact definitions may vary depending on the context and the individuals using them.
Print always returns a value of true, but echo doesn't. echo also has a short cut syntax meaning you can immediately follow the php tags by an equals sign and it will echo the result like in the example shown below: <?=$hello?>
if i got your question right, you mean "what are php tags?" your should write PHP codes between <?php ... ?> where ... should be replaced by codes that you need. But if you mean "what are php codes?": there are some default codes that you may find them on php.net, and the other part is codes (Functions or classes) that other programmers develops..
Some people choose to run their PHP files via the .phtml extension. Web servers, such as apache, allow us to define our own extensions. For apache, you'll have to load httpd.conf and find/edit a line in similar fashion to : AddType application/x-httpd-php .php .php3 .phtml .foo : It means that PHP will parse .php .php3 .phtml and .foo files on this server.
Usually you don't have to change anything to allow PHP3 code to be used on a PHP4 server. if you think there is a problem with the code running under PHP4, check the code against the PHP 4 Changelog (http://www.php.net/ChangeLog-4.php)
Apache is a web server. PHP is a scripting language.
Let me answer from less 'technicall' point of view. Apache is the HTTP server. It gets the HTTP requests and answers with the HTML code. PHP is used to generate this HTML dynamically on server side. MySQL is used by PHP for getting the data. Once the Apache HTTP server gets the request for the page with php (or php3, php4, phtml or whatever is configured in Apache's config file), it calls PHP interpreter to generate HTML. Then this HTML is returned to the client - internet browser which sent HTTP request. PHP has got an access to MySQL DB via several APIs. This simply means, that you can just call some function in PHP script to select, import update or delete some data in a table of DB. You can also maintain the DB, create, delete new tables a.s.o. There is a lot of functions for that ;)
STRUTs is a framework of technology of java based on JSP/Java Servlets PHP is another server scripting language
.net is a framework based on Microsoft software and is not open source, php is a language which is open source and based on Linux/unix systems
JSP stands for Java Server Pages whereas PHP stands for Hypertext PreProcessor. PHP is a scripting language whereas JSP is a full fledged technology. JSP is much more powerful and has more features than PHP
http://www.thecentproject.com/sort1982.php
in programming, single quotes are for characters, and double quotes are for string, but in php, javascript, html, css i don't see any difference between the two.
They are different technologies - JSP stands for Java Server Pages, where PHP means PHP: Hypertext Preprocessor... Basically, they do the same thing - generate webpages, but JSP scripts are programmed in Java, and PHP scripts in PHP, which are completely different scripting languages. PHP is usually used in small to medium-sized projects, where Java tends to be percieved as a more "enterprisey" (aimed at large projects).
One major difference between those two is the amount of time it takes to learn and install them. PHP seems fairy easy to comprehend for beginners and you just need a XAMPP/WAMP/LAMP server to run PHP while Ruby is a bit difficult.Ruby allows Java in backend so that means you can have some features like threading which are not that well supported in PHP.PHP is a bit faster then RubyCode for Ruby on Rails is quite less compared to PHP which requires a lot of coding
There's not too much of a difference. Most people prefer using double quotes because of the fact that you can do this: <?php $var2 = "Look at {$var1}!"; ?> which you can't do the {} thing with single quotes. You would have to do <?php $var = 'Look at '.$var1.'!'; ?>