Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   Does PHP7 really speed up the Internet?? (https://www.cableforum.uk/board/showthread.php?t=33704778)

lexio 18-04-2017 16:34

Does PHP7 really speed up the Internet??
 
I was having a discussion with a friend last night about this topic. Unfortunately, he could not explain to me in an understandable manner how this really works...I guess the fact that he used very technical terminologies :erm: did not help at all. Could someone please be kind enough and explain this to me in a beginner friendly language :D :D

pip08456 18-04-2017 18:00

Re: Does PHP7 really speed up the Internet??
 
PHP 7 will not speed up your internet connection in any way but what it will do is allow 2x faster performance for apps, not because your internet has got faster but that the app responds quicker.

Your speed will remain what it is, what you connect to and use may respond quicker due to less overhaeads.

Paul 18-04-2017 20:26

Re: Does PHP7 really speed up the Internet??
 
As Pip says, it wont speed up the "internet", but it does allow sites themselves to run a little bit faster (not always noticable of course) so page load may be quicker.

Cable Forum now runs on PHP7, but since we were fast before, the difference isnt really likely to be noticed by most.

downquark1 18-04-2017 22:15

Re: Does PHP7 really speed up the Internet??
 
OK so the thing with php is that it isn't a webpage, it is a script that produces a webpage.

When you ask for a php page:
Step 1: your web browser connects to the server, it asks for the php page.
Step 2: Your web browser then waits while the server runs the php script (time depends on how faster the server is).
Step 3: The server then sends the resulting page (time depends on the speed of your internet connection).
Step 4: Your web browsers draws it on your screen (speed of your computer).

Speeding up the php will only speed up stage 2 where the server is preparing your page.

Damien 18-04-2017 22:50

Re: Does PHP7 really speed up the Internet??
 
How prevalent is PHP these days anyway? Seems to be taken over by a multitude of frameworks.

Paul 19-04-2017 00:20

Re: Does PHP7 really speed up the Internet??
 
Its still very much prevalent.

https://w3techs.com/technologies/details/pl-php/all/all
Quote:

PHP is used by 82.7% of all the websites whose server-side programming language we know.

Damien 19-04-2017 11:07

Re: Does PHP7 really speed up the Internet??
 
Fair enough. I imagine WordPress is a big example of it too. Does PHP heavily leverage other frameworks at this point?

lexio 20-04-2017 09:48

Re: Does PHP7 really speed up the Internet??
 
Quote:

Originally Posted by Damien (Post 35895430)
Fair enough. I imagine WordPress is a big example of it too. Does PHP heavily leverage other frameworks at this point?

Well framed. I would love to hear a clarification on this as well...whether PHP heavily leverages other frameworks at this point?

Chris 20-04-2017 09:51

Re: Does PHP7 really speed up the Internet??
 
I would love to hear a clarification of what Damian's question actually means :spin:

downquark1 20-04-2017 11:44

Re: Does PHP7 really speed up the Internet??
 
Quote:

Originally Posted by Chris (Post 35895583)
I would love to hear a clarification of what Damian's question actually means :spin:

When you design websites you typically employ a framework which is basically a code library that does the complicated bits for you. Damien is asking how many of these frameworks are built using php these days.

Wordpress is a bloging frramework for instance.

Damien 20-04-2017 22:12

Re: Does PHP7 really speed up the Internet??
 
Quote:

Originally Posted by Chris (Post 35895583)
I would love to hear a clarification of what Damian's question actually means :spin:

If PHP is a language a framework is a set of existing code and structures that you can use to make development quicker rather than doing everything from scratch.

Quote:

Originally Posted by downquark1 (Post 35895608)
When you design websites you typically employ a framework which is basically a code library that does the complicated bits for you. Damien is asking how many of these frameworks are built using php these days.

Wordpress is a bloging frramework for instance.

Yeah. I kind of thought that PHP has been taken over server side by things like Ruby, Node and so on. I assume that most large PHP applications are now commonly started against another framework? The PHP I remember would need such a thing to still be used for large web applications.

Paul 21-04-2017 00:28

Re: Does PHP7 really speed up the Internet??
 
Ruby is older than php, and not really very common. I have no idea what Node is.

There are a few php "frameworks" around, Zend is probably the most common.

A framework is really just a collection of pre-written functionality to save you having to write it yourself (e.g. for database operations).

They are ok for big projects to save time writing a lot of functions, but somewhat overkill for most websites as they have a ton of code you will just never use.

Damien 21-04-2017 08:32

Re: Does PHP7 really speed up the Internet??
 
Yeah I was thinking of web applications more than sites.

Node is a server-side javascript web development framework.

Maggy 21-04-2017 10:45

Re: Does PHP7 really speed up the Internet??
 
So the answer is that it only speeds up certain things like apps and is a sort of code that can be used to make sites/frameworks work better without actually having to write out all the coding and scripts. It's all the other stuff that slows down the internet.Have I got the gist of it?:dunce:

downquark1 21-04-2017 12:35

Re: Does PHP7 really speed up the Internet??
 
"You may receive a faster user experience using certain sites." Is the most correct way I can think of saying it.

But to say it speeds up the internet is too broad.


All times are GMT +1. The time now is 23:52.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.