PHP

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...
-
Updated
May 22, 2020
My composer.json
:
{
"name": "amphp/byte-stream",
"homepage": "http://amphp.org/byte-stream",
"description": "A stream abstraction to make working with non-blocking I/O simple.",
"support": {
"issues": "https://github.com/amphp/byte-stream/issues",
"irc": "irc://irc.freenode.org/amphp"
},
"keywords": [
"stream",
"async"
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
Github Actions should also test building documentation for pushes and pull requests to check for broken docs. Seems like there is a Docker container for that: https://hub.docker.com/r/readthedocs/build/
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
HHVM is missing some SODIUM_CRYPTO_GENERICHASH_*
constants.
see : https://www.php.net/manual/en/sodium.constants.php
the missing constants :
const int SODIUM_CRYPTO_GENERICHASH_BYTES = 32;
const int SODIUM_CRYPTO_GENERICHASH_BYTES_MAX = 64;
const int SODIUM_CRYPTO_GENERICHASH_BYTES_MIN = 16;
polyfill : https://github.com/nuxed/crypto/blob/master/src/Nuxed/Crypto/_Private
Please answer these questions before submitting your issue. Thanks!
- What did you do? If possible, provide a recipe for reproducing the error.
read Chinese and English documentation
- What did you expect to see?
I expected to find best practice for production usage
- What did you see instead?
nothing
- What version of Swoole are you using (
php --ri swoole
)?
latest.
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
Update documentation
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);
I learned this by digging through the code base for a while, and uncovered:
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.
There should be documentation for the $Block & $Line variabels and $Block['element'] and what the diffrent input are used for, e.g Type or Name
-
Updated
May 6, 2020 - JavaScript
Reading this ( https://learn.getgrav.org/16/advanced/performance-and-caching#grav-core-caching ), I was under the impression that the hash
method would actually hash the files (in a fast not-so-secure way as it is not the point.)
I guess that the idea is to not load the file from disk, making it faster. Here comes the issue: when deploying, you have to be careful or preserving file attributes
-
Updated
May 23, 2020 - PHP
Under the 'Theme' settings tab you can upload images. It would be great if vector images can be added so it can scale without causing artifacts.
-
Updated
May 18, 2020 - PHP
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
Steps to reproduce
- Inside the server, set the language to a translation, for example, Spanish Argentina
- Find some plural translations. For example the summary of the current folder.
- 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
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 tojson_encode()
calls)
The first met
Describe the bug
The external documentation of this project is unavailable.
The site doesn't load.
To Reproduce...
Steps to reproduce the behavior (include code examples, if applicable):
Expected behavior
Documentation is displayed.
Describe the bug
When I use closure for format
as written in documentation,
an error Warning: date() expects parameter 1 to be string, object given
occurs.
To Reproduce
// Warning: date() expects parameter 1 to be string, object given
new Timestampable([
'beforeCreate' => [
'field
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
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.