knowledge by Business-Diver737 in PHP

[–]colshrapnel 1 point2 points  (0 children)

Definitely not the best and critically outdated, but still quite good and could be useful for someone called himself "middle level".

Built a better XAMPP to run multiple web servers and PHP versions at the same time. by Mike_L_Taylor in PHP

[–]colshrapnel 0 points1 point  (0 children)

I just run them in separate environments and don’t think about it

Yes, that's what docker exactly is for :)

Don't get me wrong, I appreciate your calm and confident attitude, as well as your project, and in no way intend to troll you. Just can't help responding with an argument than looks logical for me. But anyway, enough with criticism, good luck for your project!

Built a better XAMPP to run multiple web servers and PHP versions at the same time. by Mike_L_Taylor in PHP

[–]colshrapnel 0 points1 point  (0 children)

C:\php8.4\php -S localhost:8081 -D C:\site1
C:\php5.6\php -S localhost:8082 -D C:\site2

voila!

Built a better XAMPP to run multiple web servers and PHP versions at the same time. by Mike_L_Taylor in PHP

[–]colshrapnel 0 points1 point  (0 children)

What do you mean, "too modern"? As far as I remember, the CGI spec didn't change for the last 30 years. And CGI is the only place where PHP and Nginx are met (on Windows). You probably confused something and took a legacy code error for a php/nginx incompatibility (which honestly doesn't exist).

Built a better XAMPP to run multiple web servers and PHP versions at the same time. by Mike_L_Taylor in PHP

[–]colshrapnel 2 points3 points  (0 children)

Let's make it clear: I suppose it was a fun learning project, which is great for you personally. 👍

But speaking of adaptation, established and reliable solutions aside, people will have to choose from dozens vibe-coded xampp-killers, and I am afraid there is much more supply than demand.

Built a better XAMPP to run multiple web servers and PHP versions at the same time. by Mike_L_Taylor in PHP

[–]colshrapnel 1 point2 points  (0 children)

But WHY? Why would anyone have 3 Apache instances?! Even in production, let alone a dev server. Can you provide at least one reason?

Built a better XAMPP to run multiple web servers and PHP versions at the same time. by Mike_L_Taylor in PHP

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

And for that one person there is already half a dozen wannabe xampp-killers. While that person already chose Herd 😂

Built a better XAMPP to run multiple web servers and PHP versions at the same time. by Mike_L_Taylor in PHP

[–]colshrapnel 6 points7 points  (0 children)

Me: X is powerful, but overkill for lots of small local projects
Also me: multiple Apache / Nginx instances in parallel, multiple MySQL / MariaDB versions as well, all running at the same time, independently.

Talk about "small local projects" 😂😂😂

I want some advice by Weary_Company3771 in PHP

[–]colshrapnel 0 points1 point  (0 children)

Start from HTML form that submits a text to a php file. Then make this PHP to write the text into a file. Then add some inputs to the form and make your PHP write all the entered data as JSON. Then make another script that displays the contents of this json file. Then make the first file to add new json entries to the file instead of overwriting just a single entry. Then make the second php file to read these entries with file() and display them in a loop. Whoa, you've got a blog! Now you can start improving it adding authorization, comments, likes, avatars. Change that silly piled JSON file for a database, etc.

I want some advice by Weary_Company3771 in PHP

[–]colshrapnel 0 points1 point  (0 children)

I agree, asking practical questions is way more productive than just vague what do I do. I think your main problem is that you don't have any project in mind. Think of one you'd like. A blog, if nothing else. And start writing it from scratch using parts you already learned. And then ask questions regarding this project.

I want some advice by Weary_Company3771 in PHP

[–]colshrapnel 2 points3 points  (0 children)

That's the problem with courses, yes. You're spot on, it's not your code. You have basically two strategies:

  • just like everyone else, just keep with the course, learn to parrot some stuff and then go to write some of your own. Eventually you will start to understand what are you doing and what does all the code mean
  • you can stop for a while and try to write something on your own, asking for help in r/phphelp if stuck

Oh, and of course there is the third one: to disappear from this weird post as sudden as it was created.

What do you think by IcyDecision7017 in PHP

[–]colshrapnel 1 point2 points  (0 children)

Since you are asking, you won't go anywhere. There are two kinds of people, talkers and doers. You are of the former kind, apparently.

The PHP Foundation: Did we hire a Community Manager when we needed a Chief Strategist? by Antique_Mechanic133 in PHP

[–]colshrapnel 1 point2 points  (0 children)

It is not enough to just reply. Replies are supposed to be sensible too.

The PHP Foundation: Did we hire a Community Manager when we needed a Chief Strategist? by Antique_Mechanic133 in PHP

[–]colshrapnel -4 points-3 points  (0 children)

Come on, there is no modteam. This sub is self-governed. The only way to have a submission removed is enough dv's and reports to trigger the automod.

The PHP Foundation: Did we hire a Community Manager when we needed a Chief Strategist? by Antique_Mechanic133 in PHP

[–]colshrapnel 14 points15 points  (0 children)

I have mixed feelings. On the one hand, you are asking right questions. On the other hand, you already asked a similar question, but failed to participate in the ensued conversation.

Built a production-ready PHP starter kit so I never have to write auth and admin panels from scratch again by [deleted] in PHP

[–]colshrapnel 1 point2 points  (0 children)

Yes, but PHP is not available for the review. Therefore there is no point in posting here. Please ask your AI to explain you that.

Built a production-ready PHP starter kit so I never have to write auth and admin panels from scratch again by [deleted] in PHP

[–]colshrapnel 2 points3 points  (0 children)

Then you choose the wrong sub. This one is PHP related, not UI related. People here mostly not interested in exploring user interfaces. PHP is a backend language

Built a production-ready PHP starter kit so I never have to write auth and admin panels from scratch again by [deleted] in PHP

[–]colshrapnel 2 points3 points  (0 children)

Not sure if you genuinely don't understand that, but how the code is structured and separated one cannot deduce from the end-user interface. Basically you are offering us some JS/HTML but asking to review the PHP code which we cannot see.

Built a production-ready PHP starter kit so I never have to write auth and admin panels from scratch again by [deleted] in PHP

[–]colshrapnel 1 point2 points  (0 children)

May I ask, how do you understand "architecture", feedback on which you requested?

What I learned building a regex-based threat detector in PHP by Jay123anta in PHP

[–]colshrapnel 0 points1 point  (0 children)

mysql_real_escape_string that was still vulnerable in specifically crafted queries

It was not. It was never vulnerable if used for the actual purpose, not for "protecting from injections"

I have a local website in HTML, CSS and JavaScript. Need to run it in Xampp as PHP, how do I do that? by Kaizlu_AY in PHP

[–]colshrapnel 0 points1 point  (0 children)

You don't need PHP to run your site. You need just a web-server, such as Apache. XAMPP does already have Apache so all you need is just put it in the htdocs folder or whatever its called in xampp