php / web-php Goto Github PK
View Code? Open in Web Editor NEWThe www.php.net site
Home Page: http://www.php.net
License: Other
The www.php.net site
Home Page: http://www.php.net
License: Other
Could someone take a look at the thanks.php page and make it look a bit more modern?
Perhaps include logos for the current providers and a slightly longer blurb on each one if we have more we can say.
It would help a bit, especially with Digital Ocean, that have been asking for more visibility. For Digital Ocean, we can add that we have edit.php.net, bugs.php.net, museum.php.net, wiki.php.net, downloads.php.net, qa.php.net, pecl.php.net on Digital Ocean droplets.
The EOL page shows links to the upgrade guides in the “Notes” column: https://www.php.net/eol.php
But the page of supported versions doesn't show these guides: https://www.php.net/supported-versions.php
Idea: add a “Notes” column to the “Supported Versions” page.
Current manual combines class/function information of all PHP versions But in many cases are impossible to reflect all changes that have occurred in class/function by generic synopsis. Such attempts only confuse users. This is not very convenient, since in most cases user is looking for information about specific version he is using. PHP7 users is not interested functions removed in PHP5 or classes to be added in PHP8.
Extension/class page does not contain Changelog - users are forced to search changes on function/method pages.
Changelogs are generated manually, rather than generated automatically based on changes in the code, so they are often incomplete or undeclared.
Changes in properties and constants of classes are not documented anywhere!
We can solve these problems by adding content filtering by PHP version:
<programlisting role="php" class="php5 php7">
or <programlisting role="php" php-ver="5 7">
any
(default)If class/function page not have element <refsect1 role="changelog">
, then auto generates this section:
Are you considering making the design of the php.net website more modern?
After submitting a "User contributed note" (by clicking on "+add a note" on the bottom of a manual page, which takes you to, e.g., https://www.php.net/manual/add-note.php?sect=function.trim&redirect=https://www.php.net/manual/en/function.trim.php)
you end up on the "confirmation" page (still https://www.php.net/manual/add-note.php)
where it says "...will not show up for up to a few hours on some of the mirrors, but it will find its way..."
But that link is broken: clicking on "mirrors" takes you to the homepage https://www.php.net/ -- I guess the /mirrors.php page does not exist any more.
Steps to reproduce:
Observed result:
Expected result:
Firefox has recently released a "bugfix" that causes it to copy
as a unicode non-breaking space \xC2\xA0
.
All code examples in the manual appear to use
rather than a plain \x20
.
The net effect is that anyone using Firefox to browse the manual, and a text editor that does not automatically convert or highlight non-breaking spaces, winds up with broken code and puzzling error messages like 'Parse error: syntax error, unexpected identifier " "'. I have been seeing a number of questions about this crop up on StackOverflow and IRC over the last few weeks, but I wouldn't have guessed that this was the source.
Tested in Firefox 107. Edge and Chrome do not seem to be affected by this.
I live in Switzerland (German-speaking part), and php.net docs are all in German per default.
The programming language is English however, and I do all my work related browsing in English. All docs, forums, blogs etc. and having php.net in German feels very weird, and I don't like it at all.
Is there a way to permanently set the default language to English so that I don't have to switch the language each time?
My Windows language is English and browser (Edge) as well.
In the PHP manual, the table is not in its place in the "Layout Content" section of the HTML. It seems to be a simple problem with the styling of the CSS.
Take a look on List of Resource Types.
<!DOCTYPE html>
<!--[…]-->
<div id="layout" class="clearfix">
<section id="layout-content">
<!--[…]-->
<div id="resource" class="appendix">
<!--[…]-->
<table class="doctable table"> <!-- This is outside the frame -->
<!--[…]-->
As part of #623, I took a look at the changes proposed by @localheinz. All sites I checked so far seem to be working correctly with HTTPS, and the certificates seem to be either automated with Letsencrypt, or as it the case for the main *.php.net
certificate, is issued yearly by Global Sign.
Copying my comment in the linked PR above:
As far as I can see, php.net sites such as
{pecl|pear|windows|gtk|conf|qa|bugs|news|wiki}.php.net
use the same HTTPS certificate with CN*.php.net
, so I assume they are safe to use with HTTPS without a doubt because any issues with this certificate will alert pretty much everyone.Looking at
{windows|downloads}.php.net
certificates on crt.sh, they seem to be automated, so they are safe to use too.
{bk2|monitoring|prototype-meta}.php.net
seem to be automated too, but I have never had any insight into who and how these sites run. Again, the crt.sh data shows the certificates are being renewed correctly.
I'd like to see if we can come to a consensus on if we can serve all *.php.net
sites with an HSTS header, so browsers remember and trust (TOFU) the PHP sites to always use HTTPS, even if a user clicks a plain HTTP link, loads a resource on any php.net site, etc. Further, we can preload *.php.net
as HSTS to browsers. GitHub, for example, serves all of its *.github.com
sites with HSTS, and preloads them as well.
Hey there!
After some local experiments, I would like to propose some tweaks to the intro element of the home page, also known as hero. There are still some adjustments to be done for mobile devices, which I will do if this proposal is well accepted by the community, followed by a PR.
The goal was to use size, color, white space and call to actions to guide new visitors who might be a little confused by visual clutter. The change also empowers the PHP branding by adding a large logo above the lead, which now has a larger font and an emphasis on the "popular general-purpose scripting language" snippet.
This is what I get when I try to upgrade PHP from 7.4.26 to 7.4.27 using FreeBSD ports:
=> php-7.4.27.tar.xz doesn't seem to exist in /usr/ports/distfiles//.
=> Attempting to fetch https://www.php.net/distributions/php-7.4.27.tar.xz
fetch: https://www.php.net/distributions/php-7.4.27.tar.xz: Service Unavailable
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/php-7.4.27.tar.xz
fetch: http://distcache.FreeBSD.org/ports-distfiles/php-7.4.27.tar.xz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles// and try again.
FreeBSD ports uses "fetch" to download https://www.php.net/distributions/php-7.4.27.tar.xz but looks like www.php.net web-server blocks user agent "fetch libfetch/2.0" and returns "Service Unavailable".
Can you whitelist this user agent?
PHP 7.4
FreeBSD
I have an idea to have each new release be attached to the pantone color for that year so that we have something interesting for each year.
You can have it listed in phpinfo(), have it used in the logo, have it used as an Easter egg, Have it used as a special color, have it used in the elephpant, etc.
2022's color of the year is 'Very Peri' (PANTONE 17-3938
)
It would be implemented as #6667AB
or rgb(102, 103, 171)
and would improve everything.
It even has it's own website at https://veryperi.me/
In release info page
web-php/releases/8.1/release.inc
Line 240 in 50be982
web-php/releases/8.1/release.inc
Line 259 in 50be982
I think min 5 -> 6 is a typo
From manual page: https://php.net/resource
I'm trying to build a discord bot that fetches php code references from a command. I was able to do this with WordPress code references since they have an API available. Does PHP.net have an API that I can tap into? Or is there another way you can recommend I try this? Basically I just need the reference name, description, and link to the page for more information.
# yum install php81-php-xml
Last metadata expiration check: 0:36:12 ago on Wed 20 Jul 2022 11:04:15 AM CST.
Error:
Problem: cannot install the best candidate for the job
- nothing provides libgcrypt.so.11()(64bit) needed by php81-php-xml-8.1.8-1.el7.remi.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Steps to reproduce:
Expected result:
Observed result:
Running
curl -v https://www.php.net/include/branches.inc
allows me to download include/branches.inc
.
Hello,
Surfing on that web, I saw a website copyright page that said all rights reserved, but you are free to view, download and print the contents. However, the logo has a Creative Commons Attribution-Share Alike 4.0 International license, so I thought, different graphical elements for that website were licensed under various licenses. However, I did not find all licenses for code, text, images, etc. Can I find it on some place?
Thanks in advanced.
I've noticed since (roughly) early 2022 that php.net has been loading much (intermittently) slower than it has since I started using it over a decade ago.
I'm reaching the site from multiple networks / devices / home / office (most of which are 1GB/1GB) and it persists so it's not my network connection.
Pages that used to take < 1 sec to load, can take up to 4 - 7 seconds now during certain times of day (haven't tried finding a pattern). Obviously manageable, but I found these load times very odd as it's an important, text based site.
Anyone else notice this?
Adding a "hacktoberfest" tag to the repository may result in more people contributing to the code.
First time submitting an issues to this project.
ViewSource links are broken in Japanese php manual page.
This issues is happening in pt_BR, zh, fr, de, ja, ro, ru, es and tr.
#Procedure
1, open php Documentation page.
2, choose「 Japanese」 from View Online.
3, open Japanese php manual page.
4, push 「ViewSource」 from Japanese php manual page footer.
5, 「404 This is not web page you are looking for.」is displayed.
From ja manual page : https://github.com/php/web-php/blob/master/manual%2Fja%2Findex.php
Regards.
PHP.net uses different files for header and footer then web-shared. This is not really optimal, because when something gets updated here it won't get updated on other pages.
Following the merge of #408 and #604, we could switch from PSR-4 autoloader implementation taken from php-fig/fig-standards
to using composer
autoloading.
In order to do so, we would need to run
composer install --no-dev --optimize-autoloader
or - given that we currently do not have any production dependencies - at least
composer dump-autoload --optimize
Is there a chance we can document the deployment steps, or modify them in any way?
Hey guys, can you add search capability for the documentation downloadable files? it doesn't even have to be written in php, it can just be like the one in python documentation files, JavaScript, so it can be run from regular HTML files.
Thanks.
i not receive msg in socket
if disable wifi or 5g i not receive msg of disconnect
stream_socket_server("tcp://192.168.1.3:44", $error, $errorW1,
STREAM_SERVER_BIND | STREAM_SERVER_LISTEN, stream_context_create( /["ssl" => [ "local_cert"=> "{$diretorio}certification/server.crt", "local_pk"=> "{$diretorio}certification/server.key", "disable_compression" => true, "verify_peer"=> false, "ssltransport"=> "tlsv1.3"]]/ ))
have one solution? for check client list on or off for remove data in sql
Steps to reproduce:
Observed result:
Expected result:
Hello there,
I use below code to get folder list in gmail and kakao.com. This is working fine in gmail but not working in kakao.com.
Code :
$mbox=imap_open("{imap.gmail.com:993/imap/ssl}", "user", "pass");
$list = imap_getmailboxes($mbox, "{imap.gmail.com:993/imap/ssl}", "*");
$mailbox=null;
$mailbox_name='';
$number=0;
foreach ($list as $key ) {
echo $key->name; echo "
";
}exit;
Here in Gmail I got result like :
Inbox
Sent Messages
Drafts
Spam and may more
Here in kakao.com got result like :
Inbox
Sent Messages
Drafts
???8?????h
Can I got all folder name as readable folder name ?
Let me know it is possible or not.
Was writing out a note to add to the array_filter()
page and when I hit the Preview button under the text field, it just refreshes the page and loses all query params. Checked console and looks like the jQuery script tag's sha384
hash doesn't match and so jQuery isn't loaded on the page.
EDIT: Was playing around more and realized Preview feature doesn't work unless you do the math captcha thing, which I assumed was only needed to submit. So, I can preview my note, but the page still refreshes with all query params missing. Not sure if the jQuery thing and the loss of query params thing is related.
Here's the console output:
None of the “sha384” hashes in the integrity attribute match the content of the subresource. add-note.php
Uncaught TypeError: can't access property "isArray", c is undefined
<anonymous> https://www.php.net/cached.php?t=1421837618&f=/js/ext/typeahead.min.js:1
<anonymous> https://www.php.net/cached.php?t=1421837618&f=/js/ext/typeahead.min.js:1
cached.php:1:383
Uncaught ReferenceError: jQuery is not defined
<anonymous> https://www.php.net/cached.php?t=1653918602&f=/js/search.js:403
cached.php:403:1
Uncaught ReferenceError: jQuery is not defined
<anonymous> https://www.php.net/cached.php?t=1637324403&f=/js/common.js:18
<anonymous> https://www.php.net/cached.php?t=1637324403&f=/js/common.js:18
cached.php:18:147
<anonymous> https://www.php.net/cached.php?t=1637324403&f=/js/common.js:18
<anonymous> https://www.php.net/cached.php?t=1637324403&f=/js/common.js:18
I'm on Firefox 102.0b3 (64-bit) on Windows 10.
Hi, this is not an issue, but more directed as a tip.
Should you not mention that php.net has:?
https://opencollective.com/phpfoundation
on https://www.php.net/manual/de/pcre.constants.php the "Report a Bug" is broken.
https://github.com/php/doc-de/issues/new?body=From%20manual%20page:%20https:%2F%2Fphp.net%2Fpcre.constants%0A%0A--- just shows the 404 error
Hi,
pecl-database-pdo_informix is the repository for PDO_INFORMIX driver for informix server. From long time no one has contributed this repository. But recently we have customer request to upgrade the code for php 8.1, but all the previous contributors names got deleted, so no one is there to approve the PR. Can you please help us to get the below PR approved.
php/pecl-database-pdo_informix#2
Also if you can help us to get the admin rights for the repository pecl-database-pdo_informix, it will more helpful for our team.
search php.net for e.g. mysqli_fetch_row
does not find a corresponding manual page
see https://www.php.net/manual-lookup.php?pattern=mysqli_fetch_row&scope=quickref
Hi,
The following files are referred to and fetched from phd when building with the PHP
package (in phpdotnet/phd/Package/PHP/ChunkedXHTML.php
):
While the phd project is shipped under MIT/BSD licenses, web-php and its files have no other license notices other than the notice on copyright.php which says that the design and layout of php.net is protected by trade dress and should not be copied nor imitated. Does this apply to both files above? In special, styles/theme-base.css seems to be derived from bootstrap, and the apache license disclaimer was kept. Is it still ditributed through the apache license then?
My concern is regarding the possibility of preparing and shipping offline documentation for users in Debian/Ubuntu.
Thanks!
When NetBSD's wget-like command line ftp program (called nbftp) attempts to fetch php tarballs, an error is returned:
Trying [2a02:cb40:200::1ad]:443 ...
Requesting https://www.php.net/distributions/php-8.0.17.tar.xz
ftp: Error retrieving file `503 Service Temporarily Unavailable'
On the same machine, wget succeeds, so it appears the web servers are blocking nbftp's user-agent (NetBSD-ftp/20210826, where 20210826 is the version).
Although this is a web server issue and not a php issue, I cannot contact the webmasters as listed on https://www.php.net/contact.php because the address there requires senders be subscribed.
All
NetBSD
Why does the code send a POST request to https://main.php.net
when submitting a note? How can I locally submit a note? This repo doesn't contain that file from what I can see, and yet the notes are read using a simple function in this repo. How does this work?
Line 97 in 16f4045
Please add the following into the website source code header:
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
Android 12
OUI 4.1
Browser Edge 107
From manual page: https://php.net/function.http-build-url
This page can be accessed through search engine results, although it is empty.
Is this an expected behaviour?
The facility to subscribe to mailing lists at https://www.php.net/mailing-lists.php is not working. Any attempt to subscribe returns the error:
We were unable to subscribe you due to some technical problems.
Please try again later.
Furthermore, trying to report this problem isn't as easy as it ought to be, I'm not sure if this is the right place. The Contact page says that the bug tracker must be used, but that is no longer accepting new reports. There is no link to this repository in the suggested alternatives.
Hey there!
I'd like to report a security issue but cannot find contact instructions on your repository.
If not a hassle, might you kindly add a SECURITY.md
file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.
Thank you for your consideration, and I look forward to hearing from you!
(cc @huntr-helper)
The PHP Releases RSS/ATOM feed does not pass validation in the W3C Feed Validator. As a result of the failures, the feed cannot be added to several feed readers (including the Slack RSS feed reader).
For various reasons including search indexing and server performance include PageGen time in the footer of each generated page.
From manual page: https://php.net/function.array-walk
First time submitting a bug to this project. I'm not sure which project this should go under, but I just clicked the "Report a bug" link from the docs.
Similar scenario but with a help page as an intermediary.
Clicking results from the dropdown doesn't have this issue.
There is case that does not get right result with search using non-ascii keyword.
On browser.
コンストラクタ
= Constructor
)Search php.net for コンストラクタ
under search-input. (see image)/results.php
In /results.php
%u30B3%u30F3%u30B9%u30C8%u30E9%u30AF%u30BF
into textarea under page titleIn /results.php
コンストラクタ
into textarea under page titleTLDR;
From a legal perspective (repo license), can I clone this repository, use an existing function and store the result on one of my own repositories?
I have an internal software checking if my projects are up to date with currently active PHP versions.
I found the active.php
website page which provides exactly what I need.
It worked like a charm for a while, but since recently I can't fetch anymore that url as I'm blocked by a kind of DDOS prevention mechanism.
I fully understand the need for that kind of mechanism, but thing is, now my software is stuck and become quite useless
And I found nothing else to rely on at the moment.
As I understand the primary goal of https//php.net website is not really to provide that kind of feature, I had the following idea:
active.php
page provides currently (basically, simple php script including branches.inc
to be able to access get_active_branches()
function)That way would avoid php.net to implement a real API (and all mechanism it would imply) while keeping anyone the ability to access that information.
However, I'm not 100% sure it's OK from a legal matter. I checked the repository license, but it's actually the license of the website itself, so it's confusing a bit.
Moreover, I do not really copy/modify/etc the content of the repo, I'm just using the existing content.
Do you have some advices ?
Thanks a lot.
Related issues:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.