Questions tagged [php]
PHP is a widely-used general-purpose scripting language that is especially suited for Web development. Questions about programming in PHP are off-topic and should be asked on Stack Overflow.
811
questions with no upvoted or accepted answers
16
votes
2
answers
3k
views
High CPU usage running Symfony on PHP-CLI
I have a Dell laptop with Intel i7 5th generation running Windows 10 x64 and PHP 5.6.17 x86 environment. When I run a fresh installation of Symfony 3.0 using php-cli:
php bin/console server:run
In ...
7
votes
1
answer
10k
views
How to log php error in a separate file?
I just did an upgrade of my server to Fedora 17 and merged some configuration files containing .rpmnew into the existing ones. I have been successfully logging my php errors in a separate log file by ...
5
votes
1
answer
6k
views
How to enhance Notepad++ to support Laravel blade syntax highlighting in a PHP file?
After looking online I cannot find any info on enhancing N++ to support syntax highlighting for Laravel's Blade syntax (*.blade.php).
Example: demo.blade.php
<html>
<head>
&...
4
votes
0
answers
600
views
How to fix this PhpStorm, Docker and PhpUnit issue?
I have three docker containers:
prefix-php-fpm
prefix-mysql
prefix-mysql-test
I have configured Docker, remote PHP interpreter and PhpUnit in PhpStorm.
But when i run tests which requires DB ...
4
votes
0
answers
2k
views
Setup default PHP version in Plesk 12
I've just setup a Plesk 12 CentOS6 vServer. I installed some PHP-versions like 5.4, 5.5 and 5.6. The customers can change the running PHP version in the interface. All is working fine, but I have one ...
4
votes
0
answers
2k
views
Apache2 + Php + Pthreads HowTos
I'm running Ubuntu 14.04 LTS 64 bit. What I would really love to do is sudo apt-get install libapache2-mod-php5 but compile PHP with --enable-maintainer-zts so I could later install pthreads with pecl ...
4
votes
0
answers
2k
views
php interactive mode gives no prompt
I'm running Windows 7. I just downloaded the "binaries and source" distribution of Php 5.4.6.
When I unzip the download and navigate into the directory and enter the command php.exe -a on my command ...
4
votes
2
answers
5k
views
How do I upgrade PHP on CentOS and Kloxo?
I need to upgrade PHP so that I can upgrade joomla on my dedicated server. I have:
kloxo 6.1.6
php-5.2.17-1
Linux CentOS-55-64-minimal 2.6.18-194.32.1.el5 x86_64 x86_64 x86_64 GNU/Linux
I searched ...
4
votes
0
answers
3k
views
What is the solution for printing plastic ID cards from a PHP/MySQL Application?
I have a student management system written in PHP with a MySQL backend and I need to implement a solution to print the student's College ID to a plastic ID Card Printer.
The possible solutions i can ...
3
votes
0
answers
2k
views
Apache2 MPM event: More threads vs more processes?
We're running an Apache2 web server with MPM event and PHP-FPM. To serve high traffic with minimal server resources I did some research about how to configure MPM best.
Let's say we want to serve a ...
3
votes
0
answers
516
views
PHP cURL's TCP_FASTOPEN option is not available
According to php.net, the PHP cURL option CURLOPT_TCP_FASTOPEN is available since cURL version 7.49.0 and PHP version 7.0.7.
According to what phpinfo reports on my server, i'm running PHP 7.3.7 and ...
3
votes
1
answer
5k
views
PHP extension enabled but not loaded on Apache
For some reason, my php extensions are enabled, but not loaded by my Apache 2.4 server. The extensions I am missing are mbstring and fileinfo. I did the installation manually and I wish to keep it ...
3
votes
0
answers
433
views
Mongodb PHP Driver MacOS Unsigned package error
I installed MongoDB driver for PHP with the following command
sudo pecl install mongdodb
I had to disable "csrutil" at reboot to be able to run the above command. After installing the package I ...
3
votes
0
answers
2k
views
Can't compile PHP 7.2.2 with OpenSSL 1.1.0g
So i'll get to the point.
I want to compile PHP 7.2.2 on my Raspberry Pi (v1) with OpenSSL support. I have OpenSSL 1.1.0g installed with i compiled.
Output from uname -a:
Linux 4.4.50+ #1 Tue Mar 7 ...
3
votes
0
answers
723
views
Configuring PHP for MongoDB on Mac OS X Sierra
I'm having some difficulty configuring PHP to integrate with MongoDB on my Mac.
I can confirm that PHP is running correctly, and the php.ini file I am tinkering with is the correct one (I can see ...