Git Product home page Git Product logo

web-php's Issues

Improve the thanks.php page

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.

Separate manual by PHP major versions

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:

  • Define special attribute to content sections/blocks: <programlisting role="php" class="php5 php7"> or <programlisting role="php" php-ver="5 7">
  • Add select PHP version to class/function pages: 5, 7, 8 and any (default)
  • Toggle visible sections/blocks by select version

If class/function page not have element <refsect1 role="changelog">, then auto generates this section:

  • Generate class/function stubs on build releases (I'm think many users say "thank you" if you adding stubs for inner/native classes in to release)
  • Calculate diff between stubs for latest releases of major versions: 5-7, 7-8

link to mirrors is broken on confirmation page "php.net/manual/add-note.php"

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.

Code examples no longer copy properly when using Firefox

Firefox has recently released a "bugfix" that causes it to copy &nbsp; as a unicode non-breaking space \xC2\xA0.

All code examples in the manual appear to use &nbsp; 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.

How to set my default language to English

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.

Documentation – table layout in 'List of resource types' is broken

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.

image

<!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 -->
            <!--[…]-->

Serve `*.php.net` sites with HSTS and preload them

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.

Intro adjustments proposal

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.

php2

Animated comparison:
Comparisson

www.php.net blocks "fetch libfetch/2.0" user-agent

Description

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 Version

PHP 7.4

Operating System

FreeBSD

Suggestion: Change each PHP release's color to the color of the release year

Proposal

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.

Ways to Attach

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.

Color of This Year

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/

Does php.net have an API that I can use to fetch code references?

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.

Error when installing php81-php-xml: nothing provides libgcrypt.so.11()(64bit)

# 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)

No specific license for that website?

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.

php.net running slowly

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?

View Source link broken in manual pages

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.

Use web shared

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.

Document deployment process

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?

Better search

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.

not reveice disconnect msg from andoid if disable wifi and 5g

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

Need to get proper readable folder name using imap function

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.

jQuery script hash doesn't match on php.net/manual/add-note.php, so no jQuery. Previewing note wipes query params for the note's destination page.

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.

Need your help to merge the PR https://github.com/php/pecl-database-pdo_informix/pull/2

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.

Regarding the license of the stylesheets referenced in phd and redistribution

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!

php.net blocks nbftp user-agent

Description

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.

PHP Version

All

Operating System

NetBSD

Submitting new notes

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?

"https://main.php.net/entry/user-note.php",

Compatibility modification

Please add the following into the website source code header:
<meta http-equiv="X-UA-Compatible" content="IE=Edge">

<br> not working??

'main_subtitle' => 'PHP 8.2 é a grande atualização da linguagem PHP.<br class="display-none-md">Esta atualização inclui muitos novos recursos e otimizações. Classe somente leitura, tipo independente, null, false e true como tipos stand alone, propriedades dinâmicas obsoletas, melhorias de desempenho e muito mais.',

This line has a tag <br>, but on the mobile page, the letters run out of space between them

photo_2022-12-14_10-24-26

Android 12
OUI 4.1
Browser Edge 107

Mailing list subscribe page not working

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.

Trying to get in touch regarding a security issue

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)

Search function resets language preference

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.

  1. Go to a page in the documentation where you can change the language.
  2. Set browser language to something other than your browser's default language.
    1. For example, my browser is set to Japanese, but I chose to use the documentation in English.
  3. Go to the search bar and type in a valid top level function name and hit enter. E.g. "count". (Do not click something from the dropdown.)
    Expected: The resulting page is in the language I set (English).
    Actual: The resulting page is in Japanese.
    After that, clicking links will also stay in Japanese until I set my language again.

Similar scenario but with a help page as an intermediary.

  1. Go to a page in the documentation where you can change the language.
  2. Set browser language to something other than your browser's default language.
    1. For example, my browser is set to Japanese, but I chose to use the documentation in English.
  3. Go to the search bar and type in an invalid top level function name and hit enter. E.g. "impld". (Do not click something from the dropdown.)
  4. In the resulting help page, it will say "impld doesn't exist. Closest matches:" in English (regardless of your chosen language preference or browser's default language I think).
  5. Click on one of the listed matches.
    Expected: The resulting page is in the language I set (English).
    Actual: The resulting page is in Japanese.
    After that, clicking links will also stay in Japanese until I set my language again.

Clicking results from the dropdown doesn't have this issue.

Non-ASCII text searching from search bar is not working rightly.

Description

There is case that does not get right result with search using non-ascii keyword.

Steps to reproduce

On browser.

  1. Access PHP website
  2. Input Japanese text on search-input on header(ex: コンストラクタ = Constructor)
  3. Click Search php.net for コンストラクタ under search-input. (see image)
  4. Wait to display /results.php

Actually

In /results.php

  • Put %u30B3%u30F3%u30B9%u30C8%u30E9%u30AF%u30BF into textarea under page title
  • Search-result is not found (display no results)
PHP_.Hypertext.Preprocessor.-.Google.Chrome.2022-05-27.23-34-42.mp4

Expected

In /results.php

  • Put コンストラクタ into textarea under page title
  • Display many search-results.

[Question] Legal matter regarding using that repo to generate and store currently active php versions

TLDR;
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?


Hello,

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:

  • Create a dedicated repo on my side and clone that one thanks to a github action
  • Retrieve the same content as what active.php page provides currently (basically, simple php script including branches.inc to be able to access get_active_branches() function)
  • Store the result inside my own repo

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:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.