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

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.

4
votes
0answers
1k 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
0answers
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 ...
3
votes
0answers
928 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
0answers
503 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 ...
3
votes
0answers
914 views

FreeBSD install PECL php7

I want to active the gnupg extension for php7. But I can't find a package for pecl for php7. Does anyone know a way to install pecl for php7 or how to activate gnupg without pecl?
3
votes
0answers
172 views

Privilege separation per user for each web application

I'd like to ask a question about LNMP stacks and user privilege separation. I usually host websites on LNMP stacks and Wordpress on Debian 7 and 8 servers. I separate each Wordpress site into its own ...
3
votes
0answers
2k views

OCI8 extension not loading in PHP 5.4, CentOS 7

I have a CentOS environment running as a VM guest. It runs and Oracle 12.1 Database, along with PHP 5.4.16, on Apache 2.0. I've gone through the installation steps to ensure that the correct OCI ...
3
votes
0answers
179 views

How to switch off “you can use new shorter array creation syntax” hint in NetBeans IDE 8.0.2?

I use NetBeans IDE 8.0.2 on Linux Mint. I searched through the options few times, but I can never find the option to switch this hint off in there. I know well about the new syntax in PHP, but I don'...
3
votes
0answers
2k views

Received: (from www-data@localhost)

All mails coming from my server has Received: (from www-data@localhost) even though I've set 127.0.0.1 mydomain.org mydomain server2 in /etc/hosts. I think that's the reason why it's ending up in the ...
3
votes
0answers
1k 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 ...
2
votes
0answers
179 views

Homebrew blocked by Error: invalid attribute for formula 'homebrew/php/php70': version (nil)

I've tried brew update and brew doctor, fixing all errors that have come up thus far, but I'm still getting this error anytime I try to update or remove php70: Error: invalid attribute for formula '...
2
votes
0answers
396 views

Rename refactoring for PHP in Visual Studio Code

Is there a rename refactoring for PHP in Visual Studio Code? It is the only thing that stops me from fully move from NetBeans to VSC. Renaming is very importat for me (not search/replace). When I ...
2
votes
0answers
3k views

localhost is currently unable to handle this request. HTTP ERROR 500 wamp server using OSPOS

I'm using OSPOS open-source point of sale with wamp server but while I'm trying to access reports> detailed reports> I'm getting Http request failed 500 internal server error While I checked this ...
2
votes
0answers
299 views

Sublime Text 3 PHP Syntax Highlighting Issue

Sublime Text 3 is set to PHP syntax but nesting causes some weird syntax highlighting issue as seen in the image below. I was wondering if anyone else encountered this issue and if they solved it? ...
2
votes
0answers
430 views

Imagemagic and php exec: convert: no images defined

The command works just fine from the shell /opt/ImageMagick/bin/convert /private/var/folders/nl/9cky1krj5_j7zwm34tfkndd40000gn/T/pdfPyflQF /private/var/folders/nl/9cky1krj5_j7zwm34tfkndd40000gn/T/...
2
votes
0answers
215 views

Application conftest stopped unexpectedly

I have set up phpfarm so that I can use multiple versions of PHP interpreter on my system. This work really good but now I am getting crash reports on each and every system start. Seems like my ...
2
votes
0answers
581 views

PHP documentation plugin for Xcode

Does anyone know if there are any plugins that allow Xcode to use code completion and documentation for PHP? I realise there’s a similar Xcode/PHP question on Super User but that was from five years ...
2
votes
0answers
669 views

Medusa returns Segmentation fault or gives up on 1st try

For my thesis, which is about the use of software for computer forensics, I want to use Medusa to attack a server of my own, just to sniff the packets to see the data for port 80 (and therefore prove ...
2
votes
0answers
578 views

HTTP server doesn't seem to support byte ranges. Cannot resume. homestead up

When I used the command "homestead up" it stopped working at 45% so I closed it and restarted my computer. Now when I try to run the command homestead up, my computer says resuming download then I get ...
2
votes
0answers
505 views

Sublime Text: Why regex in syntax highlighting does not work?

In Sublime Text 3, a default syntax highlighting rule paints a SQL SELECT just fine if it's in the same line, but not if it's in the next line: vs After reading this question I opened the PHP ...
2
votes
0answers
22 views

Customise HTML-Kit Tools syntax highlighting

I'm using HTML-Kit tools to edit a PHP site. The syntax highlighting's really helpful, but it would be good if I could edit it, specifically so that my custom functions would be highlighted (as ...
2
votes
0answers
194 views

PHP syntax in Sublime Text very slow

My Sublime Text 3's PHP syntax highlighting causes the editor to become extremely slow. And it's proportional to the amount of code in the current file. It's only with PHP. As soon as I switch to ...
2
votes
0answers
492 views

Eclipse Just Crashes (Xubuntu 14.04)

This is crazy. Eclipse keeps crashing, closing itself a few seconds after I start it and I have no reason why. I have tried everything that I have seen here and nothing helps. I am so desperate that I ...
2
votes
0answers
232 views

Socksify php script

I am trying to socksify php script network connections, however I am unable to do that, script ignores the socksifyer, just connects directly. I tried using tsocks and torsocks. tsocks php script....
2
votes
0answers
1k views

CentOS 5.10 Yum Packages won't update/upgrade

I've just used yum to install PhpMyAdmin and it installed version 2.11.11.3-2.el5 which is completely out of date since version 4 is out. I've tried running yum update phpmyadmin but I receive No ...
2
votes
0answers
254 views

PHP ssh2_fingerprint() does not match ssh-keygen -lf id_rsa.pub

I am using the lib ssh2 module with PHP and calling the function ssh2_fingerprint() to get the keys fingerprint. According to all resources on the internet, I can get the fingerprint of a public key ...
2
votes
0answers
1k views

Error 10053 using composer

I need to use Composer in my wamp server on a windows 7 machine but I keep on getting a 10053 error. For example when I try to install laravel I get the following message: [Composer\Downloader\...
2
votes
0answers
749 views

PHP : curl is and Not working in ubuntu10.04 and Nginx

I am running Nginx server on ubuntu 10.04 I am using the php version 5.3.2 .I installed php5-curl using apt-get install php5-curl. Unfortunately the curl package is not displaying in phpinfo() . ...
2
votes
0answers
191 views

PHP web application can't connect mysql installed with Zend Server CE on SuSE Linux 11.4

I had a running LAMP system. SUSE 11.4 with Apache 2, MySQL and PHP 5.3 Then I installed Zend Server CE. Everything is OK, but now I can't connect it to MySQL. The MySQL Server is running. If I ...
2
votes
0answers
965 views

cannt run phpunit tests on bash ubuntu 11.10

I'm working with Ubuntu 11.10 as root on my local machine, I've installed xampp 1.7.7 and While following a tutorial on sitepoint on how to install pear to use PhpUnit, I didn't notice it then, but ...
2
votes
0answers
1k views

Couldn't start apache

I've installed xampp 1.7.7 on windows 7 x64 and imported configuration files from 1.7.7. With default php.ini which is shipped in 1.7.7, apache start, but the web pages are browsed white pages and at ...
2
votes
0answers
2k 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 ...
2
votes
0answers
574 views

Zend Gdata include path issue

I'm having some trouble with a Zend Gdata install. I copied the files into the /usr/lib/php folder and ran a script that said all was working. However, when I go to run any demo script I get the ...
2
votes
0answers
256 views

“PHP Error” when running PHPUnit tests from within Komodo IDE

I am using the latest version of the Komodo IDE, PEAR and PHPUnit with PHP version 5.3.0. When I run the unit tests for my Komodo project the tests run correctly, but regardless of whether there are ...
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' ...
1
vote
0answers
31 views

magento2.0 failed Installation & Varnish Test after submitting to the market place

I submitted an extension on Magento Marketplace, but it failed the installation and varnished the test with a report that states as follows: Environment: PHP 7.1.22 Magento 2.3 CE php bin/magento ...
1
vote
0answers
43 views

Github push from PHP webserver using shell_exec() backticks

I have a Github repository that I use via Atom.io with a client to help keep all the changes for their website synchronized. The GitHub repo contains a webhook that automatically pushes all our ...
1
vote
0answers
34 views

What if I dont upgrade PHP5.6 to 7.x?

I manage several websites running on legacy php 5.6 and old framework codebase. The time and cost to upgrade these sites would be too much for our budget. These are front end, basic sites without ...
1
vote
0answers
209 views

“Atom beautify” not working in Atom

First of all l'm Japanese and my English is sometimes weird. My situation is excatly the same as found in this URL: https://github.com/Glavin001/atom-beautify/issues/2107 I mean the same situation ...
1
vote
0answers
341 views

nginx + php-fpm70 getting 502 bad gateway

I'm Getting 502 bad gateway error in one of my magento2 site. Here are my configuration files. nginx.conf configuration file user nginx; worker_processes 4; worker_rlimit_nofile 100000; pid /...
1
vote
0answers
853 views

Nextcloud: Can’t create or write into the data directory /var/nc_data

I'm getting the above error. What I tried so far: checked the permissions. I even did chmod 777 /var/nc_data -R first included all used party in open_basedir in my php.ini. When that didn't work, I ...
1
vote
0answers
84 views

pkg_add: command not found on Centos7

I've been trying to install phalcon on my Centos7 environment and I'm stuck with FreeBSD part: pkg_add pkg_add -r phalcon Apparently pkg_add errors as "command not found". I found a somewhat ...
1
vote
0answers
16 views

Set up a Jquery table to enable disqus comments to be retrieved and displayable on a html table

This is a not programming question, I request if is possible to do and if you have any preliminary indications to suggest I find this http://www.bluefinengineering.com/blog/custom-php-disqus-comments-...
1
vote
0answers
200 views

Apache2 + php-fpm over socket

I have fairly clean install (and updated) of ubuntu 16.04 LTS, and i'm trying to setup PHP-FPM to be chrooted per-domain. I don't really want to open n ports on the server (they are local, but i don't ...
1
vote
0answers
62 views

Proper permissions for postfix piped script

As my almost-alliterative title states, I am attempting to configure postfix to pipe incoming messages to a PHP script. As it currently stands, postfix apparently attempts to run the script as the '...
1
vote
0answers
28 views

How to hide PHP file

I have a script to redirect any external url and that works like when i add this http://my-domain.com/URL.php?url= Before the external url like google, url after adding: http//my-domain.com/URL....
1
vote
0answers
234 views

Is it possible to add request URLs to the php-fpm.log

At present, I get entries such as the following in my php7.0-fpm.log [11-Sep-2017 13:32:17] WARNING: [pool www] child 28808, script '/var/www/mysite/public/index.php' (request: "GET /index.php") ...
1
vote
0answers
182 views

Unable to use dashes in referential filenames, Why?

I recently setup Windows Subsystem Linux and created a symbolic link to a Windows folder in the Apache2 default server folder like so... ln -s /mnt/c/Users/user/Desktop/folder /var/www/html ...so ...
1
vote
0answers
681 views

PHP-FPM error: Primary Script unkown

I have a strange bug in my nginx / php-fpm code, I'm trying to set up my development machine to use nginx instead of php's built-in server, but it's not working to good so far: FastCGI sent in stderr:...
1
vote
0answers
845 views

adding /dev/urandom to PHP's open_basedir

I need help whitelisting /dev/urandom to PHP's open_basedir setting for my particular setup without affecting the other sites on this server. Editing the php.ini file will mess with others' sites on ...