What is PHP - A beginner question

Paged application: as in a website with various pages. PHP is very good at this, lots of things don’t fit this model. Single-page apps, games etc.

CORS = Cross Origin Resource Sharing. When you ask for a resource in the browser (like an image, a text file) from outside the current domain, that’s a cross origin request - when you make a request against a JSON API, you’re asking for a text file in the form of JSON. If the server you make the request to doesn’t support CORS (via an HTTP header), the request will fail. To get around this, you can point to a url you control: request is made to your server, which in turn makes a request to the remote API, gets the resource, and it can be served.

Yeah, loads of legacy financial stuff uses COBOL. Friend of a friend is a COBOL coder, he hates his job but the business can’t afford to let him go, so he makes a lot of money from it.

2 Likes

Dan,

again thanks for the great answer. I will have study your answer later.

Yes I knew 2 people that made a fortune on COBOL and BASIC on machines like the AS400. I mean literally millions. They almost cannot be fired.

What is PHP

PHP (recursive form hypertext Preprocessor) is a widely-used open source general-purpose scripting language that’s particularly suitable for web development and may be embedded into hypertext markup language (HTML).

It was originally created by Rasmus Lerdorf in late 1994 based on the C programming language. Current stable version (as of now June 2019) is 7.3.6.

How PHP works ?

In general terms, PHP as an engine interprets the content of PHP files (typically *.php, although alternative extensions are used occasionally) into an abstract syntax tree. The PHP engine then processes the translated AST and then returns the result given whatever inputs and processing are required.

Why is it used ?

Primarily, everything that you just wish to try and do on an internet server, you’ll be able to do with PHP. create a blog? Definitely. develop a full fledged software-as-a-service application? Why not !. Write a small script to fetch and calculate some information in a very few seconds? PHP is the best for that. Write an advanced set of scripts that accidentally becomes a winning software system business? PHP is used like that a lot.

What are the features of PHP ?

It is preferred and often used world wide scripting language, the main reason of recognition is; it’s open source and really straightforward.

  • Simple
  • Faster
  • Interpreted
  • Open source
  • Case Sensitive
  • Simplicity
  • Efficiency
  • Platform independent
  • Security
  • Flexibility
  • Familiarity
  • Error reporting
  • Loosely written Language
  • Real-time Access observation

What is the difference between HTML and PHP ?

HTML PHP
HTML is a mark-up language which is used to create web pages. It is the backbone of the front end development PHP is a server side scripting language which is an open source and popular among web developers who develop dynamic websites and web applications.
HTML is static, it always remains same everytime we open. PHP files are dynamic and output will depend on the database contents and conditions applied in the code.
HTML is easy to learn, even a small mistake in the tags will get auto adjusted by it. PHP is also easy to learn but mistake in code will populate error in HTML structure so PHP will relatively take more time to learn.
< html !DOCTYPE html>< head >Title</ head >< body >Hello World</ body ></ html > <?php//php code here?>
HTML files can be saved as .html or .htm extensions PHP files can use .php, .php3, .php4, .php7, .phar extensions.

Is PHP a dying language ?

Well, PHP was first appeared 24 years ago in 1995. It may not be the most effective or the foremost trendy programming language, however that doesn’t mean it’s dead, and it’s pretty tough to argue with the PHP statistics here…

First off, let’s check out what W3Techs has got to say.

According to W3Techs’ information, PHP is employed by 78.9% of all websites with a famous server-side programming language. therefore nearly eight out of each ten websites that you simply visit on the web are using PHP in some way, that leads us to this truth.

2 Likes