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 64,118 public repositories matching this topic...
-
Updated
Jun 9, 2020
As we are getting Composer 2.0 closer and closer to a stable release,
and would like to get more people involved with testing it, it is
quite important to get the most common plugins to support our 2.0
branch. Otherwise many users will not be able to try the latest
Composer snapshots when we switch them to 2.0.
If you maintain a Composer plugin and would like to help, here is how:
- Get
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
PHP Version 7.1.9
The documentation says that Swoole coroutine cannot be used with xdebug, while developling applications xdebug is very helpful tool. For smaller application it may not be a problem but larger applications makes it necessary to use it.
My question is how can I debug applications while still using Swoole Coroutines ?
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
Additional info
Q | A |
---|---|
Yii version | 2.0.34 |
PHP version | 7.4.5 |
Operating system | N/A |
I'm following this guide to convert scss files to css files.
In the css array from my AppAsset I have to add scss/myFile.scss
to yii r
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
Jun 7, 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
Jun 13, 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
Jun 12, 2020 - PHP
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
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
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.