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 61,313 public repositories matching this topic...
-
Updated
Mar 19, 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
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
Apr 1, 2020 - JavaScript
-
Updated
Apr 5, 2020 - PHP
Documentation error
When i was browsing thourght the upgrade docs i fount out that
under the heading Writes are now deterministic
the new methods are called write and writeStream
yet the example below that says writeWrite
https://flysystem.thephpleague.com/v2/docs/advanced/upgrade-to-2.0.0/
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.
Having an issue cropping and image with negative offset looked at the docs for imagick and looks like to crop image with negative offset we need to use extentImage instead of cropImage in CropCommand.php
-
Updated
Apr 4, 2020 - PHP
To Reproduce
Steps to reproduce the behavior:
- Go to any contact
- Click on the avatar
- Open the 3-dot menu in the top right and click "Download picture"
- Open the downloaded file
Expected behavior
The picture is opened.
Actual behavior
Because the file is called Some ID.vcf, it is opened with the text editor and just shows jumbled characters.
Changing the extens
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
Model with a field called "container" will throw an exception on serialize
To Reproduce
CREATE TABLE test (
id int(10) unsigned NOT NULL AUTO_INCREMENT,
container varchar(64) DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB
and use phalcon dev tools to create a model of this table
create an instance of the model and serialize
im seeing erro
New name pattern
I use the 'nick name' field to enter people's 'calling name' (roepnaam, in Dutch) - how we call ppl in daily life. That's also the name by which I'd like to display & sort contacts.
Therefore, I'd like to suggest a new name pattern: <Nickname> (<First name> <Last name>), which would resort to <First name> <Last name> if there is no nickname.
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.