how reliable is php?

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
Hello

5 years ago when i just started to learn php i wanted to build file hosting website, i asked my friend for help don't remember much from that conversation but i remember him saying something like this "php isn't really good" or "it's not best idea to use php because <something saying why its bad doing>"

Right now i have my own file hosting website and it works good i have some issues with file deletion well code is right but 3/100 times code doesn't execute properly and doesn't delete file (something that i have noticed) well my question isn't about this i'm hired as freelancer and i'm doing some big websites which will be used by 100-5000 people it's plain php (backend) and i'm not using any frameworks like laravel. How good is it to use just php for big sites? Like if google or fb used plain php as only language for backend would they function same way?

Ex: https://imgur.com/a/lEblsLJ
 
Initially Facebook was coded in PHP and Javascript for the client-side. However, over the years they have created their own programming languages and introduced other programming languages. So yes a large site can be done solely in PHP, but I would imagine if your company gets big or you starting working for a large corporation then you will probably venture into other programming languages as well.
 
Using plain PHP for big websites is possible, and many successful websites have been built this way. However, it's important to consider scalability, code organization, performance optimization, and security. While websites like Google and Facebook initially used PHP, they eventually incorporated other languages to meet their specific needs as they grew. In summary, using PHP for big websites is feasible but requires careful considerations and a willingness to explore new technologies.
 
PHP is a widely used programming language for web development, and its reliability can be attributed to several factors. First, PHP has a long history and a large community of developers, which means that bugs and vulnerabilities are quickly identified and fixed. The language itself has undergone continuous improvement, with regular updates and releases to enhance performance and security. Additionally, PHP has a robust ecosystem of frameworks and libraries that provide tested and proven solutions for common web development tasks. However, like any programming language, the reliability of PHP ultimately depends on how it is used. Adhering to best practices, applying secure coding principles, and regularly updating dependencies are essential for ensuring the reliability of PHP-based applications.
 
Great discussion! I agree that PHP is definitely capable of handling large-scale projects, but as websites grow, having the right tools and structure in place can make a big difference. While plain PHP works, I’ve personally found that using frameworks or libraries that handle common tasks like database operations or CRUD functionalities can save a lot of time and help with scalability and maintenance in the long run.

for example, there are some tools out there that can simplify database operations, improve security, and help organize your code better—something that can be especially useful when working on bigger projects. If you haven’t explored it yet, I’d recommend checking out some of these tools online. You might be surprised at how much they can speed up development and make your PHP applications more robust.

I personally use xCRUD;
 
To be honest for enterprise clients I preffer .NET 8 with Angular. PHP is also useful and many times I decide to use PHP for client's project, because it can optimize costs (there is more php developers than .net developers, so php developers earns less).
PHP was changed across last years, to the language was added very useful features like enums or types, so we can force type to the method/function parameters. For someone who known others languages like c#, features like generic types or compiling instead of interpreting is something that is very important and still these features are missing in the PHP.
But if we have enough level of knowledge then we can create even enterpise level application. There is many features like executing php code in runtime that is very complicated in .net. We do not neet to load entirely application's code to memory and keep that there untill we decide to close the app, so we can host a lot of application on the same machine with less cpu and memory usage with similar scenario with .net.

PHP is not ideal language (no one is perfect), but still it can be used for many example of usage, where in many cases other languages cannot be used, but also we can find some cases where PHP is not the best idea.

Generaly in my opinion is very good language, easy as a first language, but durring the learning PHP we should learn it right to avoid common problems with creating "spaghetti code" then our app will be on high level
 
Back
Top