Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-29 Thread Greg Wooledge
disappeared too.) > So, I want to say again that the errors shown in the text below (S instead > of $, ` inst of ') are not errors that I made in the php script, which > scripts I write using old vi (vim). This was due to the fact that some parts > of my messages here were typed using Libr

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-29 Thread Bernard
instead of $, ` inst of ') are not errors that I made in the php script, which scripts I write using old vi (vim). This was due to the fact that some parts of my messages here were typed using LibreOffice and parts were copy/pasted here. So, my actual concern still is that I can't get a php

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-28 Thread Greg Wooledge
On Thu, Mar 28, 2024 at 10:36:01AM +0100, Bernard wrote: > But I've found more problems, concerning $_REQUEST, $_GET... > > The old way that I used 11 yrs ago no longer works : > > $nom = S_GET [‘nom’] ; > > no longer operates with php 7.4. This code is simply ignored. S

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-28 Thread Bernard
operates with php 7.4. This code is simply ignored. S_REQUEST, $_POST do not work either. Could someone show me how I should write these few lines dating 2010… (worked at least till 2013), which code is now ignored by php 7.4 with no explanations since I don’t have debugging function active

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-26 Thread Jeffrey Walton
On Tue, Mar 26, 2024 at 1:17 PM Marco Moock wrote: > > Am 26.03.2024 um 10:33:59 Uhr schrieb Bernard: > > > I have the two // in the displayed error messages. However the file > > is where it should be, without double // > > The this seems to be a bug because if it searches for //file it will >

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-26 Thread David Wright
On Tue 26 Mar 2024 at 09:43:37 (-0400), Cindy Sue Causey wrote: > On Tue, Mar 26, 2024 at 6:04 AM Bernard wrote: [ … ] > > $ php -m | grep mysqli > > > > "If the MySQLi extension is enabled, we’ll see mysqli in the output. > > Otherwise, the output will be em

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-26 Thread Marco Moock
Am 26.03.2024 um 10:33:59 Uhr schrieb Bernard: > I have the two // in the displayed error messages. However the file > is where it should be, without double // The this seems to be a bug because if it searches for //file it will definitely not find it. Can you use strace to verify that? --

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-26 Thread Cindy Sue Causey
ams I wrote. > > I discovered that this was due to errors I made in the php program. The > errors in the script being corrected, mysqli_connect, mysqli_select_db, > mysqli_query... now do operate... despite the errors concerning mysqli.so > that I discovered when running the tests wh

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-26 Thread Bernard
I have progressed a little in my trials. mysqli.so still shows the previously described problems, and I thought that this was responsible of the fact that mysqli functions were apparently discarded in the test programs I wrote. I discovered that this was due to errors I made in the php

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-26 Thread Bernard
ls -Al /usr/lib/php/20190902 total 7732 -rw-r--r-- 1 root root   34920  9 juin   2023 calendar.so -rw-r--r-- 1 root root   14440  9 juin   2023 ctype.so -rw-r--r-- 1 root root   92264  9 juin   2023 exif.so -rw-r--r-- 1 root root  161896  9 juin   2023 ffi.so -rw-r--r-- 1 root root 5744752  9

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-26 Thread Bernard
On 24/03/2024 20:02, Marco Moock wrote: Am Sun, 24 Mar 2024 19:51:05 +0100 schrieb Bernard : '//usr/lib/php/20190902/mysqli.so' Is that really the path in the message? The 2 // must not be there. I have the two // in the displayed error messages. However the file is where it should

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-24 Thread Jeffrey Walton
On Sun, Mar 24, 2024 at 5:57 PM Bernard wrote: > > Hi to Everyone ! > > PHP Warning: PHP Startup: Unable to load dynamic library > '//usr/lib/php/20190902/mysqli.so' However, the file is there... not human > readable as expected and mysqli_connect doesn't operate. Please

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-24 Thread Geert Stappers
On Sun, Mar 24, 2024 at 07:51:05PM +0100, Bernard wrote: > *PHP Warning: PHP Startup: Unable to load dynamic library > '//usr/lib/php/20190902/mysqli.so' |$ apt-file search mysqli.so |php8.2-mysql: /usr/lib/php/20220829/mysqli.so |$ So on my system, trixie, I would do `sudo apt install

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-24 Thread Marco Moock
Am Sun, 24 Mar 2024 19:51:05 +0100 schrieb Bernard : > '//usr/lib/php/20190902/mysqli.so' Is that really the path in the message? The 2 // must not be there.

Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

2024-03-24 Thread Bernard
Hi to Everyone ! *PHP Warning: PHP Startup: Unable to load dynamic library '//usr/lib/php/20190902/mysqli.so' * *However, the file is there... not human readable as expected* *and mysqli_connect doesn't operate.* *Thanks in advance for your help* *Bernard*

Re: Bug on upgrade to bookworm with Apache/PHP?

2023-12-30 Thread Charles Curley
> Should be removed and replaced with a link to > > php8.2.conf -> ../mods-available/php8.2.conf > php8.2.load -> ../mods-available/php8.2.load > > > Is this known about? > > Andrew > You might want to disable any php 7.4 modules and enable php8.2.conf and php8.

Re: Bug on upgrade to bookworm with Apache/PHP?

2023-12-30 Thread Dan Ritter
Andrew Wood wrote: > This is because the php7.4 files have now been replaced with php8.2 > > Specifically sym linsk in  /etc/apache2/mods-enabled/ which link to  > /etc/apache2/mods-available/ > php7.4.conf -> ../mods-available/php7.4.conf > php7.4.load -> ../mods-available/php7.4.load > >

Bug on upgrade to bookworm with Apache/PHP?

2023-12-30 Thread Andrew Wood
Found the following issue when running an upgrade. Apache refuses to restart with error: apache2_reload: Your configuration is broken. Not restarting Apache 2 apache2_reload: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of

Re: Problem with php after upgrading to Bookworm

2023-12-14 Thread Charles Curley
On Thu, 14 Dec 2023 23:26:47 +0200 Alexis Grigoriou wrote: > On Thu, 2023-12-14 at 12:28 -0700, Charles Curley wrote: > [...] > [...] > [...] > > [...] > > root@bfs# dpkg-query --show 'php*' > php-amqp > php-apcu … > php-yaml

Re: Problem with php after upgrading to Bookworm

2023-12-14 Thread Alexis Grigoriou
On Thu, 2023-12-14 at 12:28 -0700, Charles Curley wrote: > On Thu, 14 Dec 2023 19:24:19 +0200 > Alexis Grigoriou wrote: > > > All > > I see is probably the php code. If I remember correctly, before the > > upgrade php 7.4 was installed in my Bulleye installation. T

Re: Problem with php after upgrading to Bookworm

2023-12-14 Thread Alexis Grigoriou
On Thu, 2023-12-14 at 18:07 +, Michael Kjörling wrote: > On 14 Dec 2023 19:24 +0200, from ale...@nanoid.net (Alexis > Grigoriou): > >  As the subject states pages using php won't disply in the browser. > > All > > I see is probably the php code. > > Well, first

Re: Problem with php after upgrading to Bookworm

2023-12-14 Thread Charles Curley
On Thu, 14 Dec 2023 19:24:19 +0200 Alexis Grigoriou wrote: > All > I see is probably the php code. If I remember correctly, before the > upgrade php 7.4 was installed in my Bulleye installation. There is a > directory in /etc/php/7.4, although 8.2 is the default

Re: Problem with php after upgrading to Bookworm

2023-12-14 Thread Michael Kjörling
On 14 Dec 2023 19:24 +0200, from ale...@nanoid.net (Alexis Grigoriou): > As the subject states pages using php won't disply in the browser. All > I see is probably the php code. Well, first things first. What web server are you using to try to serve those pages? -- Michael Kj

Problem with php after upgrading to Bookworm

2023-12-14 Thread Alexis Grigoriou
Greetings, As the subject states pages using php won't disply in the browser. All I see is probably the php code. If I remember correctly, before the upgrade php 7.4 was installed in my Bulleye installation. There is a directory in /etc/php/7.4, although 8.2 is the default in Bookworm

[SOLVED] Uninstalling unwanted PHP and mariadb packages [WAS Re: How could the missing MySQL extension required by WordPress be installed?]

2023-11-11 Thread Susmita/Rajib
reverse to the one I had followed while installing all those packages on the 10th Nov 2023. So what I did was that I noted down his advice on a plain text editor, then opted for "uninstall completely ..." the following packages: php-common apache2 apache2-bin apache2-data mariadb-c

Uninstalling unwanted PHP and mariadb packages [WAS Re: How could the missing MySQL extension required by WordPress be installed?]

2023-11-11 Thread Susmita/Rajib
2023 at 07:42, Susmita/Rajib wrote: > > On Sat, Nov 11, 2023 at 05:44:29PM +0530, Susmita/Rajib wrote: > > Apologise for the typos and incorrect sentence constructions in my [ ... ] > > Possible? > > > > I'd suggest you remove > > php-common &g

Uninstalling unwanted PHP and mariadb packages [WAS Re: How could the missing MySQL extension required by WordPress be installed?]

2023-11-11 Thread Andrew M.A. Cater
ommit Log for Fri Nov 10 21:13:50 2023 > > Installed the following packages: > default-mysql-server-core (1.0.7) > > > > Commit Log for Fri Nov 10 21:25:16 2023 > > Installed the following packages: > php-common (2:76) > php-mysql (2:7.4+76) > php7.4-common

Re: php 7.4 and bookworm

2023-06-28 Thread John Covici
Mostly its with apache and the freepbx application which uses a lot of php applications which were originally installed with php 7.4 and then Debian upgraded all of them to php 8.2. I have already changed the php.default to 7.4 and changed the mods-enabled in apache to php7.4 rather than 8.2

Re: php 7.4 and bookworm

2023-06-28 Thread Greg Wooledge
to reveal how you are using PHP, and which packages are installed. Are you using apache, nginx, or some other web server? Are you using php-fpm, or some kind of "modular" PHP specific to a particular web server? Or something else?

Re: php 7.4 and bookworm

2023-06-28 Thread John Covici
kages or you can use https://deb.sury.org/ > > On 28.06.23 10:46, John Covici wrote: > > Hi. So, I want to upgrade to bookworm, but I have an application > > which needs php 7.4 and I guess they are not yet ready to fix. So, > > how can I keep that version, even if it

Re: php 7.4 and bookworm

2023-06-28 Thread Greg Wooledge
On Wed, Jun 28, 2023 at 10:15:14PM +0200, basti wrote: > if you use mod-php in apache you can use only one php version. > if you use php-fpm you can run multiple php version at the same time. Ah, that explains our differing experiences, then.

Re: php 7.4 and bookworm

2023-06-28 Thread basti
https://packages.sury.org/php/README.txt after add the repo install your needed php7.4-* packages if you use mod-php in apache you can use only one php version. if you use php-fpm you can run multiple php version at the same time. test your app with a phpinfo side. but that was not the topic Am

Re: php 7.4 and bookworm

2023-06-28 Thread John Covici
Hello, > > you can hold the packages or you can use https://deb.sury.org/ > > On 28.06.23 10:46, John Covici wrote: > > Hi. So, I want to upgrade to bookworm, but I have an application > > which needs php 7.4 and I guess they are not yet ready to fix. So, > > how can I

Re: php 7.4 and bookworm

2023-06-28 Thread John Covici
OK, so php was upgraded from 7.4 to 8.2 -- how to get 7.4 back after upgrading to bookworm? How would I use https://deb.sury.org ? Thanks. On Wed, 28 Jun 2023 04:57:42 -0400, basti wrote: > > Hello, > > you can hold the packages or you can use https://deb.sury.org/ > >

Re: php 7.4 and bookworm

2023-06-28 Thread John Covici
Thanks everyone. I will do the upgrade and see if it retains php 7.4. On Wed, 28 Jun 2023 07:01:51 -0400, Greg Wooledge wrote: > > On Wed, Jun 28, 2023 at 04:46:24AM -0400, John Covici wrote: > > Hi. So, I want to upgrade to bookworm, but I have an application > > which n

Re: php 7.4 and bookworm

2023-06-28 Thread Greg Wooledge
On Wed, Jun 28, 2023 at 04:46:24AM -0400, John Covici wrote: > Hi. So, I want to upgrade to bookworm, but I have an application > which needs php 7.4 and I guess they are not yet ready to fix. So, > how can I keep that version, even if its just for that app? In previous releases, when

Re: php 7.4 and bookworm

2023-06-28 Thread Andy Smith
Hi, On Wed, Jun 28, 2023 at 04:46:24AM -0400, John Covici wrote: > Hi. So, I want to upgrade to bookworm, but I have an application > which needs php 7.4 and I guess they are not yet ready to fix. So, > how can I keep that version, even if its just for that app? In <43ff5524-4d

Re: php 7.4 and bookworm

2023-06-28 Thread basti
Hello, you can hold the packages or you can use https://deb.sury.org/ On 28.06.23 10:46, John Covici wrote: Hi. So, I want to upgrade to bookworm, but I have an application which needs php 7.4 and I guess they are not yet ready to fix. So, how can I keep that version, even if its just

php 7.4 and bookworm

2023-06-28 Thread John Covici
Hi. So, I want to upgrade to bookworm, but I have an application which needs php 7.4 and I guess they are not yet ready to fix. So, how can I keep that version, even if its just for that app? Thanks in advance for any suggestions. -- Your life is like a penny. You're going to lose

Re: Machine vérolée (alternatives à PHP)

2023-06-26 Thread Basile Starynkevitch
On 6/26/23 14:01, Michel Verdier wrote: Le 26 juin 2023 Erwann Le Bras a écrit : -SPIP est basé sur PHP ; je ne pense pas que le système SPIP lui-même serait touché (pas assez populaire) , mais les lancement de PHP? Au contraire SPIP a eu son lot de failles, il vaut mieux avoir la dernière

Re: Getting PHP to work with Apache on other directories

2022-09-14 Thread paulf
On Wed, 14 Sep 2022 08:51:56 -0700 Paul Scott wrote: > On 9/14/22 06:49, pa...@quillandmouse.com wrote: > > Folks: > > > > I just installed Debian testing. I do PHP development. I host live > > websites at /var/www/html and development sites at > > /home

Re: Getting PHP to work with Apache on other directories

2022-09-14 Thread Paul Scott
On 9/14/22 06:49, pa...@quillandmouse.com wrote: Folks: I just installed Debian testing. I do PHP development. I host live websites at /var/www/html and development sites at /home/paulf/public_html. I have Apache configured so that localhost/~paulf/ gets me to the sites at /home/paulf

Getting PHP to work with Apache on other directories

2022-09-14 Thread paulf
Folks: I just installed Debian testing. I do PHP development. I host live websites at /var/www/html and development sites at /home/paulf/public_html. I have Apache configured so that localhost/~paulf/ gets me to the sites at /home/paulf/public_html. I have an index.html and a script to test PHP

OT: PHP altijd "open source"?

2022-07-14 Thread Paul van der Vlis
Hallo, Ik ben bezig met een site met WooCommerce, Wordpress, en betaalsystemen zoals Ideal en creditcard-betalingen. Nu gebruik ik graag open source software, waarmee ik bedoel dat de sourcecode te bestuderen is. Mijn vraag is: die Wordpress plugins zijn toch PHP, dat is toch een

Re: [HS] Recherche spécialiste PHP-7

2022-04-27 Thread Daniel Caillibaud
Le 26/04/22 à 15:40, "ajh.valmer" a écrit : > Les différences importantes se situent au passage de php5 vers php7. > Après, les différences de php7 vers php8 sont minimes. Certes, mais minime ne veut pas dire inexistantes ;-) Il y a par ex des fonctions qui étaient deprecated depuis un bon

Re: [HS] Recherche spécialiste PHP-7

2022-04-26 Thread ajh.valmer
On Tuesday 26 April 2022 14:30:14 Daniel Caillibaud wrote: > Le 25/04/22 à 12:00, ajh.val...@bbox.fr a écrit : > > Je recherche un bon spécialiste PHP-7.2. > Euh, je crois que tu peux passer directement à php8.1, 7.2 était maintenue > jusqu'à fin 2020, > 7.3 est déjà en EOL e

Re: [HS] Recherche spécialiste PHP-7

2022-04-26 Thread Daniel Caillibaud
Le 25/04/22 à 12:00, ajh.val...@bbox.fr a écrit : > Bonjour, > > Je recherche un bon spécialiste PHP-7.2. Euh, je crois que tu peux passer directement à php8.1, 7.2 était maintenue jusqu'à fin 2020, 7.3 est déjà en EOL et 7.4 meurt dans 6 mois. Avec 8.1 tu peux tenir jusque fin 2024

[HS] Recherche spécialiste PHP-7

2022-04-25 Thread ajh . valmer
Bonjour, Je recherche un bon spécialiste PHP-7.2. Objectif : modifier les scripts PHP-5.6 en scripts PHP-7.2 d'un site Web sous Linux, et Apache2. Possibilté d'une rémunération. Merci d'avance de me contacter en privé à mon mail : ajh.val...@bbox.fr Bonne journée. A. Valmer

Re: PHP fast-cgi en mod_php

2021-11-23 Thread Vincent Lammens
On 23/11/2021 12:52, Paul van der Vlis wrote: Hoi, Ik moet een server met php en Apache overzetten naar een nieuwe virtuele machine. Maar ik heb vooral ervaring met mod_php. Ik overweeg de klant te vragen of het geen mod_php mag worden. Klant is een bedrijfje met PHP programmeurs. Zal het voor

PHP fast-cgi en mod_php

2021-11-23 Thread Paul van der Vlis
Hoi, Ik moet een server met php en Apache overzetten naar een nieuwe virtuele machine. Maar ik heb vooral ervaring met mod_php. Ik overweeg de klant te vragen of het geen mod_php mag worden. Klant is een bedrijfje met PHP programmeurs. Zal het voor hen veel uitmaken? Moet er bijvoorbeeld code

Re: Buster Apache php website in other lang than os

2021-04-20 Thread john doe
On 4/20/2021 1:15 PM, IL Ka wrote: What do I need to do in Apache and in PHP for it to properly render the language the website is written in? Do I need to generate the locales for the desired languages? Do I need to also do something in Apache? Just write your document and save it in utf

Re: php -f index.php works but not when access from apache Debian Bullseye

2021-04-20 Thread john doe
On 4/20/2021 8:10 PM, john doe wrote: Debians, I'm working on a website mixing PHP and HTML, if I do the command 'php -f index.php' it works, but in Apache it is not working. I don't understand what Im doing rong, Aache'slog is not giving any clue. I'm not sure what to do to understand where

php -f index.php works but not when access from apache Debian Bullseye

2021-04-20 Thread john doe
Debians, I'm working on a website mixing PHP and HTML, if I do the command 'php -f index.php' it works, but in Apache it is not working. I don't understand what Im doing rong, Aache'slog is not giving any clue. I'm not sure what to do to understand where this is coming from. Any help

Re: Buster Apache php website in other lang than os

2021-04-20 Thread IL Ka
> > > What do I need to do in Apache and in PHP for it to properly render the > language the website is written in? > > Do I need to generate the locales for the desired languages? > Do I need to also do something in Apache? > Just write your document and save it in u

Buster Apache php website in other lang than os

2021-04-20 Thread john doe
Hello all, I'm playing with Apache2 and php. I'm making a website in an other language than the one Debian Buster is using. That is, Buster is in English but the website is written in Duch or any other language then English. What do I need to do in Apache and in PHP for it to properly render

Re: PHP 8 et Bullseye ( Debian 11 )

2021-03-24 Thread Louis-Philippe
encore et seulement dans SID > > (voir texte en gras). Depuis le temps qu'il est publié, je suis surpris > > qu'il ne soit pas dans testing. En version stable, PHP est rendu à > 8.0.3... > > > > En date du 22 mars, est-ce qu'il y a des chances chance que PHP 8 soit > &

Re: PHP 8 et Bullseye ( Debian 11 )

2021-03-22 Thread Étienne Mollier
Louis-Philippe, on 2021-03-22 09:03:06 -0400: > Je m'inquiète pour le paquet PHP8 qui est encore et seulement dans SID > (voir texte en gras). Depuis le temps qu'il est publié, je suis surpris > qu'il ne soit pas dans testing. En version stable, PHP est rendu à 8.0.3... > > En

PHP 8 et Bullseye ( Debian 11 )

2021-03-22 Thread Louis-Philippe
gras). Depuis le temps qu'il est publié, je suis surpris qu'il ne soit pas dans testing. En version stable, PHP est rendu à 8.0.3... En date du 22 mars, est-ce qu'il y a des chances chance que PHP 8 soit inclu dans la prochaine version stable ? Merci à vous tous, [1] https://lists.debian.org

Re: php-pear etc. on an Apache2 server [resolved]

2021-02-19 Thread Gary Dale
php coding because there seem to a lot of sample code out there for things I want to do. Usually they work right away when I try running them after having installed libapache2-mod-php. Right now I'm trying to get a script working that is actually fairly small and seems straightforward

Re: php-pear etc. on an Apache2 server [resolved]

2021-02-19 Thread Gary Dale
On 2021-02-18 09:06, Gary Dale wrote: On 2021-02-16 17:56, Gary Dale wrote: I'm running Buster on my local server which, among other things, I use for developing web sites before copying them onto a public host. I've recently been getting into a little php coding because there seem to a lot

Re: php-pear etc. on an Apache2 server [resolved]

2021-02-18 Thread Gary Dale
On 2021-02-16 17:56, Gary Dale wrote: I'm running Buster on my local server which, among other things, I use for developing web sites before copying them onto a public host. I've recently been getting into a little php coding because there seem to a lot of sample code out there for things I

Re: [HS] suite d'opérations arithmétiques en php

2021-02-18 Thread ajh-valmer
l sur du texte entré par un utilisateur ! > Si c'est valide, gros bug de conception de PHP. Je le crois bien. C'est indiquer sur : www.php.net/manual/fr/function.eval.php "Son utilisation est vivement déconseillée" Alors remplacer "eval" par quel autre script ? Merci A. Valmer

php-pear etc. on an Apache2 server

2021-02-16 Thread Gary Dale
I'm running Buster on my local server which, among other things, I use for developing web sites before copying them onto a public host. I've recently been getting into a little php coding because there seem to a lot of sample code out there for things I want to do. Usually they work right away

Re: [HS] suite d'opérations arithmétiques en php

2021-02-16 Thread Vincent Lefevre
On 2021-02-15 19:16:02 +0100, Daniel Caillibaud wrote: > Le 12/02/21 à 20:11, "ajh-valmer" a écrit : > > > > Entrer la suite d'opérations : 2+9*5-7 > > VALIDER : > > echo 2+9*5-7; # code PHP > > réponse : 2+9*5-7 > > > > Par contre, code

Re: [HS] suite d'opérations arithmétiques en php

2021-02-15 Thread Daniel Caillibaud
énoncé, la réponse est dans ces 2 pages sus citées : > > La voici : C'est un fichier php que tu fais passer par un serveur web qui interprète le php ? Parce que je vois pas les tags > > Entrer la suite d'opérations : 2+9*5-7 > VALIDER : > echo 2+9*5-7; # code PHP > réponse

Re: [HS] suite d'opérations arithmétiques en php

2021-02-12 Thread ajh-valmer
On Thursday 11 February 2021 22:00:36 Daniel Caillibaud wrote: > Le 11/02/21 à 15:20, "ajh-valmer" a écrit : > > php -r 'echo 2+9*5-7;'` : ne fonctionne pas. > Alors il te manque le paquet php-cli : Il est installé. > > https://www.php.net/manual/fr/language.operat

Re: [1/2HS] suite d'opérations arithmétiques en php

2021-02-12 Thread lann
Bonsoir Pour moi c'est la même chose : php -r 'echo 2+9*5-7;' retourne bien 40 Debian Buster avec php : PHP 7.3.19-1~deb10u1 (cli) (built: Jul 5 2020 06:46:45) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.19, Copyright (c) 1998-2018 Zend Technologies with Zend

Re: [1/2HS] suite d'opérations arithmétiques en php

2021-02-11 Thread MERLIN Philippe
Le jeudi 11 février 2021, 15:20:34 CET ajh-valmer a écrit : > On Thursday 11 February 2021 14:39:55 Daniel Caillibaud wrote: > > Le 11/02/21 à 13:09, "ajh-valmer" a écrit : > > > Comment écrire le bon script php pour réaliser cette suite d'opération > > > >

Re: [HS] suite d'opérations arithmétiques en php

2021-02-11 Thread Daniel Caillibaud
Le 11/02/21 à 15:20, "ajh-valmer" a écrit : > php -r 'echo 2+9*5-7;'` : ne fonctionne pas. Alors il te manque le paquet php-cli > > Commence plutôt par https://www.php.net/manual/fr/ > > Tu trouveras la réponse facilement avec le lien précédent, dont > >

Re: [1/2HS] suite d'opérations arithmétiques en php

2021-02-11 Thread ajh-valmer
On Thursday 11 February 2021 14:39:55 Daniel Caillibaud wrote: > Le 11/02/21 à 13:09, "ajh-valmer" a écrit : > > Comment écrire le bon script php pour réaliser cette suite d'opération > > sur une seule ligne ? : p. ex. 2+9*5-7 : > Je comprend pas bien le pb… `php

Re: [1/2HS] suite d'opérations arithmétiques en php

2021-02-11 Thread Daniel Caillibaud
Le 11/02/21 à 13:09, "ajh-valmer" a écrit : > Hello à tous, > > Comment écrire le bon script php pour réaliser cette suite d'opération > sur une seule ligne ? : p. ex. 2+9*5-7 Je comprend pas bien le pb… `php -r 'echo 2+9*5-7;'` affiche bien 40 > Opération entre 2 val

Re: [1/2HS] suite d'opérations arithmétiques en php

2021-02-11 Thread Basile Starynkevitch
On 2/11/21 1:09 PM, ajh-valmer wrote: Hello à tous, Comment écrire le bon script php pour réaliser cette suite d'opération sur une seule ligne ? : p. ex. 2+9*5-7 Opération entre 2 valeurs, c'est facile : $res=$a+$b; mais moins facile avec la suite ci-dessus. Sans doute par une boucle ? J'ai

[1/2HS] suite d'opérations arithmétiques en php

2021-02-11 Thread ajh-valmer
Hello à tous, Comment écrire le bon script php pour réaliser cette suite d'opération sur une seule ligne ? : p. ex. 2+9*5-7 Opération entre 2 valeurs, c'est facile : $res=$a+$b; mais moins facile avec la suite ci-dessus. Sans doute par une boucle ? J'ai vainement cherché sous gouguel. Cerise

Re: [HS] preg_match php

2021-02-03 Thread Daniel Caillibaud
caractère entre crochets. > Comment présenter la bonne syntaxe de preg_match pour le faire ? Je connais plus trop php mais je dirais if (preg_match("#^[\^0-9+\-*/().]+$#", $v)) { que tu dois pouvoir écrire if (preg_match("#^[0-9^+*/().-]+$#", $v)) { (pas besoin d'échapper

[1/2HS] preg_match php

2021-02-02 Thread ajh-valmer
Bonjour, Je souhaite autoriser ces caractères : ^ 0 à 9 , + - * / . if (preg_match("#[^^\-9*+-/().$]#", $v)) { Ça ne marche pas : l'accent circonflexe (^) marque le début d'une chaîne, et se confond avec l'accent ^ autorisé Comment présenter la bonne syntaxe de preg_match pour le faire

Re: (deb-cat) Sense PHP 8 a Debian 11 ?

2021-01-10 Thread Àlex
Per cert, aquí està la discussió de si PHP 8.0 entra a Debian estable o no, i els motius que donen els mantenidors:    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976811

Re: (deb-cat) Sense PHP 8 a Debian 11 ?

2021-01-10 Thread Àlex
Bones, Aquesta notícia és d'avui de Fedora, però potser dona pistes dels motius pels quals PHP 8.0 no passa a la propera Debian estable que comença a congelar-se passat demà:    https://www.phoronix.com/scan.php?page=news_item=PHP-8.0-For-Fedora-35 Per cert, el nucli 5.10 LTS finalment ha

Re: (deb-cat) Sense PHP 8 a Debian 11 - DPA

2021-01-08 Thread Alex Muntada
Hola Narcis > Tema apart, què és una «Debian DPA» com s'esmenta a sury.org? Hi ha alguns desenvolupadors (DD) que publiquen repositoris de paquets a les seves pàgines personals sota people.debian.org i crec que vol dir Debian/Developer Personal/Package Archive o alguna cosa similar. > Hi ha

Re: (deb-cat) Sense PHP 8 a Debian 11 ?

2021-01-08 Thread Narcis Garcia
El 8/1/21 a les 8:58, Àlex ha escrit: > Bon any nou per tothom. > > Com dius, a inestable PHP ja és proporcionat per php-7.4 i php-8.0, a > escollir. > > Segons com sigui el procés de congel.lació, que no entenc del tot però > està prou explicat a > >    https://

Re: (deb-cat) Sense PHP 8 a Debian 11 - DPA

2021-01-08 Thread Narcis Garcia
El 7/1/21 a les 18:17, Alex Muntada ha escrit: > Hola Narcis > >> Pel què veig aquí: >> https://packages.debian.org/bullseye/php >> >> Tot i que la versió 8 estable de PHP fa un mes i mig que es va >> alliberar, a la propera versió de Debian estable no sembla q

Re: (deb-cat) Sense PHP 8 a Debian 11 ?

2021-01-07 Thread Àlex
Bon any nou per tothom. Com dius, a inestable PHP ja és proporcionat per php-7.4 i php-8.0, a escollir. Segons com sigui el procés de congel.lació, que no entenc del tot però està prou explicat a    https://release.debian.org/bullseye/freeze_policy.html sembla (-seria un canvi gran?-) que si

Re: (deb-cat) Sense PHP 8 a Debian 11 ?

2021-01-07 Thread Alex Muntada
Hola Narcis > Pel què veig aquí: > https://packages.debian.org/bullseye/php > > Tot i que la versió 8 estable de PHP fa un mes i mig que es va > alliberar, a la propera versió de Debian estable no sembla que > vagi a ser inclosa. > > Algú té referències o detal

(deb-cat) Sense PHP 8 a Debian 11 ?

2021-01-05 Thread Narcis Garcia
Pel què veig aquí: https://packages.debian.org/bullseye/php Tot i que la versió 8 estable de PHP fa un mes i mig que es va alliberar, a la propera versió de Debian estable no sembla que vagi a ser inclosa. Algú té referències o detalls sobre aquesta qüestió? Veig que per a «sid/unstable» sí que

Re: bibliothèque pdf pour php[RESOLU]

2020-09-09 Thread Dethegeek
Bonsoir Oui, c'est juste. Il y a peut être des cas exotiques où ce ne sera pas vrai (je laisse une ouverture au scénario de la loi de l'emmerdement perpétuel, pour ma décharge :) ). Un conseil tant que j'y suis : les librairies téléchargées par composer ne doivent en principe pas être

Re: bibliothèque pdf pour php[RESOLU]

2020-09-09 Thread Jose CHARTERS
Le 07/09/2020 à 22:41, Dethegeek a écrit : Si tu as d'autres librairies dans le projet, par cohérence, tu devrais les "convertir" à composer. Ton projet deviendra plus simple à maintenir. Bonsoir, Si je comprends bien, composer installe les librairies dans le répertoire racine du site. Ce

Re: bibliothèque pdf pour php[RESOLU]

2020-09-07 Thread Dethegeek
"magasin" de >> librairies. >> >> Une fois que composer a résolu les dépendances de ton projet et de ta >> nouvelle librairie tu pourras utiliser l'autoload que composer a >> préparé pour accéder à toutes tes librairies. >> >> Cela se fait en PHP avec

Re: bibliothèque pdf pour php[RESOLU]

2020-09-07 Thread Jose CHARTERS
n/fpdi Note : http://packagist.org est le site qui sert de "magasin" de librairies. Une fois que composer a résolu les dépendances de ton projet et de ta nouvelle librairie tu pourras utiliser l'autoload que composer a préparé pour accéder à toutes tes librairies. Cela se

Re: bibliothèque pdf pour php

2020-09-07 Thread Dethegeek
Bonsoir Composer est un outil devenu incontournable pour un projet PHP un minimum moderne. Force est de constater qu'il rend bien service. En gros, beaucoup de langages de programmation ont fini par avoir au moins un gestionnaire de paquet. Pour faire court, debian a apt, JavaScript a npm ou

Re: bibliothèque pdf pour php

2020-09-07 Thread Jose CHARTERS
Le 07/09/2020 à 05:36, Dethegeek a écrit : Apparemment ta librairie est utilisable avec le gestionnaire de paquets composer et est compatible PHP 7 https://packagist.org/packages/setasign/fpdi Basculer vers composer me semble un meilleur choix que s'appuyer sur des paquets de l'OS, tant que

Re: bibliothèque pdf pour php

2020-09-07 Thread Jose CHARTERS
Le 06/09/2020 à 23:22, ajh-valmer a écrit : Tu es bien sous php5 ? Il semble que Debian 9 = php5 et Debian 10 = php7. Il n'y aurait pas un conflit entre les 2 versions de php ? (donc de librairies php pas installables suivant la version de php installée ?) Bonsoir, Je suis sous php7. Debian

Re: bibliothèque pdf pour php

2020-09-06 Thread Dethegeek
Bonjour Apparemment ta librairie est utilisable avec le gestionnaire de paquets composer et est compatible PHP 7 https://packagist.org/packages/setasign/fpdi Basculer vers composer me semble un meilleur choix que s'appuyer sur des paquets de l'OS, tant que ton projet n'a pas vocation à être

Re: bibliothèque pdf pour php

2020-09-06 Thread ajh-valmer
Tu es bien sous php5 ? Il semble que Debian 9 = php5 et Debian 10 = php7. Il n'y aurait pas un conflit entre les 2 versions de php ? (donc de librairies php pas installables suivant la version de php installée ?) On Sunday 06 September 2020 21:12:42 Jose CHARTERS wrote: > Il y a quelq

bibliothèque pdf pour php

2020-09-06 Thread Jose CHARTERS
Bonsoir, Il y a quelques années, j'ai développé un petit site en php. Je devais générer un document en pdf et j'ai utilisé la librairie fpdi. C'était l'époque de Debian 8, Jessie. Je refais maintenant mon serveur en debian 9 ( oui, je sais nous sommes en debian 10, mais ce serveur a été

Re: Nasıl php yükleyebilirim

2020-07-27 Thread Seçkin Alan
Bu tarz mailler atmadan önce detay içeren bilgileri ekler misin? Ne hatası aldın nasıl denedin? On Monday, July 27, 2020, İbrahim Alses wrote: > Gnuroot debian indirdim ve php'yi yukleyemedim yardımcı olur musunuz > -- Seçkin ALAN http://seckinalan.net.tr

Nasıl php yükleyebilirim

2020-07-27 Thread İbrahim Alses
Gnuroot debian indirdim ve php'yi yukleyemedim yardımcı olur musunuz

Wordpress UTF-8 problem after PHP upgrade (from 5.6 to 7.3)

2020-06-23 Thread Christoph K.
Hello, I've just upgraded from PHP 5.6 to PHP 7.3 (and reverted back for now). With PHP 7.3 there is a problem in Wordpress displaying german Umlaute and other UTF-8 related characters. I guess it's just some locale-related setting somewhere, any suggestions? Thanks, Christoph Software

Nginx with PHP 7.4 on Debian Stretch

2020-03-04 Thread Guillermo Céspedes Tabárez
Hola !! Quiero compartir un proyecto que estoy realizando sobre Debian Stretch. Se trata de la construcción de una plataforma web con nginx y php, el nuclo del proyecto es un script de compilación y como resultado se obtiene una distribución por medio de Packer.io (de momento solo Docker a modo

Re: PHP 7.4

2020-01-09 Thread Paul van der Vlis
Op 09-01-2020 om 14:23 schreef Frans van Berckel: Hoi Paul, On Thu, 2020-01-09 at 11:30 +0100, Paul van der Vlis wrote: Ik heb een klant die wil upgraden naar Debian 10 met PHP 7.4, daarmee hebben ze ook hun applicatie getest. Nu heeft Debian 10 normaal PHP 7.3. Ze willen ook geen security

Re: PHP 7.4

2020-01-09 Thread Frans van Berckel
Hoi Paul, On Thu, 2020-01-09 at 11:30 +0100, Paul van der Vlis wrote: > Ik heb een klant die wil upgraden naar Debian 10 met PHP 7.4, daarmee > hebben ze ook hun applicatie getest. Nu heeft Debian 10 normaal PHP > 7.3. > > Ze willen ook geen security updates, want dat zou p

PHP 7.4

2020-01-09 Thread Paul van der Vlis
Hoi, Ik heb een klant die wil upgraden naar Debian 10 met PHP 7.4, daarmee hebben ze ook hun applicatie getest. Nu heeft Debian 10 normaal PHP 7.3. Ze willen ook geen security updates, want dat zou problemen kunnen geven. Hun security model bestaat er eigenlijk uit dat alles via Cloudflare loopt

  1   2   3   4   5   6   7   8   9   10   >