Skip to content

PHP is dead? No, it isn't!!

Pinned Discussion
3 2 797 1
  • 1000015238.jpg

    I learned PHP in 2006 and still use it extensively today. Let’s also not forget that thanks to wordpress, PHP powers over 70% of the Internet.

    W3Techs reports that 74.2% of all websites for which the server‑side language is known are powered by PHP (as of May 21, 2025).

    Another recent source (ZenRows) quotes 74.5%, describing it similarly as the share of websites using PHP for server‑side tasks.

    Some other data points like Citrusbug offer a slightly higher figure of 76.2%.

    A Kinsta article puts the number at 79.2% of all websites.

    Given the consistency across multiple reputable sources, PHP currently powers approximately 74% to 79% of websites with identifiable server-side languages.

    So not “dead” then…

  • 1000015238.jpg

    I learned PHP in 2006 and still use it extensively today. Let’s also not forget that thanks to wordpress, PHP powers over 70% of the Internet.

    W3Techs reports that 74.2% of all websites for which the server‑side language is known are powered by PHP (as of May 21, 2025).

    Another recent source (ZenRows) quotes 74.5%, describing it similarly as the share of websites using PHP for server‑side tasks.

    Some other data points like Citrusbug offer a slightly higher figure of 76.2%.

    A Kinsta article puts the number at 79.2% of all websites.

    Given the consistency across multiple reputable sources, PHP currently powers approximately 74% to 79% of websites with identifiable server-side languages.

    So not “dead” then…

    @phenomlab I don’t think php will ever die, unless some amazing new way to program comes along and all the php can be easily switched over. But I doubt that to ever happen haha

  • @phenomlab I don’t think php will ever die, unless some amazing new way to program comes along and all the php can be easily switched over. But I doubt that to ever happen haha

    @Madchatthew I can’t see it happening either to be honest. It’s one of the most mature programming languages there is, and given the figures, it’s clear to see is not going anywhere anytime soon.

  • phenomlabundefined phenomlab pinned this topic on

Related Topics
  • 5 Votes
    5 Posts
    864 Views
    and BOUM Personally, I don’t hate American companies. I use their products like everyone else, but I think their economic weight is such that they impose their own rules instead of respecting those of the countries where they do business. And here, for once, the DMA is putting the church back in the middle of the village (French Expression).
  • 0 Votes
    1 Posts
    365 Views
    No one has replied
  • Microsoft in talks to buy TikTok

    Discussion microsoft tiktok
    2
    3 Votes
    2 Posts
    514 Views
    @phenomlab well I hope that a better company steps up and puts in a higher bid. If I had the money I would buy TikTok. That platform is a money makers dream. So many people on it now er or was. I think MS will just mess it up like they do everything else. Hell, they can’t even get their own software to work correctly, how would they even keep that one up and running.
  • Australia passes social media ban for under 16s

    Discussion social
    11
    11 Votes
    11 Posts
    1k Views
    @phenomlab I agree with you, otherwise they would have already done that.
  • Note Taking App

    Discussion notetaking opensource
    13
    4 Votes
    13 Posts
    1k Views
    @Madchatthew A simple PWA would probably suffice in the meantime
  • 4 Votes
    4 Posts
    930 Views
    @phenomlab said in TikTok fined £12.7m for misusing children’s data: Just another reason not to use TikTok. Zero privacy, Zero respect for privacy, and Zero controls in place. https://news.sky.com/story/tiktok-fined-12-7m-for-data-protection-breaches-12849702 The quote from this article says it all TikTok should have known better. TikTok should have done better They should have, but didn’t. Clearly the same distinct lack of core values as Facebook. Profit first, privacy… well, maybe. Wow, that’s crazy! so glad I stayed away from it, rotten to the core.
  • Securing javascript -> PHP mysql calls on Website

    Solved Security php mysql security
    2
    1 Votes
    2 Posts
    966 Views
    @mike-jones Hi Mike, There are multiple answers to this, so I’m going to provide some of the most important ones here JS is a client side library, so you shouldn’t rely on it solely for validation. Any values collected by JS will need to be passed back to the PHP backend for processing, and will need to be fully sanitised first to ensure that your database is not exposed to SQL injection. In order to pass back those values into PHP, you’ll need to use something like <script> var myvalue = $('#id').val(); $(document).ready(function() { $.ajax({ type: "POST", url: "https://myserver/myfile.php?id=" + myvalue, success: function() { $("#targetdiv").load('myfile.php?id=myvalue #targetdiv', function() {}); }, //error: ajaxError }); return false; }); </script> Then collect that with PHP via a POST / GET request such as <?php $myvalue= $_GET['id']; echo "The value is " . $myvalue; ?> Of course, the above is a basic example, but is fully functional. Here, the risk level is low in the sense that you are not attempting to manipulate data, but simply request it. However, this in itself would still be vulnerable to SQL injection attack if the request is not sent as OOP (Object Orientated Programming). Here’s an example of how to get the data safely <?php function getid($theid) { global $db; $stmt = $db->prepare("SELECT *FROM data where id = ?"); $stmt->execute([$theid]); while ($result= $stmt->fetch(PDO::FETCH_ASSOC)){ $name = $result['name']; $address = $result['address']; $zip = $result['zip']; } return array( 'name' => $name, 'address' => $address, 'zip' => $zip ); } ?> Essentially, using the OOP method, we send placeholders rather than actual values. The job of the function is to check the request and automatically sanitise it to ensure we only return what is being asked for, and nothing else. This prevents typical injections such as “AND 1=1” which of course would land up returning everything which isn’t what you want at all for security reasons. When calling the function, you’d simply use <?php echo getid($myvalue); ?> @mike-jones said in Securing javascript -> PHP mysql calls on Website: i am pretty sure the user could just use the path to the php file and just type a web address into the search bar This is correct, although with no parameters, no data would be returned. You can actually prevent the PHP script from being called directly using something like <?php if(!defined('MyConst')) { die('Direct access not permitted'); } ?> then on the pages that you need to include it <?php define('MyConst', TRUE); ?> Obviously, access requests coming directly are not going via your chosen route, therefore, the connection will die because MyConst does not equal TRUE @mike-jones said in Securing javascript -> PHP mysql calls on Website: Would it be enough to just check if the number are a number 1-100 and if the drop down is one of the 5 specific words and then just not run the rest of the code if it doesn’t fit one of those perameters? In my view, no, as this will expose the PHP file to SQL injection attack without any server side checking. Hope this is of some use to start with. Happy to elaborate if you’d like.
  • CURL GET

    Solved General php curl get
    2
    0 Votes
    2 Posts
    665 Views
    is working $curl = curl_init($url); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); //for debug only! curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $resp = curl_exec($curl); curl_close($curl); print($resp);