PHP is a widely-used general-purpose scripting language that is especially suited for Web development.

learn more… | top users | synonyms

0
votes
1answer
9 views

Why is php cgi loaded in path when doing a 'sudo su <user>" vs just being logged in which uses php cli?

When logged in as root user, php loads the correct version which is php cli. But when i do a sudo su < user >, php is is loading the cgi version which is breaking some of my applications that ...
0
votes
0answers
5 views

How do you make php-cli as the default command in the terminal? It's currenltly running php-cgi

When I'm root and I do a php version. It shows that I am running php-cgi: but I need to use the php-cli version which resides in /usr/local/bin/php -- When I'm logged out of root as a regular user. ...
0
votes
0answers
4 views

Compilation error while installing Mongo PHP extension via PECL

I try to install Mongo PHP extension via PECL (for PHP 7.0.5-4+donate.sury.org~xenial+1) by executing sudo pecl install mongo-1.6.11 I try to install it this way because my Synfony3 project needs ...
-1
votes
0answers
16 views

How can my result be the matching Column name instead of the ID

i have to tables table A and B. in table A you find all the customer information related to their car. In table A there's 4 columns called car1-car4 (because a customer can have up to 4 cars ) and its ...
-1
votes
0answers
10 views

Fatal error: Call to undefined method mysqli_stmt::get_result()

I get the following PHP error when I run my PHP code on my server, but not on my development system (localhost): Fatal error: Call to undefined method mysqli_stmt::get_result() Here's the related ...
0
votes
0answers
22 views
+50

Set volume using php exec and amixer

I wrote a little php script to control the volume of my local machine with alsa: <?php # for simplicity and testing it really just executes the command: echo exec('amixer set Master 5%+') . " \n"; ...
0
votes
0answers
6 views

Tuleap project registration

Is there a way to customize the Register New Project page? For example, I want to have a text box under Trove Categories instead of the dropdown choices. The PHP page I speak of is: ...
0
votes
0answers
26 views

xampp myphpadmin and mysql server 5.7 not working together

I have MySQL Server 5.7 running on my windows 10 machine and I installed xampp 5.6. To start MySQL for phpMyAdmin I have to stop the MySQL57 service which uses port 3306 if it is already running. If ...
0
votes
0answers
15 views

php running on IIS 8 WIN 2012 Server “IS” pointing to correct php.ini but extension_dir is still pointing to “C:\PHP”

Now you're going to say, "Well, Pete, Google it because it's really simple..." OK, I agree. So here are my givens: GIVENS: php is running on IIS 8 on a WIN 2012 Server box php is running nicely ...
0
votes
0answers
8 views

How to get piwik running with nginx on Ubuntu?

Seeing that I want to learn more about linux administration today I wanted to set up an instance of the self-hosted Piwik statistics package for a website I'm running. Since I don't want to disturb ...
0
votes
1answer
9 views

lighttpd with zip extension

I wanted to optmize a project i have by trying out lighttpd instead of apache2 on a Raspberry Pi, but noticed that my php code handling zip files no longer worked because the Zip module for PHP doesnt ...
0
votes
2answers
28 views

Centos - PhpMyAdmin showing blank screen

I have just installed PhpMyAdmin, and when i try to access it it just shows a blank screen. I suspected this is because i followed a tutorial on how to secure php and disabled multiple settings, so i ...
0
votes
1answer
11 views

Php Permission Issues

I'm facing permission problems. I have a project for my school lecture which located here. It basically download some images from internet. And also It has a setup like wordpress and need to modify ...
0
votes
1answer
8 views

Installed LAMP and NetBeans, what do I need to enter in Sources folder?

I have installed LAMP and NETBEANS in my Linux pc. I tried to run my PHP project but I am confused with the Sources Folder. Please help in entering the correct path.
1
vote
0answers
15 views

How to install MySQL on separate box from IIS 7

I've got two servers running Server 2008 r2. I've set up one sever as the webserver with IIs7.0, asp.net, php, nodejs, etc. And I have put MySQL and MongoDB on the other server. As best I can tell ...
0
votes
0answers
14 views

Creating a “fake” disk on windows that actually goes to a remote disk

I have a seagate harddrive connected to my router. I can get to my files but i cannot use the file location in phpstorm. I can edit the files but the file tree is not showing. I read that you could ...
0
votes
1answer
15 views

Whats blocking direct access of error_log in apache

I have searched on google for a long time but it seems like nobody has even asked this question: What is blocking the direct access of error_log on Apache servers? Or is it even an Apache thing or ...
0
votes
0answers
25 views

Virus keeps appearing. How can i find the security hole?

I just started working with this client recently, and when i got into his server, it was full of viruses. At least 4 of his cpanel users had viruses on their websites (completely managed by him). The ...
1
vote
1answer
63 views

Security regarding nginx + php on CentOS 7 with OwnCloud 9

I'm trying to setup a OwnCloud Server v9 for my freelancing purpose. SPECS: - CentOS 7 - nginx - php I'm a little bit confused. I can find only the info about the PHP Version 5.5 in the ownCloud ...
0
votes
1answer
60 views

Ubuntu can't install php5-mysql

Now, before someone marks this as a duplicate, I've been looking around on the internet for the last two days and have been unable to find a resolve for my issue. All I'm trying to do is simply get ...
0
votes
0answers
21 views

Installing PHP on Server 2008 R2 and IIs 7.0

Followed these instructions to install PHP. Downloaded and extracted PHP-5.5.34-nts-Win32-VC11-x86 to C:\PHP. Created the PHP.ini file and turn on/off the directives listed there. Then followed ...
0
votes
0answers
8 views

.htaccess to hide 2 possible directories

I am having difficulties getting the second statement working regarding admins, i am trying to hide both new and admin parts of the directory. new seems to be hiding fine however admin doesnt want to ...
2
votes
1answer
27 views

Web Server Security : www directory

I have a question about Web Server, especially PHP / Apache Server. A Developer told me and my colleagues that today it is bad to put our Web directory in WWW directory, because it is unsecured ...
0
votes
0answers
14 views

Code assist not working right in Eclipse Mars with PDT

I have Eclipse Mars with PDT installed, but code assist is not working right in my opinion. When I type a function call but don't know the right parameters I would like Eclipse to display these ...
0
votes
0answers
9 views

Error while installing apache

When trying to install libapache2-mod-rpaf I get this error: dpkg: error processing package libapache2-mod-rpaf (--configure): subprocess installed post-installation script returned error exit ...
7
votes
6answers
334 views

/usr/bin/env: php: No such file or directory

I want to use .sh script for deployment of my app. That script is on my home server (Ubuntu 15.10 Server), marked as executable. Access to this script is done through ssh, using this tutorial, I have ...
0
votes
0answers
13 views

php email form works on internet site but not on intranet

I have created one website having php email form & working fine on internet server, but same coding am using in my intranet server its showing error: "502 - Web server received an invalid ...
0
votes
0answers
31 views

Is PHPMYADMIN inside iframe possible

So I used this lines of codes. echo '<iframe src="http://127.0.0.1/phpmyadmin/" frameborder="0" style="width:70%;height:70%"></iframe>'; It doesn't show phpmyadmin, it's just blank. ...
0
votes
0answers
10 views

Gosa with openldap giving php error on startup

I am trying to setup GOsa and OpenLDAP on a Centos 7 machine and am encountering some issues. Mainly when i access the /gosa webpage I get the following error: Fatal error: Class 'session' not found ...
0
votes
0answers
52 views

Sending emails from PHPMailer using proxies IP addresses

I need to send emails from PHPMailer using proxies IP addresses, I know that to do so, I need to use the fsockopen function so I can conect to the SMTP account, I also know that if I have to connect ...
0
votes
1answer
40 views

Can't install PHP

I'm trying to install PHP on my Windows 10 64 bit computer. I downloaded php 7.0.4 Win32 from http://windows.php.net/download/ and extracted the contents to a local directory. I try to run ...
0
votes
1answer
60 views

XAMPP and MySQL workbench [duplicate]

Ok so I have this message error in XAMPP: 20:25:37 [mysql] Error: MySQL shutdown unexpectedly. 20:25:37 [mysql] This may be due to a blocked port, missing dependencies, 20:25:37 [mysql] ...
0
votes
0answers
42 views

XAMPP and MySQL

Ok so I have this message error in XAMPP: 20:25:37 [mysql] Error: MySQL shutdown unexpectedly. 20:25:37 [mysql] This may be due to a blocked port, missing dependencies, 20:25:37 [mysql] ...
2
votes
1answer
26 views

Horde configuration

I´m trying to configure Horde in a Windows Foundation 2008 R2 running Apache. I followed the instructions here: Installing Horde Framework 5 I got stuck here: Completing Configuration ...
0
votes
1answer
19 views

Unable to run the batch file for phoronix-test-suite in WindowsXP

I am trying to install phoronix-test-suite in my windows-XP, 64bit. According to the user manual, I only need to run a .bat file from respective directory. When I double click on the .bat file or ...
0
votes
0answers
30 views

file_get_contents() - connection times out

I have debian running on vbox. I wanted to install composer like by doing: $ cd /usr/src $ sudo apt-get install curl php5-cli $ curl -sS https://getcomposer.org/installer | sudo php -- ...
0
votes
0answers
19 views

PHP not parsing in XAMPP

I've just installed XAMPP and it won't parse PHP files. I may be missing something obvious but I guess we'll see. I have a sample index.php in the document root. This is set as the default: ...
1
vote
1answer
104 views

WAMP php openssl extension activated but not loaded

I've installed WAMP3 and everything finally went well. However, I am now encountering a problem where a PHP extension seems activated but not loaded. WAMP 32bit on 64bit system (had to for MSSQL ...
-4
votes
1answer
33 views

Getting wrong result from php math functions

It was supposed to show a result of "5.712" (actually it is 237.12, the correct $b3 = 750000; ) but instead it shows "0.118" Help needed.... <?php #This is the Excel formula ...
0
votes
1answer
35 views

MAC php version not updating

I'm trying to update php on my local machine by running the below command: curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6 The result of the command are as follows: chris$ curl -s ...
-1
votes
2answers
56 views

Is it possible to download all images in a PHP website?

I want to download all images from this website for art reference: http://gbf-wiki.com/index.php?%BF%CD%CA%AA%B5%D5%B0%FA%A4%AD%B0%EC%CD%F7 But all image links are PHP links. This is the sample ...
1
vote
0answers
14 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 ...
0
votes
1answer
21 views

Invalid library php_pdo_oci8.dll and pdo not loaded

Starting wampmysqld works fine, but trying to start the wampapache service doesn't work (even if I start it from services.msc or from the WAMP icon > Apache > Start/Resumt Service). During the ...
0
votes
1answer
43 views

How to enable ldap authentication in php

I have one server (Windows Server 2012 R2) and I need to configure a LDAP users authentication in PHP. Server is domain controller, PHP (5.6) is installed and PHP already has LDAP extension. Bind with ...
0
votes
0answers
9 views

How to hide folders from public viewing on server

Here is the website where my server is located: Is there a way to hide those folders from public viewing? The reason being is I have a gcm html server side service in one of the folders. I'm ...
0
votes
0answers
15 views

xDebug installation on xampp

I am using xampp5.6.15 on OS 10.11. I was following this instruction to install xDebug. My "tailored installation instruction" is as follows: In this instruction, it doesn't mention where to put the ...
0
votes
0answers
60 views

Debian, installing specific version of PHP still installs latest

I followed the following topic to install a given PHP version on Debian Jessie (PHP 5.3.8 which I need): PHP 5.3.10 on Debian Jessie I found the archive package here: ...
0
votes
0answers
40 views

PHP refusing to work in Debian

Currently, I can't seem to get PHP working on my VPS: Linux Titan 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u3 x86_64 GNU/Linux As far as I can tell, I have all the necessitties: root@Titan:~# dpkg ...
-1
votes
1answer
20 views

PHP one line, different variables [closed]

I have a php file with multiple lines that are identical in all ways, except for the variable displayed in them. At the moment, there are 26 lines of code, but can be reduced to two if there's a way ...
-1
votes
1answer
55 views

How to Find a Backdoor in a Hacked WordPress Site with Debian [closed]

I think there was a backdoor created by the hacker which allowed them to bypass normal authentication. Wordpress 4.4.2 in apache2 with MySQL I install chkrootkit, rkhunter but finding nothing! I ...