r/PHPhelp • • Oct 07 '25

I don't like OOP

0 Upvotes

Good morning. I have a question for you.

You're definitely familiar with object-oriented programming. So, do you have a good understanding of PHP's interfaces, abstract classes, etc.? Do you use them?

Because I don't feel comfortable using them. I don't like OOP, and debugging also seems more cumbersome.

I prefer functional programming.

ELOQUENT IN LARAVEL Eloquent, on the other hand, seems like a good way to use OOP. However, compared to Query Builder, it's much slower.


r/PHPhelp • • Sep 22 '24

How many connected users can a PHP website handle?

1 Upvotes

I know this question can vary on different factors such as how well the code is written for performance, hosting setup, etc.

What I would like to know is roughly the limitations of a PHP website in how many people can be using the website at once before the site gets overloaded.

Could the adverage PHP website with high end hosting handle 1,000 people using the site at once, 10,000 people using the site at once, 100,000 people use the site at once?


r/PHPhelp • • Nov 27 '25

Malicious Php files - HELP!

0 Upvotes

My website was hacked unfortunately, and with the uploads folder (wordpress) i found malicious php files which weren’t supposed to be there. I was wondering if simply renaming the files from php to something else will render them useless or do i need to delete them for everything to be fixed. I’m just wary of accidentally deleting smth important…


r/PHPhelp • • Jul 17 '25

Which AI-powered IDE do you personally use for PHP?

4 Upvotes

Hey everyone,
I'm currently working on a few PHP-based projects and looking to improve my coding flow with the help of AI.

Have any of you had a good experience with AI features in your IDEs for PHP? Like Cursor, Windsurd, Cline, GitHub Copilot, CodeWhisperer, or something else?

Also curious: if you're using an external LLM (Claude, GPT-4, Grok, etc.) for help with code generation or debugging — which one's giving you the best results for PHP?

Not looking for ads, just real recommendations from devs using this day to day. Thanks a lot!


r/PHPhelp • • May 14 '26

Solved How to send HTML email with mail() without destroying DKIM key or email appearance

0 Upvotes

I already know how to send HTML email through the PHP mail() function, however many external email providers may ditch my outgoing emails if they are not properly signed with a DKIM key.

Now if I try sending a super short message, I have no problem, but if I'm sending an entire newsletter as HTML with no line breaks (because I like to reduce the payload on the network), then the DKIM key breaks and many validators would complain.

One thing I did was use the chunk_split command on the entire message. Everytime I used that, the DKIM check always passes however, some of the HTML code is corrupted (probably because of the carriage return and line feed within HTML tags).

Is there another built-in PHP command I could use to replace chunk_split?

Then again, I'll probably have to manually split it and put a CRLF at the end of each HTML tag, then that may be a problem if I have a paragraph of text exceeding 80 characters.

Please advise.


r/PHPhelp • • Sep 02 '25

Solved How can I hosting MySQL & Laravel project?

0 Upvotes

Hey I learn Laravel last month and now I got a client ( pretty fast lol) and now I want to host it on a free platform first to show him the website then how to actually host it with security and all the industry standard and anything else I need to know ( I know nothing about terminal cmd lol only the basic commands in laravel i know lol)

Thank you


r/PHPhelp • • Nov 23 '25

Solved PHP editor with internal live preview

0 Upvotes

Hello from a newbie. I hope this is the right place for my question.

I own a bunch of “old school” hobby sites built on very basic CSS, HTML and PHP-Include — I code the main design with CSS and HTML and then use the PHP Include function to create the site pages’ files. Until now, to preview these pages’ files during editing, I’ve used an editor called EditPlus as it allows me to view them locally on my laptop (I open the .php file inside EditPlus, click “Preview” and the program previews it internally without opening an external browser, the same way it would with an .html one). Does anyone know of a free code or text editor (or some plugin of a free editor) that lets you preview .php files like that? I already tried several free editors and IDEs, but none of them had this feature or a plugin for it (or if they had it I missed it). I could stick with EditPlus, sure, but the program is paid and while not super expensive having to pay for every new version is starting to add up.

I was almost forgetting to add: because of another editor I use that requires it, I have an old PHP version (the last version who came with an actual installer) installed on my laptop.

UPDATE = Please stop suggesting me to install a web server ((having never used one I’m not familiar with it and my laptop is not very powerful)) and/or to use the terminal + web browser combo ((why should I use that when the program does it for me and I don’t even need to open another browser to view the file?)) or other similar methods. I asked for a free alternative program (with a .php file preview tool like EditPlus’), not for an alternative preview method.


r/PHPhelp • • Nov 29 '25

Download from php.net vs. XAMPP?

0 Upvotes

I know that using XAMPP, your URL's are Localhost/.. and you can run your php code in your browser.
How does the XAMPP environment compare with what you would get from php.net?
(I guess I could try it?)


r/PHPhelp • • Nov 10 '24

Question on PHP operating on databases

0 Upvotes

Hello,

I am a fairly advanced developer but an absolute noob when it comes to PHP. So I have a database open and I need operations done on it.

How would I go about interacting with it. Should I create a different PHP script for every operation? Should I do a POST and take in arguments? Really not sure what the best practice is here. Would love some pointers.

Thank you!

Edit: I'll just put my update here for anyone in the future who happens to stumble across this. I am using PDO and grouping operations for a given table in one file (since my data isn't so big). I have a different file for each table in my database.

Thank you to everyone who gave me useful advice.


r/PHPhelp • • Apr 14 '23

new to php

1 Upvotes
  1. i want to learn php. how are the job prospects for php

  2. should i learn html and css prior to php

  3. what are the pre requisites before joining php

  4. can u suggest ebooks/online resources to learn php


r/PHPhelp • • Jul 24 '20

How to create Simple login system in php mysqli with HTML5 Table | eWaySol

0 Upvotes

How To Make Login and Signup System in Php and MySqli, SignIn Register from creation using Php and MySqli. Here in this tutorial, you will learn how to create a complete user registration and login system with Php and MySqli. I will also use HTML5, Php, and Mysqli to create the login, registration form, and User Dashboard.

If you need this code? please comment on this video

https://youtu.be/ZPtjUQWjXww


r/PHPhelp • • Jun 18 '23

Good total for beginner with subtitles.

0 Upvotes

Hi I am new to programing laravel. May you provide me total/video with subtitles for totally new programer, how to work with it from beginning. On internet is a lot video/total but not help me. Thank you. I Hope this thread is good for that subreddit and will not be delted. Sorry for my nad english becose i am not liquid speaker. Thats why i please for video/total with subtitles.


r/PHPhelp • • Aug 22 '21

Solved $ shortcut

0 Upvotes

there is any way to change the dollar $ shortcut on my keyboard? i really love php but a hate that

win10 (pop!OS soon), sublime text 3.2.2


r/PHPhelp • • Aug 29 '22

Solved Upgraded from php7 to 8 and now my file list script isn't working anymore.

0 Upvotes

I have a php script I use that simple lists the files in a directory. It has worked for years with php7. Now I upgraded it to php8 today and suddenly it is giving me a fatal error and not working anymore.

Fatal error: Uncaught Error: Undefined constant "lname" in /homepages/12/d91153739/htdocs/tld.com/customers/somecustomer/new/login/index.php(161) : eval()'d code:1 Stack trace: #0 /homepages/12/d91153739/htdocs/tld.com/customers/somecustomer/new/login/index.php(161): eval() #1 /homepages/12/d91153739/htdocs/tld.com/customers/somecustomer/new/login/index.php(125): php_multisort(Array, Array) #2 {main} thrown in /homepages/12/d91153739/htdocs/tld.com/customers/somecustomer/new/login/index.php(161) : eval()'d code on line 1.

I am sure it is something simple that the people that make php have changed a way a variable or constant or the eval function works/or is declared but I am stuck. Please let me know if you can help. Thanks!

<?php

####################################################################################################################################
####################################[[[ SCROLL TO BOTTOM OF THIS FILE TO CHANGE THE TEMPLATE ]]]####################################
####################################################################################################################################
/*
 *		ALL IN ONE FOLDER/FILE LISTER
 *
 *       Author:    Greg Johnson

r/PHPhelp • • Jun 10 '24

Is it recommended to do PHP on VIM?

0 Upvotes

Thinking about using VIM as a text editor but I don't know if it's suitable for PHP/Laravel.


r/PHPhelp • • Jun 22 '25

Looking for a High-Quality Beginner Laravel Course (PHP Background)

0 Upvotes

Hi everyone! 👋
I'm an experienced PHP developer, but I’m completely new to Laravel. I'm looking for a high-quality, up-to-date Laravel course that:

  • Is suitable for someone with solid PHP knowledge but zero Laravel experience

  • Has a clear and fluent English-speaking instructor

  • Is regularly updated

  • Includes real-world projects (preferably building an actual app from scratch)

  • Covers fundamentals like routing, MVC, Eloquent ORM, authentication, etc.

I’ve seen many courses, but I’d love personal recommendations based on your experience — especially if you found a course that truly helped you understand Laravel.

Thank you in advance! 🙏
Feel free to drop links or course names below.


r/PHPhelp • • May 20 '23

so is PHP just Laravel now?

8 Upvotes

Do people just skip learning vanilla PHP altogether and go straight to the framework? Am I the only one who hasn’t felt the need to learn Laravel? Is my resistance futile?


r/PHPhelp • • Mar 30 '26

Update PHP. Especially if you are running 8.3 or older. Here's why.

0 Upvotes

My clients WordPress site was running slow and laggy. Performance made it laughable and a real embarrassment for me. Today I upgraded PHP to their latest stable build and upgraded the SQL drivers for PHP that supports the latest build.

Holy crap am I pleased. Site is snappy now and performance issues now seem to be gone.

Hopefully for good!


r/PHPhelp • • Mar 23 '23

PHP vs Python

0 Upvotes

PHP and Python are popular programming languages but have different strengths and weaknesses. So which one should I choose from?


r/PHPhelp • • Mar 11 '24

salary of a PHP developer with 2y experience in your country?

1 Upvotes

what is the salary of PHP developer with 2y exeprience in your country?
name the country and describe the package


r/PHPhelp • • Sep 07 '26

Is PHP really disappearing....

Thumbnail reddit.com
0 Upvotes

r/PHPhelp • • Jul 23 '26

Unobsfucating a PHP script

0 Upvotes

Attackers leveraging the wp2shell exploit added about 22k of obsfucated PHP to index.php on a site I've been asked to have a look at.

Labels and function names are ten random characters and control path is done by jumping to TrQ7yZISyM: etc and there seem to be a lot of (unnecessary?) jumps.

What's the best way to unobsfucate it?


r/PHPhelp • • Dec 23 '24

PhpMyAdmin problem

0 Upvotes

I DID IT!

I successfully installed mySQL and phpmyadmin. But during authorization I get an error HY000/2002: php_network_getaddresses: getaddrinfo for MySQL -8.0.40 failed: unknown host. I tried all methods: changed config.ing.php please help


r/PHPhelp • • May 02 '26

Solved [Laravel] NPM required?

0 Upvotes

Hi,

Is Node/NPM required when building a Laravel app without any web frameworks (i.e. using only Blade templates/components and some API routes)? I set up a test project using the installer and no preset, and deleted anything npm (module folder, package.json etc) and it still ran fine using 'php artisan serve'. Is that an okay thing to do or will it bite me in the ass at some point when trying to push this to a production environment?
I understand vite is used to "bundle frontend assets" but I don't know what it would bundle in my case, if there's only Blade. I've never worked with a bundler or Laravel before.

Thanks!

(Edit: I don't have a real-world app in mind. This is for a uni project which second-semester students will work on, which is probably why simplicity is the essence. The professor asked for an npm-less production environment, which afaik is the case since there are only npm dev dependencies, but I'm wondering if we can drop NPM altogether).