Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

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.

0
votes
0answers
8 views

Installing oauth with 2 versions of php

I have a VPS with Webmin/Virtualmin configured. By default it installed both php5.4 and php7.1. I am trying to install oauth using: pecl install oauth and I am receiving this error: pecl/oauth ...
1
vote
0answers
12 views

Could not convert database value to Doctrine Type json

I`m new user of Symfony 4 framework and i wish to build a correct login system using built-in auth system. However, i got an error while doctrine query. Here is my screenshot: And here is my ...
0
votes
1answer
3k views

How to install Horde Webmail on Ubuntu 14.04?

Am using Ubuntu 14.04. Am stuck with the following issue: My goal is to install and have running HORDER GROUPWARE 5.2 on my Domain/Hosting: Download on Github: https:// github .com/horde/horde/...
0
votes
0answers
12 views

Why Virtualmin refuses to change the PHP version?

Ok, after an AWS upgrade, my PHP version abruptly changed from 7.1.8. to 5.4.16. Previously I was using 7.1.8. To chg back the PHP version to 7.1.8, i tried this. Under Virtualmin -> Server ...
0
votes
0answers
18 views

Cannot load OCI8 on an Ubuntu server

I have installed the PHP OCI8 module using a guide from this page. But when I run my phpfile that has oci_connect it thrown out the page isn't working with error code "HTTP ERROR 500" What did I do ...
1
vote
1answer
12 views

Buildconf not found when compiling php on windows

I am trying to compile PHP on a windows 10 by following below instructions https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2 All steps are ok until I try to perform the buildconf step. In ...
1
vote
1answer
85 views

yum install php dependency errors

I'm trying to install php 5.4 or 5.6 on an Amazon Linux 2 server using this command: yum install php54 This is the output: Loaded plugins: extras_suggestions, langpacks, priorities, update-motd ...
0
votes
0answers
51 views

Sublime text 3 plugin issue 'Browser Refesh'

Are trying to use an plugin that is named "Browser Refresh"(link below), have instaled the plugin alog side "package manager" for st3 but with no luck to use it. Have so far edited the requireded /...
0
votes
0answers
8 views

PHP - Unicode characters not displaying correctly in console [migrated]

Whenever I use PHP 7.2 to print a string to the console and it contains a unicode character to the console, it doesn't display correctly. For example, a £ displays as ┬ú. It's not the console, as I ...
0
votes
1answer
3k views

Can't connect to SMTP server using PHP Mailer but can with Gmail?

I am getting the following error from PHP Mailer when running a script in my local PC: SMTP -> ERROR: Failed to connect to server: A connection attempt failed because the connected party did not ...
-1
votes
0answers
36 views

Insert and Display Images from mysql table [on hold]

My Database table name, cimages and columns are cimageID companyID cimg-Blob Now I insert image one by one, but it is very time-consuming. I want to insert bulk images in my table. What is my ...
3
votes
2answers
3k views

Apache proxy throws error connecting to a third party

Connection to a certain thirdparty service via php curl throws this error: CURL error: Received HTTP code 403 from proxy after CONNECT The apahe error log on the proxy throws this: Connect to ...
0
votes
1answer
70 views

PHP Session lost after redirect (sometimes)

I use, Apache/2.4.28 (Win64) PHP/7.0.32 in a Windows environment. I try to do with this question, but in my case, a lost error occurs sometimes. (Sometimes mean, problem occur 5 hours or more hours ...
0
votes
0answers
12 views

Export Keycloak User Data from MySQL Server

I am using Keycloak MySQL Database for user authentication. I am planning to stop using Keycloak and use some PHP framework authentication, but all my user related data is in the Keycloak Database. Is ...
-1
votes
1answer
14 views

FCGI: attempt to connect to 127.0.0.1:9000 (*) failed Apache 2.4, PHP7.1-FPM with unix socket

I am trying to set up PHP7.1-FPM on MacOS Mojave! I followed this guide and got all the way through to the end when it stopped working. During searching Google I decided to try and use unix sockets ...
11
votes
5answers
41k views

How to rename multiple files in multiple folders with one command

We want to rename our *.html files to *.php but (sadly enough) have not enough knowledge to do it with a cmd prompt command and/or batch file. The problem is that each file is in separate folder – ...
0
votes
0answers
19 views

Malicious Outgoing FTP Connection to another server [closed]

There was a malicious outgoing connection from my Cpanel server to an another server's FTP port. My server has many shared hosting accounts of my clients. How can I check which user/account sent this ...
0
votes
1answer
3k views

Install imap on PHP 5.4 CentOS

So, i tried installing IMAP with yum install php5-imap but package cannot be found: [root@nv-datacenter ~]# yum install php5-imap^C [root@nv-datacenter ~]# yum install php5-imap Loaded plugins: ...
-1
votes
1answer
26 views

PHP and WordPresss require? [closed]

What PHP version does WordPress require? I am not sure what are the hosting requirements for my WordPress theme. I am using a theme exported from https://themesgenerator.com/ and I am afraid I need ...
0
votes
0answers
9 views

Delete a file with php code on MacOS Mojave [closed]

I'm in macOS Mojave running XAMPP server 7.3.0, and I have an html form to upload some pictures from it and put them in a directory. The pictures are uploaded. But when I want to delete them from a ...
0
votes
0answers
30 views

Cannot change php.ini settings without restart of machine

I finally found out that I need to the restart my machine to take over some php.ini configuration changes. But I'm wondering why I cannot just restart httpd. What do I have to do that I don't need to ...
0
votes
0answers
13 views

(Angular 6) How to use a database for a DataTable without using php

Disclamer : i'm a beginner at Angular (even tho i've done some projects already) I have a little question about DataTables (the sorting ones). All the tutos I've seen this far are using php to ...
4
votes
6answers
52k views

WAMP MySQL Service will not start

I did a fresh install of WAMP (v2.1) and it works excep the MySQL isn't starting.... here: and everytime I press "Start/Resume Service", NOTHING happens. I go to my.ini and put in a password.Then go ...
0
votes
2answers
38 views

Why does the latest Ubuntu comes with an obsolete PHP Version? [closed]

Why does the latest Ubuntu comes with an obsolete PHP Version? Is it secure to use this version?
8
votes
5answers
9k views

Installing zeromq on Windows 7 WAMP server

I am looking for installing zeromq on my Windows 7 machine for using zeromq with PHP (I am using WAMP server (5.3.4), Apache Server 2.2.17). I followed the documentation on their site, but I don't ...
1
vote
1answer
588 views

Cannot install WordPress ($_POST is empty)

I am trying to install WordPress on my site under http://example.com/blog. What I did so far is: Download and unzip the most recent version of WordPress Upload the contents of the wordpress folder to ...
0
votes
0answers
18 views

Connecting to a ClearDB database in a Heroku application using PHP fails with no error message [migrated]

I've ruled out the possibility of supplying an incorrect name or password in mysqli_connect, because when I change them to make them incorrect on purpose, I actually get an error message from ...
0
votes
0answers
45 views

Updating dbkiss.php for deprecated preg_replace() function and PHP7/Postgres compatibility

I use the dbkiss database frontend application (see code: github/dbkiss.php) which now appears to be unsupported. It works with PHP5 but now breaks with PHP7 with the following error: preg_replace():...
0
votes
2answers
408 views

XDEBUG not working PHP 7.3 Win 10 x86

Download https://www.apachefriends.org/index.html (xampp-win32-7.3.0-0-VC15-installere.exe) can't find any x64 xampp for windows. Does not return any download link. https://xdebug.org/wizard.php PHP ...
0
votes
0answers
19 views

Websocket installation on IIS10, Windows 10 pro

I want to play around with websockets. I'm using IIS 10 on Windows 10 pro. I have used the Web Platform installer 5.0 to install "Websockets Protocol". This seems to look fine, it says "Installed". ...
-1
votes
0answers
16 views

Wordpress can't find temporary folder, but folder it's looking at has correct permissions [migrated]

So, I've spent a couple of hours looking around the internet to try to figure out this problem, since it seems like a dumb one that would probably be a duplicate, but apparently it isn't. I'm hosting ...
0
votes
0answers
13 views

Nginx Varnish Configuration issue

I'm trying to install varnish with ssl from this link: https://www.linode.com/docs/websites/varnish/use-varnish-and-nginx-to-serve-wordpress-over-ssl-and-http-on-debian-8/ I did everything like post ...
0
votes
1answer
501 views

How to integrate cURL on my public_html?

I do have this folder structure for my website: \index.html \php\some-php-files.php \js\some-js-files.js What I want to do is, I want to use a cURL command, which I usually use it on the terminal/...
0
votes
0answers
8 views

Setting up an imported PHP MySQL server locally

I am building ontop of an open source project and have been given the current code which is located here: https://opengogs.adaptcentre.ie/harsh/ethics-canvas/src/dev I'm looking for some guidance on ...
0
votes
2answers
11k views

Class 'MongoDB\Driver\Manager' not found

I am creating REST APi with Lumen framework. I use Mongolab for my mongoDB and i want to host my app on google App Enginge. I am using Jessenger lib for communicating with my DB on MongoLab. Everhting ...
0
votes
0answers
12 views

Connecting to a local apache server with PhpStorm

So normaly I have file in /var/www/html I open it in browser using http://localhost/file.php. I am not sure how to set up connections and mapping in PhpStorm however. I tried something like that ...
0
votes
1answer
29 views

Can't run PHP file with apache2

I want to set up php on my machine but I can't make it work. This is what I did: I downloaded php with sudo apt-get php Installed Apache sudo apt install apache2 Resterted server sudo service apache2 ...
0
votes
0answers
21 views

Why after deleting mysql-bin.index does my server SQL connect again in MAMP otherwhise it does not?

When I install MAMP, everything works fine the first time. Apache server connects and SQL also, I can access phpMyAdmin page also. But after turning off the server and turning it on again, MySQL doesn’...
1
vote
0answers
35 views

ffmpeg concat removing sound of videos

I've used this code for merging three videos together with ffmpeg : ffmpeg -y -f concat -safe 0 -i list.txt -c copy done.mp4 the list.txt contains : file 'first.mp4' duration 2.5 file 'second.mp4' ...
5
votes
2answers
6k views

Compiling PHP on OS X: iconv works only if forced to 64-bit

I'm trying to compile PHP and I kept getting this error during make: Undefined symbols for architecture x86_64: "_iconv_open", referenced from: __php_iconv_mime_decode in iconv.o ...
0
votes
1answer
17 views

Nginx frequently exits within docker while using supervisord

Following is the output for command docker run -p 9898:80 myContaineron stdout: 2019-01-03 17:23:08,600 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (...
0
votes
1answer
54 views

Rebuilding an app in Dokku results in 'ERROR: Failed to download minimal PHP for bootstrapping!'

I'm using Dokku for over a year now, most of the programs are written in node.js. But for a Wordpress blog we use the default heroku PHP buildpack. After a system upgrade and subsequent reboot our ...
0
votes
1answer
20 views

Unable to run the command

I trying to install the composer..... tried to run this command sudo apt install curl php-cli php-mbstring git unzip on ubuntu 18.10 .... I got this message displayed on cmd sudo apt install curl ...
1
vote
1answer
60 views

Docker: how to ship and share data between containers

I currently have a new server setup where I have Docker running. I use Gitlab CI to create and push new images. I just fail to determine how to deploy/setup my project files and docker images. To ...
0
votes
1answer
26 views

MyWebSQL on Windows: MySQL client library is not installed

I'm trying to set up MyWebSQL on a Windows server machine. I set up Apache 2.4 and PHP 7.3, then deployed MyWebSQL. Now, when I go to http:// localhost/mywebsql/install.php, I get the error: ✘ ...
0
votes
1answer
64 views

Upgrading PHP from 7.1 to 7.2 with Homebrew in macOS but still seeing PHP 7.1

I am trying to upgrade my PHP version from 7.1 to 7.2 on macOS and with Homebrew. I did the following steps: brew install php72 brew services stop php71 brew unlink php71 brew link php72 brew ...
0
votes
0answers
9 views

“Shell Provisioner” Error Setting up Homestead

I am on a Windows 10 machine, and I've been trying to set up Homestead in line with the instructions on this page and the "Easy Laravel 5" textbook. When I run the vagrant up command to turn on the ...
1
vote
2answers
13k views

CURL Error version OPENSSL_1.0.1 'not found …'

I have the last few days, a concern with CURL. I get this error: curl: / lib/i386-linux-gnu/libssl.so.1.0.0: version `OPENSSL_1.0.1 'not found (required by / usr/lib/i386-linux-gnu / libcurl.so.4) ...
0
votes
0answers
35 views

Laravel w/XAMPP on Ubuntu 18.04, how to swtich from built-in PHP server to the Apache server that is running

I'm just starting the basic tasks on the offical site here: basic tasks I followed these directions to try to integrate Laravel with XAMPP: how to install Laravel with XAMPP But it didn't work. I'...
0
votes
0answers
4 views

php can not connect to mysql after reboot server [migrated]

software: php 7.3 mysql workbench 8.0 this is my php code: try { $link = mysqli_connect($DB_SERVER,$DB_USERNAME, $DB_PASSWORD,$DB_NAME,3306); } catch (Exception $e){ throw new ...