Ask questions about frameworks, try your hand at php golf and strike gold or simply show off your latest work.
376 followers 28 cikk/hét
Strict timeouts

Hey everyone, we recently realized that when using PHP's built in timeout mechanisms like set_time_limit or similar ones, not all the time spent in the request is being counted towards that time limit. CURL calls for example don't get included so if you start with a time limit of 10s, you can no problem make 5 HTTP calls of 3s each and spend 15s in...

Tue May 14, 2024 21:05
Is it Possible to Force a SQL Pulled String Displayed in FPDF to have Different Sizing to Another String in the Same Double Quotes/Cell?

Context This project is for an invoice application that generates a pdf from a button click. Its plain and simple, approched with the MVP concept. Over time, I did add a few details but they do not interfere with the PDF generation. My Tool Belt The tools I've used for R&D are: M1 with Sonoma 14.3.1, Visual Studio Code Version: 1.89.1 (Universal),...

Tue May 14, 2024 09:05
PHP needs a fork

PHP is a great language but needs a fresh start in my opinion. It has so, so, so, much potential outside of web development. Why it can only be used for web development: get_current_user() returns the user who owns __FILE__, not the owner of the current process. is_file(), is_dir(), etc. cache their results. No multi-threading. Sometimes different...

Tue May 14, 2024 09:05
Need some help!

Hey everyone. I have some problems logging in into my survey. The following debug information was shown. Maybe someone can help me, because the support is not answering. Thanks!! 🙏🏻 SimpleSAML\Error\Error: UNHANDLEDEXCEPTION Backtrace: 2 public/_include.php:28 (SimpleSAML_exception_handler) 1 vendor/symfony/error-handler/ErrorHandler.php:607 (Symfony\Component\ErrorHandler\ErrorHandler::handleException)...

Mon May 13, 2024 21:05
As a senior developer, how do you choose which framework to use or which one is better?

I know that there are many debates on the subject but in general what are you looking at when you are choosing a framework? I would like to know what is the thinking process, I can see people defending specific frameworks to death so i want to know why. I'm somewhere between junior and senior so i'm using the frameworks and understand design patterns...

Mon May 13, 2024 18:05
Shorthand or multi-line "if-else" statements

I know this is a matter of opinion, but I'd like to see if there is a preferred / best-practice way to handle "if-else" statements. This only applies to 2 state or "boolean-like" statements. e.g. multi-line: if ( $age >= 18 ) { $restrict = false; } else { $restrict = true; } or shorthand: $restrict = ( $age >= 18 ) ? false : true; Which do you...

Mon May 13, 2024 12:04

Készítse el saját hírfolyamát

Készen áll, hogy kipróbálja?
Indítson egy 14 napos próbaverziót, ehhez nincs szüksége bankártyára.

Fiók létrehozása