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.

0
votes
1answer
284 views

Moodle Installation not working with local server

Repeatedly facing three issue while installing moodle software in local server. version 5.5.31 is required and you are running 5.5.5.10.1.25 PHP opcode caching improves performance and lowers memory ...
0
votes
1answer
687 views

PDT Eclipse Annoying Bug with Namespaces and external project

I recently installed Eclipse PHP (PDT) 64bit; Java 64bit. It loads fine. Then I imported Handlebars; handlebars.js, two projects from Github. And my own; separate project. Because it's a new ...
0
votes
2answers
1k views

Need uploadprogress in Debian 9 / php 7

For a drupal installation on debian 9, I want to install php pecl uploadprogress. In Ubuntu there's an easy way with ondrej's ppa, but I can't find anything on how to get it to work in Debian. For ...
0
votes
0answers
2k views

Find whats preventing php7.0-fpm from starting

how can I figure out whats preventing me from starting php7.0-fpm. Nothing seems to show whats preventing it from starting. $ sudo service php7.0-fpm status ● php7.0-fpm.service - The PHP 7.0 FastCGI ...
1
vote
0answers
181 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 ...
4
votes
2answers
8k views

Running PHP works in Command Prompt but not Git Bash

I've recently got a new laptop and have been in the process of setting it up. I've installed WAMP, which is what I use to do my PHP development (installs Apache2, MySql, and PHP). I also like to use ...
0
votes
1answer
307 views

Using nginx to serve both node.js and php generated content

I maintain a Ubuntu host that runs a website powered by a node.js They've recently requested to add a WP blog to be served as well. I've install php3-fpm and Wordpress and modified my nginx.conf as ...
0
votes
1answer
128 views

Windows: how cmd finds an executable not in path?

From a Windows 7 command line (opened from any directory), if I type php -v, it will execute C:\php\php.exe and show version information. I can't figure out how the system knows what php is, since ...
0
votes
1answer
53 views

Having trouble with Ubuntu LAMP stack

I have installed Ubuntu 16.04 and all the necessary packages (apache, mysql, php) using the command line. I have installed Drupal (The installation successful after a few tweaks). However after the ...
0
votes
2answers
7k views

Downgrade PHP 7.1.7 to PHP 7.0.6 CentOS 7

Is it possible to downgrade PHP version from 7.1.7 to 7.0.6 on centOS 7? I've try to run yum remove php-common php-cli mod-php then install php with run yum -y install php70w-pdo php70w-mysqlnd ...
0
votes
1answer
239 views

PHP and not connecting with Composer

My PC is unable to reach certain websites like composer's website with PHP and composer. To install composer I had to use a VPN which I dislike and therefore wanted to find the fix. I installed XAMPP ...
0
votes
0answers
54 views

Compiled a PHP, how do I load it in Apache?

I compiled and install PHP7.1.7 from source on Ubuntu16. I followed this tutorial: http://www.shaunfreeman.name/installing-php-7-on-ubuntu-16-04/ I followed it upto the place he adds something to the ...
0
votes
0answers
33 views

FFMPEG converting to mp4 is not working [duplicate]

I am sort of a newbie when it comes to FFMPEG (with php) but I have have been studying up on it for the last couple of weeks. when i use shell commands like: echo shell_exec('ffmpeg -i input.3gp ...
0
votes
1answer
55 views

Difference between memory_limit and php_memory_limit

In my php.ini file I can see settings for both memory_limit and php_memory_limit What is the difference between these two settings? (Both settings are set to 512Mb)
-2
votes
1answer
52 views

The data second column start when the first column ends

Take this question as a reference How can I put the data of the second columns on the first row. Sorry for my English
0
votes
1answer
11k views

How to get logged person's user_id from the database and insert it in to the other table using Sessions? [closed]

I'm new to the Sessions topic so, I've been trying to get the logged person's user_id(column) from the user_login table using sessions and insert it into the another table but couldn't achieve.I would ...
1
vote
0answers
679 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:...
0
votes
0answers
209 views

mv command failed now file missing

So i ran mv command and it failed with mv: cannot stat ‘/root/HIDDENDIR/HIDDEN-DIR/recover.php’: No such file or directory And now file is missing from original and target directory. I even tried ...
0
votes
3answers
164 views

Determine the originating host on an SSH web tunnel through PHP/CGI/etc

I have many hosts with dynamic IP addresses that need to be able to access content on a certain local web site at different times that I determine. The times for allowed access are always different. ...
0
votes
1answer
44 views

WAMPP server (Computer software)

I downloaded "WAMPP server 64bit" for my windows 8.1 pro (yet to activate), lenovo laptop. But during its installation, it prompted a message like: "api ms win crt runtime... .dll is missing" For ...
0
votes
0answers
1k views

How to install php5.6-xdebug in ubuntu 16.04

I try to install vdebug in ubuntu 16.04. I am running php5.6. When I do sudo apt-get install php5-xdebug. Error is: The following packages have unmet dependencies: php5-xdebug : Depends: phpapi-...
0
votes
0answers
28 views

How to create external links to knowledge base in eGroupware?

I have installed the latest version of egroupware (16.1). When I connect and use the phpbrain or knowledge base application, I cannot use open in new tab [navigator's] context menu. When a new ...
0
votes
2answers
68 views

PHP cli is not running after reboot

To run PHP CLI on my centos virtualbox image I need to type source /opt/remi/php71/enable but after rebooting the machine the PHP CLI is down again and I need to do this again... In best case I ...
0
votes
1answer
67 views

PHP modules explanation

I have question about PHP modules that I can't understand very well how they work and I will appreciate your help. If I have installed mod_php7 and the package contains php7, mod_php7 and php7-zts I ...
0
votes
2answers
55 views

Will all PHP versions work the same regardless of OS/platform? [closed]

I am coding in a Windows platform, then I hosted it in a Linux platform, then some codes did not work as it should be. So I am curious if this is normal or I just have an error on my part. Both PHP ...
0
votes
0answers
318 views

Why curl Couldn't resolve host intermittently?

I have a web service application that works fine in my local. I have even installed ngrok and I'm able to call it on the public web. But as I put my code on our production server I keep getting the '...
1
vote
0answers
843 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 ...
1
vote
0answers
144 views

Synology RS810+ PHP upgrade to 5.6

I need to upgrade PHP from 5.5.33 to at least 5.6 in Synology RS810+ and the only way to do that is by manually swapping certain files via ssh (cp commands etc.). But the main issue is that I have no ...
2
votes
2answers
4k views

ffmpeg command for concatenate two mp3 files

I am using ffmpeg for Concatenating two MP3 files together, I use this command : ffmpeg -y -i first.mp3 -i second.mp3 -filter_complex "[0:0][1:0] amix=inputs=2:duration=longest" -c:a libmp3lame ...
0
votes
1answer
1k views

Using Vagrant, can not access an apache virtual host from the host OS's web browser

I installed Ubuntu Server 16.04.1 Xenial Xerus (32-bit) in Virtualbox with Vagrant on a Windows 7 host. The Vagrantfile contents are Vagrant.configure("2") do |config| config.vm.box = "boxcutter/...
0
votes
0answers
417 views

Using DOMDocument + DOMXPath to remove all but specific tags and attributes from HTML

I have arbitrary body HTML and need to process it in PHP to remove all tags except a few "well known" ones (<h1><h2><h3><h4><ul><ol><li><p><br><a><b><u><i><...
0
votes
1answer
221 views

regex oddity - why isn't this working and how to match it?

I'm using PHP 5.6.30 and doing some customised attribute editing on HTML tags. I have come across an oddity and not sure what to make of it, or how to work around it. It's best shown by a code ...
2
votes
1answer
2k 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> &...
0
votes
1answer
62 views

Best way to permanently redirect lots of URLs on a typical LAMP Server

I'm trying to determine the best way to forward lots of urls permanently in terms of performance and operability. So there are 3 possible ways I could image so far: .htaccess RewriteRule PHP header ...
0
votes
1answer
130 views

What IP address is used to Ping

I'm having some doubt. I'm getting IP address by using PHP, and whatever IP it is giving when I track that it gives correct information about the IP.And when I ping that IP address, 100% packet get ...
4
votes
1answer
98 views

Linux: Interpreted-on-read (ala php) for local files

So the specific problem is that I want a file on my system to link to a http url, but fallback to a local version if there's no connection. The catch is that the program reading this file will be ...
0
votes
1answer
3k views

php preg_replace not replacing all lines

php preg_replace not replacing all lines 12*some input 12*some input 1*some input and code is preg_replace("/^(\d{1,2}[^0-9])/", "", $text); Result is some input 12*some input 1*some input but ...
1
vote
0answers
63 views

My PHP web version is different from the recently installed CLI version, in a different way than previously reported [duplicate]

I have the opposite question from Why is the PHP version different in phpinfo() and CLI? My question is different from that one because I'm getting the expected PHP for the CLI and the wrong one for ...
1
vote
1answer
474 views

PHP shell_exec ssh-add ssh-agent could not open connection to authentication agent

I did this shell_exec('eval "$(ssh-agent -s)" 2>&1'); shell_exec('ssh-add /opt/.ssh/id_rsa 2>&1'); and still getting error connecting to authentication agent. The first line ...
0
votes
0answers
287 views

How download a file from php using shell script

For example, if running this link in browser start to download a file named file.json (big file): http://localhost/extractor/download_file.php The download_file.php define some variables and call ...
0
votes
0answers
101 views

IIS 7 and PHP 5.3 or PHP 7 - how to add MySQLlibary

How to install MySQL libary to IIS 7 PHP 5.3 or PHP 7? My server: Windows Server 2016 I need MySQL to connect very old code... ;)
0
votes
1answer
41 views

Apache2 Make a subdomain access a local FTP server

Is there any way to connect a Apache2 subdomain by using httpd-vhosts.conf and: <VirtualHost *:81> ServerName sub.domain.com DocumentRoot "C:/bla/subfolder" </VirtualHost> To a FTP ...
1
vote
2answers
1k views

Apache and PHP Curl Issue

In my apache error.log I have the following line: PHP Warning: PHP Startup: Unable to load dynamic library 'ext\php_curl.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 ...
0
votes
1answer
607 views

Running Apache as a different user 5

I was work many hours for run apache different user. But I cant do this. At first I was add new user "test"(ID: 1100) with new group "test"(ID: 1200). Then I was change nobody to test in apache ...
3
votes
2answers
2k views

Apache that ships with Sierra won't stop or restart or accept new configuration

I recently installed PHP-7.1 through homebrew on MacOS Sierra, and everything stopped working. Odd errors, permission issues, and so on. Now I'm trying to stop Apache (that ships with Sierra) and ...
0
votes
1answer
509 views

Run command on OpenWRT router via webpage

I've developed a static webpage hosted via an OpenWRT firmware based router and would like to create a reset button held on that page, the console command is: reboot I'm struggling to work out the ...
0
votes
1answer
1k views

PHP CLI has stopped working in WampServer

When I launch php -v from the command line, a pop-up window appears saying CLI has stopped working. I am using wampserver 2.5 and PHP version 5.5.12 on Windows 8.1. Because of this I cannot install ...
0
votes
1answer
492 views

PHPStorm 2017.1 fails running remoted phpcs: “ERROR: The file ~/.phpstorm_helpers/… does not exist”

QUESTION UPDATE: I had mistakenly used the revision number for PHPStorm. The correct version is 2017.1, not 2017.3 as initially stated. I recently updated to the latest PHPStorm (2017.1 March) and ...
0
votes
1answer
471 views

Use cURL to submit a web form for printing

I am using Xubuntu 16.04. I was unable to properly configure the drivers for a Xerox 7545 to print with a Default Group account setup. However, I am able to print by saving my document as a PDF. Then ...
0
votes
1answer
334 views

Download php7 from comand line slackware

I tried download a php7 package to install on slackware, with following command: wget "http://php.net/get/php-7.1.3.tar.gz/from/a/mirror" The result is a mirror file, if i made again is mirror.1... ...