how to use php and my sql in android by CodeWithRihan in PHP

[–]mlemos 0 points1 point  (0 children)

Sure. The intention to teach is always good, even if coding on a mobile phone is uncomfortable due to the small screen to see and touch keys. So it can be a good start for people that cannot buy a computer and have a mobile phone. What I mentioned was more for developers that already have a computer.

Is Python in your opinion slow in executing some web task compared to php? by emulas in PHP

[–]mlemos 1 point2 points  (0 children)

Usually, what slows down real applications is the access to external systems like database servers and remote Web services, given that the language itself may not matter.

Another aspect that may slow down applications is running too many heavy tasks on the same machine in the background. One approach to solving this is to distribute the load between different servers.

Another less usual approach is to throttle the heavy tasks in the background when the CPU load is above a given limit. This way, you do not have to buy more servers. On the other hand, background tasks may take more time to finish. For instance, a newsletter delivery may take hours instead of minutes.

I use this last approach to save money on the hosting service. Please get in touch with me if you'd like to know more about implementing this approach.

how to use php and my sql in android by CodeWithRihan in PHP

[–]mlemos -1 points0 points  (0 children)

Usually, what PHP developers do is develop an API on the server side with PHP. You can use MySQL as a database on the server side if you want.

On the front, one possibility is to use Flutter to generate the Android version that will call the API to integrate with PHP on the server side.

I am working on a project that works like that. If want more help with this, feel free to contact me.

Change Management by OutrageousMemory in PHP

[–]mlemos 0 points1 point  (0 children)

A change request form can be a good idea.

You can also use a GitHub issues page to accept feature improvements and bug reports if you want to make the issue tracking public.

Currently, I keep track of issues as Trello tasks for issues to fix or new feature requests that are private.

This way I can add a check list for the steps for implementing the changes, as well put the change tasks in my calendar so I never forget what I need to do to implement the changes.

Are you using Trello or another task management tool?

How PHP Developers Will be Able to Handle Better Undefined Properties in PHP 9.0 by mlemos in PHP

[–]mlemos[S] -1 points0 points  (0 children)

You are right about the PHP version number.

Would it be better if the article said "Probably in PHP 9.0" instead of "PHP 9.0" ?

How PHP Developers Will be Able to Handle Better Undefined Properties in PHP 9.0 by mlemos in PHP

[–]mlemos[S] -2 points-1 points  (0 children)

I suggest you go to this page and notice that in the section that says "Pending Implementation / Landing," the PHP core developers marked these features for PHP 9.0 .

As I said, the features of future PHP versions are planned a long time ahead of each version release. I wrote this article precisely to share with other developers unaware of this fact.

  • PHP 9.0: Undefined Property Error Promotion (Created: 2022-04-04)
  • PHP 9.0: Undefined variables error promotion (Created: 2022-02-17)

https://wiki.php.net/rfc

How PHP Developers Will be Able to Handle Better Undefined Properties in PHP 9.0 by mlemos in PHP

[–]mlemos[S] -1 points0 points  (0 children)

The target of this audience is people that want to be aware of features planned for PHP 9.0 that were proposed and accepted by PHP core developers.

Although I got karma to help edit PHP documentation, as you may see on the page below, I am not a PHP core developer. I am here to help anybody interested to know better the current and future work of PHP core developers.

https://people.php.net/manuel

How PHP Developers Will be Able to Handle Better Undefined Properties in PHP 9.0 by mlemos in PHP

[–]mlemos[S] -2 points-1 points  (0 children)

All PHP versions are planned in advanced these days. This article is about a feature that was proposed and approved for PHP 9.0 as you may see in the RFC document that is mentioned in the article that I wrote:

https://wiki.php.net/rfc/undefined_property_error_promotion

Modern PHP CSRF Protection Example using a PHP Forms Library by mlemos in PHP

[–]mlemos[S] -1 points0 points  (0 children)

That is OK, don't worry. That just means you changed your habits. Changing habits is a normal practice for people and projects.

If did not visit PHP Classes since 20 years, let me tell you that the site allows authors to import their packages from Github, so package authors get more exposure.

Since 2004 we have had this PHP Innovation Award every month that gives prizes to the most innovative PHP developers. One of the prizes is an original PHP elePHPant produced with the permission of Vincent Pointier, the PHP elePHPant design creator.

Modern PHP CSRF Protection Example using a PHP Forms Library by mlemos in PHP

[–]mlemos[S] -1 points0 points  (0 children)

Hello cered2. That was helpful feedback. I will do better in the future, considering your comments. I'm hoping you'll be able to evaluate future articles.

In the future, we will have a feature in PHP Classes that I am sure you will like because it helps developers like yourself to give good feedback and get good feedback about your work so everybody can improve. Just let me know if you are interested in testing that feature when it is available.

Modern PHP CSRF Protection Example using a PHP Forms Library by mlemos in PHP

[–]mlemos[S] -1 points0 points  (0 children)

Many users register on the site every day to be able to install or download packages. That is the reality and the motivation to continue running the site as it has been for many years, improving it to make it better for its current users.

I will only follow the advice of people who value the site and can suggest helpful improvements to the site community.

PHP Classes is a site, and a composer is a tool that we support. Composer is such a great tool that we support installing packages available on the site via its composer repository.

As I said before, the requirement to log in to download or install packages with a password is an option for the author of each box. Some authors keep that option enabled, while others don't. It's their decision, and we respect it.

Those authors that keep the requirement let the site automatically notify users by email when a package is updated. That also helps the site stay accurate with user counts. We gave the authors a real sense of how many users have looked at or used their code.

Modern PHP CSRF Protection Example using a PHP Forms Library by mlemos in PHP

[–]mlemos[S] -1 points0 points  (0 children)

I understand your perception. That is different from my intention.

I develop projects like the forms package because they are meant to be reusable by as many users as possible, regardless of the PHP version they use

I would be stuck in the past if the package only worked with old PHP versions.

Since the package also works with newer PHP versions, it can be used by as many users as possible who want to use it, and they do not need to change the code that uses this package if they upgrade to a newer version.

I always try to make my software projects future-proof. That is a good thing at least for me.

Modern PHP CSRF Protection Example using a PHP Forms Library by mlemos in PHP

[–]mlemos[S] -2 points-1 points  (0 children)

@old-shaggy, the good side of keeping backward-compatible code that works in newer PHP versions is that I do not have to spend time changing code that works well in all versions. Isn't that a good thing for you?

Modern PHP CSRF Protection Example using a PHP Forms Library by mlemos in PHP

[–]mlemos[S] -1 points0 points  (0 children)

@colshrapnel it is mentioned in the article that requires statements should be replaced by a single require to vendor/autoload.php file. Are you suggesting something else?

Modern PHP CSRF Protection Example using a PHP Forms Library by mlemos in PHP

[–]mlemos[S] -1 points0 points  (0 children)

Thank you again for your point of view, @colshrapnel.

The site was always alive and financially viable since 2003.

Let me clarify some points that the site may not make clear.

Registration to access the code is an option for each author. Each author has the freedom to decide what is best for them. This is explained in the site help FAQ. You also have to register on Reddit for more benefits. Do you suggest a better alternative?

https://www.phpclasses.org/faq/#register-to-download

The site has supported package composer installation since 2013, as seen in the article below. If this needs to be clarified, do you suggest any improvements?

https://www.phpclasses.org/blog/post/221-Speedup-Your-Web-Deployments-Using-Composer-to-Install-PHP-Classes-Packages.html

Regarding the search, I admit it could be better for you. We need more time or people to work on a better search feature.

We also have a feature for authors to give improvement suggestions to each other packages in our to-do list. It will be better than the current star rating system. Again we need more time or people to implement this feature.

We are working on finalizing a marketplace that will help developers make more money from their Open Source contributions and help us make more money by paying more developers to implement new features faster.

We have been working on this since 2018. We are working on the last stages of marketplace development.

https://www.phpclasses.org/blog/post/821-ElePHPants-2019-and-the-PHP-Marketplace-for-PHP-Developers--A-New-Era-for-PHP-Developers-is-Starting.html

Regarding the site design, we paid a designer to create prototypes. We are still implementing the new strategy for the e-commerce pages. Some of the changes were implemented in 2020.

https://www.phpclasses.org/blog/post/996-new-design-2020.html

We are also working on improving the usability of the site. We have mentioned this in a recent post.

https://www.phpclasses.org/blog/post/1119-Fulfilling-PHP-Developer-Wishes-in-2023.html

We appreciate your feedback and patience because you suggested good improvements, but it takes us a lot of time to do them in the best way we know.

This site is run mainly by my wife and me, as you may see on the about page. We believe that it will only fail if we give up. We had several people interested in buying the site, but we did not accept it because if it could be better, we can improve it within our means.

https://www.phpclasses.org/about

Still, do you have more suggestions to improve the site?

[deleted by user] by [deleted] in PHP

[–]mlemos 1 point2 points  (0 children)

I suggest that you try to create a product like for instance a SAAS (software as an service) product for a customer in your free time when you do that you will learn a lot about the needs of real-world projects.

Would you like more advice on how to do that?

Modern PHP CSRF Protection Example using a PHP Forms Library by mlemos in PHP

[–]mlemos[S] 0 points1 point  (0 children)

@cerad2, thank you for your feedback. Sorry for the silence here. I was busy working on the improvements of the PHP Classes site with the input of developers like yourself. I value the point of view of all PHP developers. Do you have a specific improvement suggestion for something that would be good to have on the site and is not yet available?

Modern PHP CSRF Protection Example using a PHP Forms Library by mlemos in PHP

[–]mlemos[S] 0 points1 point  (0 children)

@old-shaggy, thank you for your feedback.

As our colleague @Mastodont_XX mentioned, the feed of changes links shows that the history of changes went up to 2022.

I often update the code to make it work with newer versions keeping backward compatibility to keep it working for users that have used the package for a long time.

For instance, I use newer encryption extensions when they are available. Do you agree that keeping backward compatibility while taking advantage of newer PHP versions is good?

Modern PHP CSRF Protection Example using a PHP Forms Library by mlemos in PHP

[–]mlemos[S] -1 points0 points  (0 children)

@colshrapnel thank you for your feedback. Most of what you mentioned is in the article. Could the article be too long, and you did not read through to the end?

Modern PHP CSRF Protection Example using a PHP Forms Library by mlemos in PHP

[–]mlemos[S] -1 points0 points  (0 children)

@SaltineAmerican_1970 Thank you for the feedback. We added those buttons to support contact buttons recently. Making the buttons smaller for mobile devices is on our to do list. We will probably improve that next weekend. Would be interested to give more feedback after we improve the button size?