Skip to content
#

PHP

php logo

PHP is a popular general-purpose scripting language that's particularly suited for server-side web development. PHP runtime is generally executed by webpage content, and can be added to HTML and HTML5 webpages. PHP was originally developed in 1994 by Rasmus Lerdorf.

Here are 63,333 public repositories matching this topic...

symfony
B-Galati
B-Galati commented Nov 8, 2019

Description
At the moment it's quite hard to debug HTTP errors because the only information we get is:

HTTP/1.1 400 Bad Request returned for "https://example.com/".

It would be nice to have an opt-in option that would automatically open response payload and headers in order to log them in Sentry for example. It may require to handle a max lenght on the response payload.

marekstodolny
marekstodolny commented Jan 29, 2020

Description
Sending empty files in a multipart POST form is a proper use case due to web browsers supporting it.

I worked on a API layer using guzzle that had to work with an existing legacy codebase and trigger some actions (a proxy of some sort). There was a case where files had to be sent with empty content and would not work if you would omit them.

Example
_Currently no implem

wangch7
wangch7 commented May 22, 2019

Problem Description: No instruction of how to contribute in readme.rst. First time users will probably want to see information of how to contribute (which includes how to set up environment, communicate, and submit changes, etc.).

Solution Description: Add a contributing section in readme.rst with general contributing information, and include a link to file "contributing.md" (https://github.com

moon0326
moon0326 commented Aug 29, 2018

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error.

read Chinese and English documentation

  1. What did you expect to see?

I expected to find best practice for production usage

  1. What did you see instead?

nothing

  1. What version of Swoole are you using (php --ri swoole)?

latest.

PHPMailer
PhilippGrashoff
PhilippGrashoff commented Jan 22, 2020

Hi there,
after spending quite some time figuring why Email sending with a certain smtp server does not work, I found its an SSL issue.

Most widely on the web the found solution is to unset some ssl checks:

$mail->SMTPOptions = array(
    'ssl' => array(
        'verify_peer' => false,
        'verify_peer_name' => false,
        'allow_self_signed' => true
    )
);

However

WeeSee
WeeSee commented Feb 9, 2020

In console/Controller.php we can read:

/**
     * Prints a string to STDOUT.
     *
     * You may optionally format the string with ANSI codes by
     * passing additional parameters using the constants defined in [[\yii\helpers\Console]].
     *
     * Example:
     *
     * ```
     * $this->stdout('This will be red and underlined.', Console::FG_RED, Console::UNDERLINE);
  
Krinkle
Krinkle commented Mar 30, 2020

I learned this by digging through the code base for a while, and uncovered:

https://github.com/matomo-org/matomo/blob/a345c2f22b8356dd3300d66f5ade3df24f69d900/core/Config.php#L149-L151

From which I deduce that in the same directory where I might have a config/config.ini.php file, I can also have a config/blog.example.org.config.ini.php file - which, if it exists will be used instead.

rentalhost
rentalhost commented Dec 9, 2019

Currently the first parameter $base is a string that could be: top-left (default), bottom-right or transparent as the doc: trim().

There some way to trim by color? In my case, I need trim transparent and/or white color, only. Eg.: trim([ 'transparent', 'white', '#FF0000']) to trim transparent, white and red. The problem is that first parameter

server
matiasdelellis
matiasdelellis commented Apr 13, 2020

Steps to reproduce

  1. Inside the server, set the language to a translation, for example, Spanish Argentina
  2. Find some plural translations. For example the summary of the current folder.
  3. Just check if the plural works.

Expected behaviour

In summary expect:

6 carpetas y 5 archivos 8,5 GB

Actual behaviour

In summary i see:

6 carpeta y 5 archivo 8,5 GB

![imagen

igorsantos07
igorsantos07 commented Apr 15, 2020

Up to v3 there were a couple of easy ways to write out responses to a path:

  • simply return a string from the function: $app->get('/', fn() => 'hello world');
  • write to the response: $app->get('/', fn($req, $res) => $res->write('hello world'));
  • write JSON with $res->withJson() (this one is completely gone and we've got to default to json_encode() calls)

The first met

cphalcon
october
monica
xNinjaKittyx
xNinjaKittyx commented Mar 13, 2020

It would be good to specify what version of MySQL is currently supported... I was trying to set it up with mysql 8, and running into all sorts of problems. I know this is written in some places, but it would be nice to have it consistent throughout the README.md and the setup pages. I also saw that there has been some work on postgresql, but no documentation regarding on how to do it. However, I d

Created by Rasmus Lerdorf

Released June 8, 1995

Organization
php
Website
secure.php.net
Wikipedia
Wikipedia

Related Topics

language
You can’t perform that action at this time.